mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2025-08-26 16:40:40 +03:00
refactor: fix ruff lint deprecated stuff
This commit is contained in:
parent
68e73d60ec
commit
b71da2bf81
2
Makefile
2
Makefile
@ -39,7 +39,7 @@ py-upgrade: ## Upgrade project py files with pyupgrade library for python versio
|
||||
|
||||
.PHONY: lint
|
||||
lint: ## Lint project code.
|
||||
poetry run ruff --fix .
|
||||
poetry run ruff check --fix .
|
||||
|
||||
.PHONY: slim-build
|
||||
slim-build: ## with power of docker-slim build smaller and safer images
|
||||
|
@ -49,18 +49,18 @@ build-backend = "poetry.core.masonry.api"
|
||||
line-length = 120
|
||||
indent-width = 4
|
||||
|
||||
select = ["E", "F", "UP", "N", "C", "B"]
|
||||
ignore = ["E501"]
|
||||
lint.select = ["E", "F", "UP", "N", "C", "B"]
|
||||
lint.ignore = ["E501"]
|
||||
|
||||
# Exclude a variety of commonly ignored directories.
|
||||
exclude = ["alembic",]
|
||||
# Assume Python 3.11.
|
||||
target-version = "py312"
|
||||
|
||||
[tool.ruff.flake8-quotes]
|
||||
[tool.ruff.lint.flake8-quotes]
|
||||
docstring-quotes = "double"
|
||||
|
||||
[tool.ruff.flake8-bugbear]
|
||||
[tool.ruff.lint.flake8-bugbear]
|
||||
extend-immutable-calls = ["fastapi.Depends",]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
|
Loading…
x
Reference in New Issue
Block a user