Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruff 2.0 new sections for lint and format #5

Merged
merged 1 commit into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ 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 ${MAIN_ENTRYPOINT}
Expand All @@ -48,7 +48,7 @@ docker/lint:
docker-compose run ${APP_NAME} poetry run ruff check .

docker/lint/fix:
docker-compose run ${APP_NAME} poetry run ruff . --fix --exit-non-zero-on-fix
docker-compose run ${APP_NAME} poetry run ruff . --fix

docker/run:
docker-compose run ${APP_NAME} poetry run python ${MAIN_ENTRYPOINT}
Expand Down
12 changes: 11 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,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"
Loading