File tree Expand file tree Collapse file tree 2 files changed +22
-12
lines changed Expand file tree Collapse file tree 2 files changed +22
-12
lines changed Original file line number Diff line number Diff line change @@ -12,18 +12,12 @@ jobs:
12
12
lint :
13
13
runs-on : ubuntu-latest
14
14
steps :
15
- - uses : actions/setup-python@v2
16
- with :
17
- python-version : " 3.x"
18
- - uses : actions/checkout@v2
19
- - name : Lint with flake8
20
- run : |
21
- pip install flake8
22
- flake8 .
23
- - name : Lint with black
24
- run : |
25
- pip install black
26
- black --check .
15
+ - name : Check out repo
16
+ uses : actions/checkout@v2
17
+ - name : Set up Python
18
+ uses : actions/setup-python@v2
19
+ - name : Run pre-commit
20
+ uses :
pre-commit/[email protected]
27
21
28
22
build :
29
23
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change
1
+ repos :
2
+ - repo : https://github.com/PyCQA/isort
3
+ rev : 5.9.1
4
+ hooks :
5
+ - id : isort
6
+
7
+ - repo : https://github.com/python/black
8
+ rev : 21.6b0
9
+ hooks :
10
+ - id : black
11
+ language_version : python3
12
+
13
+ - repo : https://gitlab.com/pycqa/flake8
14
+ rev : 3.9.2
15
+ hooks :
16
+ - id : flake8
You can’t perform that action at this time.
0 commit comments