mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-02-10 18:05:10 +08:00
python: flake8 configuration file
This commit is contained in:
3
.github/workflows/lint-python.yml
vendored
3
.github/workflows/lint-python.yml
vendored
@ -31,5 +31,4 @@ jobs:
|
||||
|
||||
- name: Lint Flake8
|
||||
run: |
|
||||
flake8 --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||
flake8 --count --max-complexity=15 --max-line-length=120 --per-file-ignores="__init__.py:F4" --statistics
|
||||
flake8 --count --show-source --statistics
|
||||
|
||||
4
web/documentserver-example/python/.flake8
Normal file
4
web/documentserver-example/python/.flake8
Normal file
@ -0,0 +1,4 @@
|
||||
[flake8]
|
||||
max-complexity = 15
|
||||
max-line-length = 120
|
||||
per-file-ignores = __init__.py:F4
|
||||
@ -47,8 +47,7 @@ compose-prod: # Up containers in a production environment.
|
||||
|
||||
.PHONY: lint
|
||||
lint: # Lint the source code for style and check for types.
|
||||
@flake8
|
||||
@mypy .
|
||||
@flake8 --count --show-source --statistics
|
||||
|
||||
.PHONY: test
|
||||
test: # Recursively run the tests.
|
||||
|
||||
Reference in New Issue
Block a user