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

Replace flake8 pre-commit hook with autoflake (#450)

update gitlab-ci
parent f33c2b59
No related branches found
No related tags found
1 merge request!222Replace flake8 pre-commit hook with autoflake (#450)
Pipeline #17557 passed
......@@ -38,13 +38,13 @@ build:
paths:
- ${PRE_COMMIT_HOME}
flake8:
autoflake:
extends:
- .code_changes
- .pre-commit
stage: checks
script:
- pre-commit run -a flake8
- pre-commit run -a autoflake
format:
extends:
......
......@@ -51,7 +51,14 @@ repos:
rev: 0.7.16
hooks:
- id: mdformat
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
hooks:
- id: flake8
- repo: https://github.com/PyCQA/autoflake
rev: v1.7.7
hooks:
- id: autoflake
args:
- --recursive
- --expand-star-imports
- --remove-all-unused-imports
- --remove-duplicate-keys
- --remove-unused-variables
- --in-place
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