Skip to content

Commit

Permalink
chore: Adds ruff config
Browse files Browse the repository at this point in the history
  • Loading branch information
frgfm committed Apr 29, 2023
1 parent 02eed5d commit d64abf8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,18 @@ exclude = ["demo*", "docs*", "notebooks*", "scripts*", "tests*"]
[tool.coverage.run]
source = ["torchcam"]

[tool.ruff]
ignore = ["E402", "F403", "E731"]
exclude = [".git", "venv*", "build", "docs"]
line-length = 120
target-version = "py38"

[tool.ruff.per-file-ignores]
"**/__init__.py" = ["F401"]

[tool.ruff.flake8-quotes]
docstring-quotes = "double"

[tool.mypy]
files = "torchcam/"
show_error_codes = true
Expand Down

0 comments on commit d64abf8

Please sign in to comment.