-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathMakefile
More file actions
64 lines (46 loc) · 1.32 KB
/
Makefile
File metadata and controls
64 lines (46 loc) · 1.32 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# PII Codex Makefile
# Used from GitHub workflow and locally
default: install test lint
test: lint test.all
test.cov: test.coverage
install:
@uv sync --extra dev --extra detections
$(MAKE) install.pre_commit
@echo "Installation complete!"
install.pre_commit:
@uv run pre-commit install || (echo "Warning: pre-commit installation failed. You may need to run 'uv sync --extra dev' first." && exit 1)
install.extras:
@echo "Installing detection dependencies (spaCy, Presidio, etc.)..."
@uv sync --extra detections
install_spacy_en_core_web_lg:
@python3 -m spacy download en_core_web_lg
jupyter.attach.venv:
@python3 -m ipykernel install --user --name=venv
test.all:
@pytest tests
test.coverage:
@uv run coverage run -m pytest -vv tests && uv run coverage report -m --omit="*/test*,config/*.conf" --fail-under=95
@uv run coverage xml
lint:
@uv run pylint pii_codex tests
typecheck:
@uv run mypy pii_codex tests
format.check:
@black . --check
format.fix:
@black .
bump.citation.date:
./scripts/update_citation.sh
docs:
@pdoc --html pii_codex --force -o ./docs/dev
version.bump.patch:
@uv run bumpver update --patch
# $(MAKE) bump.citation.date
version.bump.minor:
@uv run bumpver update --minor
$(MAKE) bump.citation.date
version.bump.major:
@uv run bumpver update --major
$(MAKE) bump.citation.date
package:
@uv build