Signed-off-by: Ivan Schaller <ivan@schaller.sh>
This commit is contained in:
parent
25720385a4
commit
5d60669161
2 changed files with 13 additions and 3 deletions
6
justfile
6
justfile
|
@ -83,13 +83,13 @@ test_shfmt:
|
|||
@find . -type f \( -name "**.sh" -and -not -path "./.**" -and -not -path "./venv**" \) -exec shfmt -d -i 4 -bn -ci -sr "{}" \+;
|
||||
|
||||
test_black:
|
||||
@python3 -m black --check --diff .
|
||||
@python3 -m black --check --diff netbox_qrgen/
|
||||
|
||||
test_pyright:
|
||||
@python3 -m pyright .
|
||||
@python3 -m pyright netbox_qrgen/
|
||||
|
||||
test_ruff:
|
||||
@python3 -m ruff --diff .
|
||||
@python3 -m ruff --diff netbox_qrgen/
|
||||
|
||||
test_ci_conf:
|
||||
@woodpecker-cli lint .woodpecker/
|
||||
|
|
10
lefthook.yml
Normal file
10
lefthook.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
pre-commit:
|
||||
commands:
|
||||
01_ruff:
|
||||
stage_fixed: true
|
||||
glob: "*.py"
|
||||
run: python3 -m ruff --fix-only --exit-zero --silent {all_files}
|
||||
02_black:
|
||||
stage_fixed: true
|
||||
glob: "*.py"
|
||||
run: python3 -m black --quiet {all_files}
|
Loading…
Reference in a new issue