Skip to content

Commit 54dffca

Browse files
committed
split up make targets into more atomic units for better re-use and ci execution
1 parent d0c1cab commit 54dffca

1 file changed

Lines changed: 17 additions & 8 deletions

File tree

Makefile

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,24 +40,33 @@ coverage:
4040
coverage run -m pytest --benchmark-disable
4141
coverage report --fail-under=100
4242

43-
# lint code
44-
lint:
43+
# lint code in local development
44+
lint: format-code code-analysis
45+
46+
# check code linting during continious integration
47+
ci-lint: check-code-formatting code-analysis
48+
49+
# analyse and re-format code
50+
format-code:
4551
# sort import statements
4652
isort .
4753
# format code with black
4854
black .
49-
# run static type checker
50-
mypy paseto tests --ignore-missing-imports
51-
# run static code analysis
52-
pylint paseto tests
5355

54-
# check linting without changing source files
55-
check-lint:
56+
# check code formatting without any changes
57+
check-code-formatting:
5658
# check imports
5759
isort --check-only .
5860
# check code formatting
5961
black --check .
6062

63+
# static code analysis
64+
code-analysis:
65+
# run static type checker
66+
mypy paseto tests --ignore-missing-imports
67+
# run static code analysis
68+
pylint paseto tests
69+
6170
# build and test the entire project
6271
build: lock install lint coverage
6372

0 commit comments

Comments
 (0)