Skip to content

Commit

Permalink
enable lint on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mdekstrand committed Jul 30, 2024
1 parent 533a056 commit 629200f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "I"]
unfixable = ["F401"]
exclude = [".git", "__pycache__", "build", "dist", "*/tests/*"]
exclude = [".git", "__pycache__", "build", "dist"]

[tool.ruff.lint.per-file-ignores]
# Importing PyTest fixtures triggers F811
"*/tests/*.py" = ["F811"]
"*/tests/*.py" = ["F811", "F401"]

[tool.ruff.lint.isort]
section-order = [
Expand All @@ -54,6 +54,7 @@ known-first-party = ["lenskit"]
[tool.ruff.lint.isort.sections]
testing = ["pytest", "hypothesis"]


[tool.pyright]
typeCheckingMode = "basic"
exclude = ["docs/*"]
Expand Down

0 comments on commit 629200f

Please sign in to comment.