refactor: fix ruff lint deprecated stuff

This commit is contained in:
Jakub Miazek 2024-03-29 14:15:08 +01:00
parent 68e73d60ec
commit b71da2bf81
2 changed files with 5 additions and 5 deletions

View File

@ -39,7 +39,7 @@ py-upgrade: ## Upgrade project py files with pyupgrade library for python versio
.PHONY: lint .PHONY: lint
lint: ## Lint project code. lint: ## Lint project code.
poetry run ruff --fix . poetry run ruff check --fix .
.PHONY: slim-build .PHONY: slim-build
slim-build: ## with power of docker-slim build smaller and safer images slim-build: ## with power of docker-slim build smaller and safer images

View File

@ -49,18 +49,18 @@ build-backend = "poetry.core.masonry.api"
line-length = 120 line-length = 120
indent-width = 4 indent-width = 4
select = ["E", "F", "UP", "N", "C", "B"] lint.select = ["E", "F", "UP", "N", "C", "B"]
ignore = ["E501"] lint.ignore = ["E501"]
# Exclude a variety of commonly ignored directories. # Exclude a variety of commonly ignored directories.
exclude = ["alembic",] exclude = ["alembic",]
# Assume Python 3.11. # Assume Python 3.11.
target-version = "py312" target-version = "py312"
[tool.ruff.flake8-quotes] [tool.ruff.lint.flake8-quotes]
docstring-quotes = "double" docstring-quotes = "double"
[tool.ruff.flake8-bugbear] [tool.ruff.lint.flake8-bugbear]
extend-immutable-calls = ["fastapi.Depends",] extend-immutable-calls = ["fastapi.Depends",]
[tool.pytest.ini_options] [tool.pytest.ini_options]