-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (24 loc) · 730 Bytes
/
Makefile
File metadata and controls
33 lines (24 loc) · 730 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
.PHONY: install install-dev test lint format clean security typecheck check
install:
pip install -r requirements.txt
install-dev: install
pip install -e ".[dev]"
test:
python -m pytest tests/ -v --tb=short
lint:
ruff check nightwire/
black --check nightwire/
format:
black nightwire/ tests/
ruff check --fix nightwire/
typecheck:
python -m mypy nightwire/ --ignore-missing-imports
security:
bandit -r nightwire/ -c pyproject.toml || true
safety check || true
check: lint typecheck test security
clean:
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type d -name .pytest_cache -exec rm -rf {} +
find . -type f -name "*.pyc" -delete
rm -rf htmlcov/ .coverage .mypy_cache/ .ruff_cache/ *.egg-info/