7
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-05-28 11:50:49 +00:00

No automated formatting for templates

This commit is contained in:
Régis Behmo 2019-06-03 12:23:05 +02:00
parent a6c434689c
commit 02a7bd5cbc

View File

@ -1,4 +1,5 @@
.DEFAULT_GOAL := help .DEFAULT_GOAL := help
BLACK_OPTS = --exclude templates ./tutor ./tests
###### Development ###### 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: test-lint test-unit test-format ## Run all tests by decreasing order or priority
test-format: ## Run code formatting tests test-format: ## Run code formatting tests
black --check --diff ./tutor ./tests black --check --diff $(BLACK_OPTS)
test-lint: ## Run code linting tests test-lint: ## Run code linting tests
pylint --errors-only tutor pylint --errors-only tutor
@ -19,7 +20,7 @@ test-unit: ## Run unit tests
python3 -m unittest discover tests python3 -m unittest discover tests
format: ## Format code automatically format: ## Format code automatically
black ./tutor ./tests black $(BLACK_OPTS)
###### Deployment ###### Deployment