Skip to content

Commit

Permalink
Change formatter to not use poetry (#253)
Browse files Browse the repository at this point in the history
* change formatter from using poetry

* format
  • Loading branch information
failandimprove1 authored May 6, 2024
1 parent b00ccc0 commit a440197
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions apps/api/scripts/format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e
set -x

# Sort imports one per line, so autoflake can remove unused imports
poetry run isort --force-single-line-imports .
poetry run autoflake --remove-all-unused-imports --remove-unused-variables --in-place . --exclude=__init__.py
poetry run black .
poetry run isort .
isort --force-single-line-imports .
autoflake --remove-all-unused-imports --remove-unused-variables --in-place . --exclude=__init__.py
black .
isort .
4 changes: 2 additions & 2 deletions apps/api/src/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
import uvicorn
import logging
import os

import uvicorn
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware

Expand Down

0 comments on commit a440197

Please sign in to comment.