From 1b82cd23a129b4ed0511f4a1965bec4344526578 Mon Sep 17 00:00:00 2001 From: Marciel Torres Date: Mon, 12 Feb 2024 11:39:51 -0300 Subject: [PATCH] Upgrading ruff version to 2.0 (#49) --- Makefile | 6 +++--- pyproject.toml | 14 ++++++++++++-- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index ad2b448..42f684f 100644 --- a/Makefile +++ b/Makefile @@ -16,13 +16,13 @@ local/install: generate-default-env-file poetry install local/tests: - poetry run pytest -s --cov-report=html --cov-report=term --cov . + poetry run pytest -s --cov-report=html --cov-report=term --cov . local/lint: poetry run ruff check . - + local/lint/fix: - poetry run ruff . --fix --exit-non-zero-on-fix + poetry run ruff . --fix local/run: poetry run python src/main.py diff --git a/pyproject.toml b/pyproject.toml index 3ded99e..4b3da4f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ python = "^3.11" [tool.poetry.dev-dependencies] pytest = "^8.0.0" pytest-cov = "^4.1.0" -ruff = "^0.1.6" +ruff = "^0.2.1" [tool.pytest.ini_options] testpaths = ["tests",] @@ -30,9 +30,19 @@ directory = "htmlcov" [tool.ruff] line-length = 120 -select = ["E", "F", "W", "I", "N", "S"] +indent-width = 4 target-version = "py311" +[tool.ruff.lint] +select = ["E", "F", "W", "I", "N", "S"] +ignore = [] + +[tool.ruff.format] +quote-style = "double" +indent-style = "space" +skip-magic-trailing-comma = false +line-ending = "auto" + [build-system] requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api"