Skip to content

Commit

Permalink
Update dependencies and replace black with ruff formatter (#667)
Browse files Browse the repository at this point in the history
  • Loading branch information
aminalaee authored Nov 9, 2023
1 parent 7ca4d02 commit 52177cc
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,34 +60,33 @@ exclude = [

[tool.hatch.envs.test]
dependencies = [
"aiosqlite==0.18.0",
"arrow==1.2.3",
"asyncpg==0.27.0",
"babel==2.12.1",
"build==0.9.0",
"aiosqlite==0.19.0",
"arrow==1.3.0",
"asyncpg==0.29.0",
"babel==2.13.1",
"build==1.0.3",
"colour==0.1.5",
"coverage==7.2.2",
"email-validator==1.3.1",
"coverage==7.3.2",
"email-validator==2.1.0",
"fastapi-storages==0.1.0",
"greenlet==2.0.2",
"httpx==0.23.3",
"greenlet==3.0.1",
"httpx==0.25.1",
"itsdangerous==2.1.2",
"phonenumbers==8.13.7",
"pillow==9.5.0",
"psycopg2-binary==2.9.5",
"pytest==7.2.2",
"phonenumbers==8.13.24",
"pillow==10.1.0",
"psycopg2-binary==2.9.9",
"pytest==7.4.2",
"python-dateutil==2.8.2",
"sqlalchemy_utils==0.40.0",
"sqlalchemy_utils==0.41.1",
]

[[tool.hatch.envs.test.matrix]]
python = ["38", "39", "310", "311"]

[tool.hatch.envs.lint]
dependencies = [
"black==23.1.0",
"mypy==1.1.1",
"ruff==0.0.256",
"mypy==1.6.1",
"ruff==0.1.5",
"sqlalchemy~=1.4", # MyPy issues with SQLAlchemy V2
]

Expand All @@ -108,11 +107,11 @@ test = "coverage run -a --concurrency=thread,greenlet -m pytest {args}"
[tool.hatch.envs.lint.scripts]
check = [
"ruff .",
"black --check .",
"ruff format --check .",
"mypy sqladmin",
]
format = [
"black .",
"ruff format .",
"ruff --fix .",
]

Expand Down

0 comments on commit 52177cc

Please sign in to comment.