mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-12-04 19:03:39 +00:00
No automated formatting for templates
This commit is contained in:
parent
a6c434689c
commit
02a7bd5cbc
5
Makefile
5
Makefile
@ -1,4 +1,5 @@
|
||||
.DEFAULT_GOAL := help
|
||||
BLACK_OPTS = --exclude templates ./tutor ./tests
|
||||
|
||||
###### Development
|
||||
|
||||
@ -10,7 +11,7 @@ compile-requirements: ## Compile requirements files
|
||||
test: test-lint test-unit test-format ## Run all tests by decreasing order or priority
|
||||
|
||||
test-format: ## Run code formatting tests
|
||||
black --check --diff ./tutor ./tests
|
||||
black --check --diff $(BLACK_OPTS)
|
||||
|
||||
test-lint: ## Run code linting tests
|
||||
pylint --errors-only tutor
|
||||
@ -19,7 +20,7 @@ test-unit: ## Run unit tests
|
||||
python3 -m unittest discover tests
|
||||
|
||||
format: ## Format code automatically
|
||||
black ./tutor ./tests
|
||||
black $(BLACK_OPTS)
|
||||
|
||||
###### Deployment
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user