Re-run on config change; enable unnecessary ARG ignores

This commit is contained in:
Damien Elmes 2025-06-29 14:26:30 +07:00
parent f057478c1a
commit 050d72a34f
2 changed files with 2 additions and 2 deletions

View file

@ -5,6 +5,7 @@ lint.select = [
"F", # Pyflakes errors
"PL", # Pylint rules
"I", # Isort rules
"ARG",
]
extend-exclude = ["*_pb2.py", "*_pb2.pyi"]
@ -55,8 +56,6 @@ lint.ignore = [
# Argument rules (unused-argument in pylint)
"ARG001", # Unused function argument
"ARG002", # Unused method argument
"ARG003", # Unused class method argument
"ARG004", # Unused static method argument
"ARG005", # Unused lambda argument
# Access rules (protected-access in pylint)

View file

@ -246,6 +246,7 @@ impl BuildAction for RuffCheck {
fn files(&mut self, build: &mut impl crate::build::FilesHandle) {
build.add_inputs("", &self.deps);
build.add_inputs("", inputs![".ruff.toml"]);
build.add_inputs("ruff", inputs![":pyenv:ruff"]);
build.add_variable("folders", self.folders.join(" "));
build.add_variable(