From b71da2bf8110c981ba7b68e3229e38d3ef0df555 Mon Sep 17 00:00:00 2001 From: Jakub Miazek Date: Fri, 29 Mar 2024 14:15:08 +0100 Subject: [PATCH] refactor: fix ruff lint deprecated stuff --- Makefile | 2 +- pyproject.toml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index bfa465f..57e173c 100644 --- a/Makefile +++ b/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 diff --git a/pyproject.toml b/pyproject.toml index 1e4a24b..fd61559 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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]