Skip to content

Commit b71da2b

Browse files
committed
refactor: fix ruff lint deprecated stuff
1 parent 68e73d6 commit b71da2b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ py-upgrade: ## Upgrade project py files with pyupgrade library for python versio
3939

4040
.PHONY: lint
4141
lint: ## Lint project code.
42-
poetry run ruff --fix .
42+
poetry run ruff check --fix .
4343

4444
.PHONY: slim-build
4545
slim-build: ## with power of docker-slim build smaller and safer images

pyproject.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,18 @@ build-backend = "poetry.core.masonry.api"
4949
line-length = 120
5050
indent-width = 4
5151

52-
select = ["E", "F", "UP", "N", "C", "B"]
53-
ignore = ["E501"]
52+
lint.select = ["E", "F", "UP", "N", "C", "B"]
53+
lint.ignore = ["E501"]
5454

5555
# Exclude a variety of commonly ignored directories.
5656
exclude = ["alembic",]
5757
# Assume Python 3.11.
5858
target-version = "py312"
5959

60-
[tool.ruff.flake8-quotes]
60+
[tool.ruff.lint.flake8-quotes]
6161
docstring-quotes = "double"
6262

63-
[tool.ruff.flake8-bugbear]
63+
[tool.ruff.lint.flake8-bugbear]
6464
extend-immutable-calls = ["fastapi.Depends",]
6565

6666
[tool.pytest.ini_options]

0 commit comments

Comments
 (0)