Skip to content

Commit

Permalink
Update ruff settings
Browse files Browse the repository at this point in the history
  • Loading branch information
dudil committed Apr 3, 2024
1 parent 8c5a40a commit 802b265
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ dependencies = ["fastapi_msal[dev]"]

[tool.hatch.envs.default.scripts]
typing = "mypy --install-types --non-interactive {args:fastapi_msal}"
style = ["ruff {args:.}", "black --check --diff {args:.}"]
style = ["ruff check {args:.}", "black --check --diff {args:.}"]
fmt = ["black {args:.}", "ruff --fix {args:.}", "style"]
test = "pytest {args:tests}"
all = ["style", "typing"]
Expand All @@ -76,6 +76,9 @@ skip-string-normalization = true

[tool.ruff]
line-length = 122


[tool.ruff.lint]
select = [
"A",
"ARG",
Expand Down Expand Up @@ -122,14 +125,14 @@ unfixable = [
]
ignore-init-module-imports = true

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
# avoid warnings related to __init__.py files imports
"__init__.py" = ["PLC0414"]

# Tests can use magic values, assertions, and relative imports
"tests/**/*" = ["PLR2004", "S101", "TID252"]

[tool.ruff.isort]
[tool.ruff.lint.isort]
known-first-party = ["fastapi_msal"]

[tool.mypy]
Expand Down

0 comments on commit 802b265

Please sign in to comment.