mirror of
https://github.com/planetmint/planetmint.git
synced 2025-10-14 00:59:17 +00:00
added linting with flake8
This commit is contained in:
parent
fde17cdace
commit
8b07d05c60
3
Makefile
3
Makefile
@ -70,6 +70,9 @@ stop: check-deps ## Stop Planetmint
|
|||||||
logs: check-deps ## Attach to the logs
|
logs: check-deps ## Attach to the logs
|
||||||
@$(DC) logs -f planetmint
|
@$(DC) logs -f planetmint
|
||||||
|
|
||||||
|
lint: check-deps ## Lint the Project
|
||||||
|
@$(DC) up lint
|
||||||
|
|
||||||
test: check-deps test-unit test-acceptance ## Run unit and acceptance tests
|
test: check-deps test-unit test-acceptance ## Run unit and acceptance tests
|
||||||
|
|
||||||
test-unit: check-deps ## Run all tests once
|
test-unit: check-deps ## Run all tests once
|
||||||
|
@ -114,3 +114,13 @@ services:
|
|||||||
- '33333:80'
|
- '33333:80'
|
||||||
volumes:
|
volumes:
|
||||||
- ./docs/root/build/html:/usr/share/nginx/html
|
- ./docs/root/build/html:/usr/share/nginx/html
|
||||||
|
|
||||||
|
# Lints project according to PEP8
|
||||||
|
lint:
|
||||||
|
image: alpine/flake8
|
||||||
|
command: --max-line-length 119 /planetmint /acceptance /integration /tests
|
||||||
|
volumes:
|
||||||
|
- ./planetmint:/planetmint
|
||||||
|
- ./acceptance:/acceptance
|
||||||
|
- ./integration:/integration
|
||||||
|
- ./tests:/tests
|
Loading…
x
Reference in New Issue
Block a user