Skip to content

Commit faf17df

Browse files
author
MarcoFalke
committed
lint: Document missing py_lint dependency
Also, change the linter name, needed for the next commit.
1 parent faebeb8 commit faf17df

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

test/lint/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ or `--help`:
5252
| [`lint-python-dead-code.py`](/test/lint/lint-python-dead-code.py) | [vulture](https://github.com/jendrikseipp/vulture)
5353
| [`lint-shell.py`](/test/lint/lint-shell.py) | [ShellCheck](https://github.com/koalaman/shellcheck)
5454
| [`lint-spelling.py`](/test/lint/lint-spelling.py) | [codespell](https://github.com/codespell-project/codespell)
55+
| `py_lint` | [ruff](https://github.com/astral-sh/ruff)
5556
| markdown link check | [mlc](https://github.com/becheran/mlc)
5657

5758
In use versions and install instructions are available in the [CI setup](../../ci/lint/04_install.sh).

test/lint/test_runner/src/main.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ fn get_linter_list() -> Vec<&'static Linter> {
3636
lint_fn: lint_markdown
3737
},
3838
&Linter {
39-
description: "Check the default arguments in python",
40-
name: "py_mut_arg_default",
41-
lint_fn: lint_py_mut_arg_default,
39+
description: "Lint Python code",
40+
name: "py_lint",
41+
lint_fn: lint_py_lint,
4242
},
4343
&Linter {
4444
description: "Check that std::filesystem is not used directly",
@@ -185,7 +185,7 @@ fn lint_subtree() -> LintResult {
185185
}
186186
}
187187

188-
fn lint_py_mut_arg_default() -> LintResult {
188+
fn lint_py_lint() -> LintResult {
189189
let bin_name = "ruff";
190190
let checks = ["B006", "B008"]
191191
.iter()

0 commit comments

Comments
 (0)