File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,9 @@ repos:
13
13
hooks :
14
14
- id : ruff
15
15
name : ruff (linter)
16
- entry : just ruff
16
+ entry : just ruff-fix
17
17
language : system
18
18
types : [python]
19
- args : [--fix]
20
19
- id : black
21
20
name : black
22
21
entry : just black
Original file line number Diff line number Diff line change 24
24
25
25
ruff-show-violations :
26
26
@ echo " 🚀 Linting the project with Ruff and show violations"
27
- @ poetry run ruff check --show-source --show-fixes src tests
27
+ @ poetry run ruff check --show-source src tests
28
28
29
29
ruff-fix :
30
30
@ echo " 🚀 Linting the project with Ruff and autofix violations (where possible)"
@@ -35,10 +35,14 @@ black:
35
35
@ poetry run black src tests
36
36
37
37
black-check :
38
+ @ echo " 🚀 Listing files Black would reformat"
39
+ @ poetry run black --check src tests
40
+
41
+ black-diff :
38
42
@ echo " 🚀 Checking formatting advices from Black"
39
- @ poetry run black --check -- diff src tests
43
+ @ poetry run black --diff src tests
40
44
41
- lint-and-format : ruff black
45
+ lint-and-format : ruff-fix black
42
46
43
47
test :
44
48
@ echo " 🚀 Testing code with pytest"
You can’t perform that action at this time.
0 commit comments