Skip to content

Commit c6b447b

Browse files
authored
Reinstate ufmt pre commit hook (#5460)
* Revert "disable ufmt pre-commit hook (#5454)" This reverts commit 9301685. * upgrade ufmt to 1.3.2
1 parent 9301685 commit c6b447b

File tree

3 files changed

+11
-16
lines changed

3 files changed

+11
-16
lines changed

.circleci/config.yml

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.circleci/config.yml.in

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,16 +260,14 @@ jobs:
260260
steps:
261261
- checkout
262262
- pip_install:
263-
args: pre-commit ufmt==1.3.0 black==21.9b0 usort==0.6.4
263+
args: pre-commit
264264
descr: Install lint utilities
265265
- run:
266266
name: Install pre-commit hooks
267267
command: pre-commit install-hooks
268268
- run:
269269
name: Lint Python code and config files
270-
command: |
271-
ufmt format .
272-
pre-commit run --all-files
270+
command: pre-commit run --all-files
273271
- run:
274272
name: Required lint modifications
275273
when: on_fail

.pre-commit-config.yaml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,13 @@ repos:
1010
args: [--fix=lf]
1111
- id: end-of-file-fixer
1212

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
13+
- repo: https://github.com/omnilib/ufmt
14+
rev: v1.3.2
15+
hooks:
16+
- id: ufmt
17+
additional_dependencies:
18+
- black == 21.9b0
19+
- usort == 0.6.4
2120

2221
- repo: https://gitlab.com/pycqa/flake8
2322
rev: 3.9.2

0 commit comments

Comments
 (0)