Skip to content

Commit c341b00

Browse files
committed
Bump ruff to 0.2.0
1 parent 6c793d6 commit c341b00

File tree

3 files changed

+29
-27
lines changed

3 files changed

+29
-27
lines changed

alembic/env.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
sys.path.append(".")
1111

12-
from metricity.database import build_db_uri # noqa: E402
13-
from metricity.models import Base # noqa: E402
12+
from metricity.database import build_db_uri
13+
from metricity.models import Base
1414

1515
# this is the Alembic Config object, which provides
1616
# access to the values within the .ini file in use.

poetry.lock

Lines changed: 19 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ asyncpg = "0.29.0"
2020

2121
[tool.poetry.dev-dependencies]
2222
pre-commit = "3.6.0"
23-
ruff = "0.1.7"
23+
ruff = "0.2.0"
2424

2525
[tool.poetry.scripts]
2626
start = "metricity.__main__:start"
@@ -32,6 +32,11 @@ build-backend = "poetry.masonry.api"
3232
[tool.ruff]
3333
target-version = "py311"
3434
extend-exclude = [".cache"]
35+
line-length = 120
36+
unsafe-fixes = true
37+
preview = true
38+
39+
[tool.ruff.lint]
3540
select = ["ALL"]
3641
ignore = [
3742
"ANN002", "ANN003", "ANN101",
@@ -42,15 +47,12 @@ ignore = [
4247
"PLR0912", "PLR6301",
4348
"TRY003",
4449
]
45-
line-length = 120
46-
unsafe-fixes = true
47-
preview = true
4850

49-
[tool.ruff.isort]
51+
[tool.ruff.lint.isort]
5052
order-by-type = false
5153
case-sensitive = true
5254
combine-as-imports = true
5355

54-
[tool.ruff.per-file-ignores]
56+
[tool.ruff.lint.per-file-ignores]
5557
"metricity/models.py" = ["A003"]
5658
"alembic/*" = ["INP001"]

0 commit comments

Comments
 (0)