File tree Expand file tree Collapse file tree 4 files changed +23
-2
lines changed Expand file tree Collapse file tree 4 files changed +23
-2
lines changed Original file line number Diff line number Diff line change
1
+ [flake8]
2
+ # See https://flake8.pycqa.org/en/2.5.5/warnings.html
3
+ select =
4
+ E # pep8 errors
5
+ W # pep8 warnings
6
+ F # PyFlake codes
7
+ ignore =
8
+ W503 # line break before binary operator (makes Flake8 work like black)
9
+ W504 # line break after binary operator
10
+ E203 # whitespace before ‘:’ (makes Flake8 work like black)
11
+ E741 # do not use variables named ‘l’, ‘O’, or ‘I’
12
+ E501 # line too long (82 > 79 characters)
Original file line number Diff line number Diff line change 29
29
run : pip install pre-commit
30
30
31
31
- name : " Run pre-commit checks"
32
- run : pre-commit run --all-files
32
+ run : pre-commit run --hook-stage manual -- all-files
33
33
34
34
build :
35
35
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 13
13
additional_dependencies :
14
14
- " types-pytz"
15
15
- " types-requests"
16
+
17
+ - repo : https://github.com/pycqa/isort
18
+ rev : 5.6.4
19
+ hooks :
20
+ - id : isort
21
+ args : [ "--profile", "black"]
Original file line number Diff line number Diff line change 39
39
"pytest" ,
40
40
"pytest-runner" ,
41
41
"click" ,
42
+ "pre-commit" ,
43
+ "black" ,
44
+ "isort" ,
42
45
]
43
46
44
47
setup (
75
78
"Programming Language :: Python :: Implementation :: PyPy" ,
76
79
"Topic :: Database :: Front-Ends" ,
77
80
],
78
- python_requires = ' >=3.7' ,
81
+ python_requires = " >=3.7" ,
79
82
install_requires = ["pytz" , "requests" ],
80
83
extras_require = {
81
84
"all" : all_require ,
You can’t perform that action at this time.
0 commit comments