mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 23:07:59 +01:00
lint: Document missing py_lint dependency
Also, change the linter name, needed for the next commit.
This commit is contained in:
parent
faebeb828f
commit
faf17df7fb
2 changed files with 5 additions and 4 deletions
|
@ -52,6 +52,7 @@ or `--help`:
|
||||||
| [`lint-python-dead-code.py`](/test/lint/lint-python-dead-code.py) | [vulture](https://github.com/jendrikseipp/vulture)
|
| [`lint-python-dead-code.py`](/test/lint/lint-python-dead-code.py) | [vulture](https://github.com/jendrikseipp/vulture)
|
||||||
| [`lint-shell.py`](/test/lint/lint-shell.py) | [ShellCheck](https://github.com/koalaman/shellcheck)
|
| [`lint-shell.py`](/test/lint/lint-shell.py) | [ShellCheck](https://github.com/koalaman/shellcheck)
|
||||||
| [`lint-spelling.py`](/test/lint/lint-spelling.py) | [codespell](https://github.com/codespell-project/codespell)
|
| [`lint-spelling.py`](/test/lint/lint-spelling.py) | [codespell](https://github.com/codespell-project/codespell)
|
||||||
|
| `py_lint` | [ruff](https://github.com/astral-sh/ruff)
|
||||||
| markdown link check | [mlc](https://github.com/becheran/mlc)
|
| markdown link check | [mlc](https://github.com/becheran/mlc)
|
||||||
|
|
||||||
In use versions and install instructions are available in the [CI setup](../../ci/lint/04_install.sh).
|
In use versions and install instructions are available in the [CI setup](../../ci/lint/04_install.sh).
|
||||||
|
|
|
@ -36,9 +36,9 @@ fn get_linter_list() -> Vec<&'static Linter> {
|
||||||
lint_fn: lint_markdown
|
lint_fn: lint_markdown
|
||||||
},
|
},
|
||||||
&Linter {
|
&Linter {
|
||||||
description: "Check the default arguments in python",
|
description: "Lint Python code",
|
||||||
name: "py_mut_arg_default",
|
name: "py_lint",
|
||||||
lint_fn: lint_py_mut_arg_default,
|
lint_fn: lint_py_lint,
|
||||||
},
|
},
|
||||||
&Linter {
|
&Linter {
|
||||||
description: "Check that std::filesystem is not used directly",
|
description: "Check that std::filesystem is not used directly",
|
||||||
|
@ -185,7 +185,7 @@ fn lint_subtree() -> LintResult {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn lint_py_mut_arg_default() -> LintResult {
|
fn lint_py_lint() -> LintResult {
|
||||||
let bin_name = "ruff";
|
let bin_name = "ruff";
|
||||||
let checks = ["B006", "B008"]
|
let checks = ["B006", "B008"]
|
||||||
.iter()
|
.iter()
|
||||||
|
|
Loading…
Add table
Reference in a new issue