11repos :
2+ # Syntax validation and some basic sanity checks
3+ - repo : https://github.com/pre-commit/pre-commit-hooks
4+ rev : v4.0.1
5+ hooks :
6+ - id : check-merge-conflict
7+ - id : check-ast
8+ fail_fast : True
9+ - id : check-json
10+ - id : check-added-large-files
11+ args : ['--maxkb=200']
12+ - id : check-yaml
213
314# Automatically sort imports
415- repo : https://github.com/PyCQA/isort
516 rev : 5.9.3
617 hooks :
718 - id : isort
19+ args : [
20+ ' -a' , 'from __future__ import annotations', # 3.7-3.11
21+ ' --rm' , 'from __future__ import absolute_import', # -3.0
22+ ' --rm' , 'from __future__ import division', # -3.0
23+ ' --rm' , 'from __future__ import generator_stop', # -3.7
24+ ' --rm' , 'from __future__ import generators', # -2.3
25+ ' --rm' , 'from __future__ import nested_scopes', # -2.2
26+ ' --rm' , 'from __future__ import print_function', # -3.0
27+ ' --rm' , 'from __future__ import unicode_literals', # -3.0
28+ ' --rm' , 'from __future__ import with_statement', # -2.6
29+ ]
830
931# Automatic source code formatting
1032- repo : https://github.com/psf/black
@@ -19,14 +41,3 @@ repos:
1941 hooks :
2042 - id : flake8
2143 additional_dependencies : ['flake8-comprehensions==3.5.0']
22-
23- # Syntax validation and some basic sanity checks
24- - repo : https://github.com/pre-commit/pre-commit-hooks
25- rev : v4.0.1
26- hooks :
27- - id : check-merge-conflict
28- - id : check-ast
29- - id : check-json
30- - id : check-added-large-files
31- args : ['--maxkb=200']
32- - id : check-yaml
0 commit comments