Skip to content

Commit

Permalink
Fix Ruff config
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Jul 1, 2024
1 parent 644b478 commit 5ce2289
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencies = [
[envs.lint.scripts]
typing = "mypy --install-types --non-interactive {args:hatch_vcs tests}"
style = [
"ruff {args:.}",
"ruff check {args:.}",
"black --check --diff {args:.}",
]
fmt = [
Expand Down
10 changes: 6 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ skip-string-normalization = true
[tool.ruff]
target-version = "py38"
line-length = 120

[tool.ruff.lint]
select = [
"A",
"B",
Expand Down Expand Up @@ -89,16 +91,16 @@ ignore = [
"FBT002",
]

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

[tool.ruff.flake8-quotes]
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"

[tool.ruff.flake8-tidy-imports]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
# Tests can use relative imports and assertions
"tests/**/*" = ["TID252", "S101"]

Expand Down

0 comments on commit 5ce2289

Please sign in to comment.