-
Notifications
You must be signed in to change notification settings - Fork 2
/
justfile
62 lines (48 loc) · 999 Bytes
/
justfile
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/usr/bin/env just --justfile
# 'justfile'
# just-repo: https://github.com/casey/just
# just-docs: https://just.systems/man/en/
# list all targets (default)
@_default:
just --list --unsorted
dev:
uv sync --all-extras --dev
# fix imports
rsort:
ruff check --select "I" --show-fixes --fix .
# sort imports
isort: rsort
# check spelling
codespell:
codespell .
# format python
fmt:
ruff format
ruff check --select "I" --show-fixes --fix .
# fmt pyproject.toml files
fmt-pyproject:
find . -type f -name pyproject.toml | xargs -n1 pyproject-fmt
# format-check
fmtc:
ruff format --check
ruff check --select "I" --show-fixes .
# ruff lint
ruff:
ruff check .
# ruff lint & fix
ruffix:
ruff check . --fix
# nox lint
noxlint:
nox -s lint
# mypy
mypy: fmt
nox -s mypy
# lint
lint: fmt noxlint
# format the justfile(s) (w/ just)
fmt-justfile:
just --fmt --unstable
# nuke poetry cache
poetry-nuke-cache:
poetry cache clear pypi --all -v