Skip to content

Commit 4f8de46

Browse files
authored
Merge pull request #17 from tisnik/new-makefile-targets
New Makefile targets
2 parents 2082ed5 + e558eb1 commit 4f8de46

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,17 @@
11
run: ## Run the service locally
22
python src/lightspeed-stack.py
3+
4+
check-types: ## Checks type hints in sources
5+
MYPYPATH=src pdm run mypy --namespace-packages --explicit-package-bases --strict --disallow-untyped-calls --disallow-untyped-defs --disallow-incomplete-defs .
6+
7+
security-check: ## Check the project for security issues
8+
bandit -c pyproject.toml -r src tests
9+
10+
format: ## Format the code into unified format
11+
pdm run black .
12+
pdm run ruff check . --fix
13+
14+
requirements.txt: pyproject.toml pdm.lock ## Generate requirements.txt file containing hashes for all non-devel packages
15+
pdm export --prod --format requirements --output requirements.txt --no-extras --without evaluation
16+
17+

0 commit comments

Comments
 (0)