diff --git a/.gitignore b/.gitignore index 578ead3..d66629c 100644 --- a/.gitignore +++ b/.gitignore @@ -131,3 +131,4 @@ dmypy.json # Pyre type checker .pyre/ +poetry.lock diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..ffee470 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,21 @@ +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.4.0 + hooks: + - id: check-yaml + - id: end-of-file-fixer + - id: trailing-whitespace + - id: double-quote-string-fixer + - id: check-added-large-files + - id: debug-statements +- repo: https://github.com/asottile/reorder_python_imports + rev: v3.9.0 + hooks: + - id: reorder-python-imports +- repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.0.270 + hooks: + - id: ruff + args: + - --fix + - --exit-non-zero-on-fix diff --git a/pyproject.toml b/pyproject.toml index 29902a4..0de95bf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,18 +6,19 @@ authors = ["Raheel Siddiqui"] [tool.poetry.dependencies] python = "^3.8" -fastapi = "^0.85.0" +fastapi = "^0.97.0" FastAPI-SQLAlchemy = "^0.2.1" -orjson = "^3.8.0" -pydantic = "^1.10.2" -python-dotenv = "^0.21.0" -requests = "^2.28.1" -SQLAlchemy = "^1.4.41" +orjson = "^3.9.1" +pydantic = "^1.10.9" +python-dotenv = "^0.21.1" +requests = "^2.31.0" +SQLAlchemy = "^2.0.16" uvicorn = "^0.18.3" -black = "^22.8.0" -alembic = "^1.8.1" -pytest = "^7.1.3" +black = "^23.3.0" +alembic = "^1.11.1" +pytest = "^7.3.2" unittest2 = "^1.1.0" -psycopg2 = "^2.9.3" -loguru = "^0.6.0" -tenacity = "^8.0.1" \ No newline at end of file +loguru = "^0.7.0" +tenacity = "^8.2.2" +psycopg = "^3.1.9" +pre-commit = "^3.3.3"