Skip to content

Commit

Permalink
Call ruff a single time
Browse files Browse the repository at this point in the history
  • Loading branch information
garrison committed Oct 23, 2024
1 parent f1be40e commit e512b46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ remove-all-unused-imports = true
target-version = "py38"

[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "D"]
ignore = [
"E501", # line too long
]
Expand All @@ -104,10 +105,14 @@ ignore = [
"test/**.py" = [
"F405", # star import
"F403", # unable to detect undefined names due to star import
"D", # pydocstyle
]
"docs/**" = [
"E402", # module level import not at top of file
]
"docs/**.py" = [
"D", # pydocstyle
]

[tool.ruff.lint.pydocstyle]
convention = "google"
Expand Down
2 changes: 0 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ extras =
style
commands =
ruff check --fix qiskit_addon_cutting/ docs/ test/
ruff check --fix --select D qiskit_addon_cutting/
nbqa ruff --fix docs/
autoflake --in-place --recursive qiskit_addon_cutting/ docs/ test/
black qiskit_addon_cutting/ docs/ test/
Expand All @@ -24,7 +23,6 @@ extras =
lint
commands =
ruff check qiskit_addon_cutting/ docs/ test/
ruff check --select D qiskit_addon_cutting/
nbqa ruff docs/
autoflake --check --quiet --recursive qiskit_addon_cutting/ docs/ test/
black --check qiskit_addon_cutting/ docs/ test/
Expand Down

0 comments on commit e512b46

Please sign in to comment.