-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
35 lines (27 loc) · 827 Bytes
/
Makefile
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
# --------- Development commands ---------
format: # Format code and sort imports
poetry run black swap_user
poetry run isort swap_user
lint: # Run code quality tools
# Check pep8 style
poetry run flake8 swap_user
# Check imports order
poetry run isort swap_user --check-only
# Check security issues with installed packages
poetry run safety check
# Prevent running a file with same name
.PHONY: test
test: # Run tests
poetry run tox
# --------- GitHub Actions CI ---------
# Prevent running a file with same name
.PHONY: test
ci.test: # Run ci tests
poetry run pytest swap_user
ci.lint: # Run code quality tools inside ci
# Check pep8 style
poetry run flake8 swap_user
# Check imports order
poetry run isort swap_user --check-only
# Check security issues with installed packages
poetry run safety check