File tree Expand file tree Collapse file tree 3 files changed +16
-18
lines changed Expand file tree Collapse file tree 3 files changed +16
-18
lines changed Original file line number Diff line number Diff line change @@ -260,14 +260,16 @@ jobs:
260
260
steps:
261
261
- checkout
262
262
- pip_install:
263
- args: pre-commit
263
+ args: pre-commit ufmt==1.3.0 black==21.9b0 usort==0.6.4
264
264
descr: Install lint utilities
265
265
- run:
266
266
name: Install pre-commit hooks
267
267
command: pre-commit install-hooks
268
268
- run:
269
269
name: Lint Python code and config files
270
- command: pre-commit run --all-files
270
+ command: |
271
+ ufmt format .
272
+ pre-commit run --all-files
271
273
- run:
272
274
name: Required lint modifications
273
275
when: on_fail
Original file line number Diff line number Diff line change @@ -10,20 +10,14 @@ repos:
10
10
args : [--fix=lf]
11
11
- id : end-of-file-fixer
12
12
13
- # - repo: https://github.com/asottile/pyupgrade
14
- # rev: v2.29.0
15
- # hooks:
16
- # - id: pyupgrade
17
- # args: [--py37-plus]
18
- # name: Upgrade code
19
-
20
- - repo : https://github.com/omnilib/ufmt
21
- rev : v1.3.0
22
- hooks :
23
- - id : ufmt
24
- additional_dependencies :
25
- - black == 21.9b0
26
- - usort == 0.6.4
13
+ # TODO: re-enable after https://github.com/omnilib/ufmt/issues/56 is resolved
14
+ # - repo: https://github.com/omnilib/ufmt
15
+ # rev: v1.3.0
16
+ # hooks:
17
+ # - id: ufmt
18
+ # additional_dependencies:
19
+ # - black == 21.9b0
20
+ # - usort == 0.6.4
27
21
28
22
- repo : https://gitlab.com/pycqa/flake8
29
23
rev : 3.9.2
You can’t perform that action at this time.
0 commit comments