forked from nagareproject/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (28 loc) · 679 Bytes
/
Copy pathMakefile
File metadata and controls
37 lines (28 loc) · 679 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
35
36
37
.PHONY: doc tests
clean:
@rm -rf build dist
@rm -rf src/*.egg-info
@find src \( -name '*.py[co]' -o -name '__pycache__' \) -delete
@rm -rf doc/_build/*
@rm -f src/nagare/static/nagare.js*
upgrade-precommit:
python -m pre_commit autoupdate
install: clean
python -m pip install -e '.[dev']
git init
python -m pre_commit install
webassets:
python src/nagare/custom_build/build_assets.py
tests:
python -m pytest
qa:
python -m ruff check src
python -m ruff format --check src
$(MAKE) tests
qa-fix:
python -m ruff check --fix src
python -m ruff format src
doc:
python -m sphinx.cmd.build -b html doc doc/_build
wheel:
python -m pip wheel -w dist --no-deps .