Fix: Rebase

Chore: Moved to ruff and sorted and cleaned using it.
Chore: Ansible file moved to roles based.
Chore: Upgraded some dependencies
This commit is contained in:
2024-04-13 14:25:53 +05:30
parent 5fa8580cb9
commit 166af2aaa3
97 changed files with 432 additions and 382 deletions
+30 -16
View File
@@ -7,30 +7,30 @@ authors = ["tanshu <git@tanshu.com>"]
[tool.poetry.dependencies]
python = "^3.11"
uvicorn = {extras = ["standard"], version = "^0.23.2"}
fastapi = {extras = ["all"], version = "^0.101.1"}
fastapi = {extras = ["all"], version = "^0.110.1"}
python-jose = {extras = ["cryptography"], version = "^3.3.0"}
passlib = {extras = ["bcrypt"], version = "^1.7.4"}
psycopg2-binary = "^2.9.7"
SQLAlchemy = "^2.0.19"
python-multipart = "^0.0.6"
psycopg2-binary = "^2.9.9"
SQLAlchemy = "^2.0.29"
python-multipart = "^0.0.9"
PyJWT = "^2.8.0"
alembic = "^1.11.2"
alembic = "^1.13.1"
itsdangerous = "^2.1.2"
python-dotenv = "^1.0.0"
pydantic = {extras = ["dotenv"], version = "^2.1.1"}
starlette = "^0.27.0"
pandas = "^2.0.0"
python-dotenv = "^1.0.1"
pydantic = {extras = ["dotenv"], version = "^2.6.2"}
starlette = "^0.37.2"
pandas = "^2.2.2"
arq = "^0.25.0"
openpyxl = "^3.1.2"
gunicorn = "^21.2.0"
[tool.poetry.group.dev.dependencies]
pre-commit = "^3.3.3"
mypy = "^1.4.1"
pre-commit = "^3.7.0"
mypy = "^1.9.0"
types-python-jose = "^3.3.4.8"
ruff = "^0.1.9"
bandit = "^1.7.5"
safety = "^2.3.5"
ruff = "^0.3.7"
bandit = "^1.7.8"
# safety = "^3.0.1"
[build-system]
requires = ["poetry-core>=1.0.0"]
@@ -56,7 +56,21 @@ exclude = [
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
# McCabe complexity (`C901`) by default.
select = ["E4", "E7", "E9", "F"]
# select = ["E4", "E7", "E9", "F"]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
# "B",
# flake8-simplify
"SIM",
# isort
"I",
]
ignore = ["E203", "E501"]
# Allow fix for all enabled rules (when `--fix`) is provided.
@@ -65,7 +79,7 @@ fixable = ["ALL"]
# Avoid trying to fix flake8-bugbear (`B`) violations.
unfixable = ["B", "F401"]
[tool.ruff.isort]
[tool.ruff.lint.isort]
# include-trailing-comma = true
lines-after-imports = 2
lines-between-types = 1