You've already forked library-registry
mirror of
https://github.com/arduino/library-registry.git
synced 2025-07-29 14:01:15 +03:00
Add CI workflow to lint and check formatting of Python files
On every push and pull request that affects relevant files, run flake8 to check the Python files of the repository for issues and black to check formatting. The .flake8 file is used to configure flake8: https://flake8.pycqa.org/en/latest/user/configuration.html
This commit is contained in:
12
.flake8
Normal file
12
.flake8
Normal file
@ -0,0 +1,12 @@
|
||||
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-python/.flake8
|
||||
# See: https://flake8.pycqa.org/en/latest/user/configuration.html
|
||||
# The code style defined in this file is the official standardized style to be used in all Arduino tooling projects and
|
||||
# should not be modified.
|
||||
|
||||
[flake8]
|
||||
doctests = True
|
||||
# W503 and W504 are mutually exclusive. PEP 8 recommends line break before.
|
||||
ignore = W503
|
||||
max-complexity = 10
|
||||
max-line-length = 120
|
||||
select = E,W,F,C,N
|
Reference in New Issue
Block a user