Skip to content

Commit

Permalink
feat(black)
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikstranneheim committed Feb 28, 2024
1 parent ce0ba64 commit c17d346
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Black

on: [pull_request]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Check out git repository
uses: actions/[email protected]

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Set up Black
uses: psf/black@stable
with:
options: ". --check --line-length 100"
version: "~=24.1.0"
1 change: 1 addition & 0 deletions genotype_api/api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Main functions for the genotype api
"""

from fastapi import FastAPI, status, Request
from fastapi.responses import JSONResponse
from fastapi.middleware.cors import CORSMiddleware
Expand Down
1 change: 1 addition & 0 deletions genotype_api/api/endpoints/analyses.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Routes for analysis"""

from pathlib import Path
from typing import List

Expand Down
1 change: 1 addition & 0 deletions genotype_api/api/endpoints/plates.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Routes for plates"""

from datetime import datetime
from io import BytesIO
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions genotype_api/api/endpoints/snps.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Routes for the snps"""

from genotype_api.models import SNP, User
from typing import List

Expand Down
1 change: 1 addition & 0 deletions genotype_api/constants.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Constants used over the package"""

from enum import Enum
from pydantic import BaseModel

Expand Down
1 change: 1 addition & 0 deletions genotype_api/database.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Hold the database information"""

from sqlmodel import Session, SQLModel, create_engine

from genotype_api.config import settings
Expand Down

0 comments on commit c17d346

Please sign in to comment.