Skip to content

Commit

Permalink
Upgrading ruff version to 2.0 (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcieltorres committed Feb 12, 2024
1 parent 82a304b commit 1b82cd2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 12 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",]
Expand All @@ -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"

0 comments on commit 1b82cd2

Please sign in to comment.