mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 14:03:55 -05:00
Re-run on config change; enable unnecessary ARG ignores
This commit is contained in:
parent
f057478c1a
commit
050d72a34f
2 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue