File tree Expand file tree Collapse file tree 3 files changed +19
-14
lines changed Expand file tree Collapse file tree 3 files changed +19
-14
lines changed Original file line number Diff line number Diff line change 2
2
- repo : https://github.com/pre-commit/pre-commit-hooks
3
3
rev : v4.1.0
4
4
hooks :
5
- - id : check-docstring-first
5
+ - id : trailing-whitespace
6
+ - id : end-of-file-fixer
6
7
- id : check-yaml
7
8
- id : debug-statements
8
9
- id : double-quote-string-fixer
9
- - id : end-of-file-fixer
10
- - id : trailing-whitespace
11
- - repo : https://github.com/PyCQA/flake8
12
- rev : 4.0.1
13
- hooks :
14
- - id : flake8
15
- - repo : https://github.com/pre-commit/mirrors-autopep8
16
- rev : v1.6.0
17
- hooks :
18
- - id : autopep8
10
+ - id : name-tests-test
11
+ - id : requirements-txt-fixer
19
12
- repo : https://github.com/asottile/reorder_python_imports
20
13
rev : v3.0.1
21
14
hooks :
22
15
- id : reorder-python-imports
23
- args : [--py3 -plus]
16
+ args : [--py37 -plus, --add-import, 'from __future__ import annotations' ]
24
17
- repo : https://github.com/asottile/add-trailing-comma
25
18
rev : v2.2.1
26
19
hooks :
@@ -30,9 +23,17 @@ repos:
30
23
rev : v2.31.1
31
24
hooks :
32
25
- id : pyupgrade
33
- args : [--py36-plus]
26
+ args : [--py37-plus]
27
+ - repo : https://github.com/pre-commit/mirrors-autopep8
28
+ rev : v1.6.0
29
+ hooks :
30
+ - id : autopep8
31
+ - repo : https://github.com/PyCQA/flake8
32
+ rev : 4.0.1
33
+ hooks :
34
+ - id : flake8
34
35
- repo : https://github.com/pre-commit/mirrors-mypy
35
- rev : v0.941
36
+ rev : v0.942
36
37
hooks :
37
38
- id : mypy
38
39
additional_dependencies : [types-all]
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
+ from __future__ import annotations
3
+
2
4
import yaml
3
5
4
6
Loader = getattr (yaml , 'CSafeLoader' , yaml .SafeLoader )
Original file line number Diff line number Diff line change
1
+ from __future__ import annotations
2
+
1
3
import re
2
4
3
5
import pytest
You can’t perform that action at this time.
0 commit comments