added linting with flake8

This commit is contained in:
Lorenz Herzberger 2022-02-14 09:37:21 +01:00
parent fde17cdace
commit 8b07d05c60
No known key found for this signature in database
GPG Key ID: FA5EE906EB55316A
2 changed files with 13 additions and 0 deletions

View File

@ -70,6 +70,9 @@ stop: check-deps ## Stop Planetmint
logs: check-deps ## Attach to the logs
@$(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-unit: check-deps ## Run all tests once

View File

@ -114,3 +114,13 @@ services:
- '33333:80'
volumes:
- ./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