Skip to content

Instantly share code, notes, and snippets.

@4383
Created March 23, 2021 10:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 4383/6e96c836bb1b0e1e0e599a5106f43f1a to your computer and use it in GitHub Desktop.
Save 4383/6e96c836bb1b0e1e0e599a5106f43f1a to your computer and use it in GitHub Desktop.
Patch flake8-hacking inconsistences
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 9d94556..66a040f 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -27,9 +27,13 @@ repos:
- id: debug-statements
- id: check-yaml
files: .*\.(yaml|yml)$
- - repo: https://gitlab.com/pycqa/flake8
- rev: 181bb46098dddf7e2d45319ea654b4b4d58c2840 # 3.8.3
+ - repo: local
hooks:
- id: flake8
+ name: flake8
additional_dependencies:
- hacking>=3.0.1,<3.1.0
+ language: python
+ entry: flake8
+ files: '^.*\.py$'
+ exclude: '^(doc|releasenotes|tools)/.*$'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment