-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
45 lines (34 loc) 路 1.09 KB
/
Copy pathjustfile
File metadata and controls
45 lines (34 loc) 路 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Use PowerShell instead of sh
# set shell := ["powershell.exe", "-c"]
help:
@just --list
install:
@echo "馃殌 Installing dependencies"
@poetry install --with dev
install-pre-commit:
@echo "馃殌 Setting up the hooks"
@poetry run pre-commit install
check-project:
@echo "馃殌 Checking consistency between poetry.lock and pyproject.toml"
@poetry check --lock
@echo "馃殌 Running the hooks against all files"
@poetry run pre-commit run --all-files
ruff:
@echo "馃殌 Linting the project with Ruff"
@poetry run ruff check .
ruff-show-violations:
@echo "馃殌 Linting the project with Ruff and show violations"
@poetry run ruff check --output-format="grouped" .
ruff-fix:
@echo "馃殌 Linting the project with Ruff and autofix violations (where possible)"
@poetry run ruff check --fix .
black:
@echo "馃殌 Formatting the code with Black"
@poetry run black .
black-check:
@echo "馃殌 Listing files Black would reformat"
@poetry run black --check .
black-diff:
@echo "馃殌 Checking formatting advices from Black"
@poetry run black --diff .
lint-and-format: ruff-fix black