Skip to content

Commit a3a4ff4

Browse files
committed
Add config for ruff check
1 parent 89de1c4 commit a3a4ff4

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

pyproject.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,18 @@ allow_redefinition = true
119119
# Only enable ramble modules
120120
module = "ramble.*"
121121
ignore_errors = false
122+
123+
# TODO: Add ruff into `ramble style` once it reaches v1.
124+
# For now, the ruff check can be invoked manually with `ruff check`.
125+
[tool.ruff]
126+
extend-include = ["bin/ramble"]
127+
extend-exclude = [
128+
"lib/ramble/external",
129+
"lib/ramble/spack",
130+
"lib/ramble/llnl",
131+
]
132+
133+
[tool.ruff.lint]
134+
# The F and E ignores here are already checked by flake8, and B905 requires Python 3.9 or up.
135+
ignore = ["B905", "F405", "F403", "E402"]
136+
extend-select = ["B"]

share/ramble/qa/flake8_formatter.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import pycodestyle
66
from flake8.formatting.default import Pylint
7-
from flake8.style_guide import Violation
87

98
#: This is a dict that maps:
109
#: filename pattern ->

0 commit comments

Comments
 (0)