-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathjustfile
More file actions
34 lines (27 loc) · 823 Bytes
/
justfile
File metadata and controls
34 lines (27 loc) · 823 Bytes
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
# list recipes
defaut:
@just --list --unsorted
# install dependencies
install:
poetry install
poetry run pre-commit install --hook-type commit-msg --hook-type pre-commit
# update dependencies
update:
poetry update
poetry run pre-commit autoupdate
# update the poetry.lock file if the pyproject.toml file has been updated
lock:
poetry lock
# remove Python file artifacts
clean:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -fr {} +
# run ruff linting and fix all fixable linting errors
lint:
poetry run ruff check --fix .
# run ruff formatter to format all files
format:
poetry run docformatter --in-place --recursive --wrap-summaries 120 --wrap-descriptions 120 .
poetry run ruff format .