Skip to content
Snippets Groups Projects
Commit c21e73fb authored by Moul's avatar Moul
Browse files

[mod] #424: Introduce flake8 pre-commit hook, conf and job

Set to 101 line length
because there is quite a lot ending at 101 chars
In .flake8, because pyproject.toml is not yet supported
parent 03bb6210
No related branches found
No related tags found
No related merge requests found
[flake8]
max-line-length = 101
inline-quotes = "
...@@ -38,6 +38,14 @@ build: ...@@ -38,6 +38,14 @@ build:
paths: paths:
- ${PRE_COMMIT_HOME} - ${PRE_COMMIT_HOME}
flake8:
extends:
- .code_changes
- .pre-commit
stage: checks
script:
- pre-commit run --all-files flake8
format: format:
extends: extends:
- .code_changes - .code_changes
......
...@@ -43,3 +43,7 @@ repos: ...@@ -43,3 +43,7 @@ repos:
rev: 0.7.14 rev: 0.7.14
hooks: hooks:
- id: mdformat - id: mdformat
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment