Unverified Commit 9301685a authored by Philip Meier's avatar Philip Meier Committed by GitHub
Browse files

disable ufmt pre-commit hook (#5454)

* disable ufmt pre-commit hook

* run ufmt outside of pre-commit
parent c530b623
......@@ -260,14 +260,16 @@ jobs:
steps:
- checkout
- pip_install:
args: pre-commit
args: pre-commit ufmt==1.3.0 black==21.9b0 usort==0.6.4
descr: Install lint utilities
- run:
name: Install pre-commit hooks
command: pre-commit install-hooks
- run:
name: Lint Python code and config files
command: pre-commit run --all-files
command: |
ufmt format .
pre-commit run --all-files
- run:
name: Required lint modifications
when: on_fail
......
......@@ -260,14 +260,16 @@ jobs:
steps:
- checkout
- pip_install:
args: pre-commit
args: pre-commit ufmt==1.3.0 black==21.9b0 usort==0.6.4
descr: Install lint utilities
- run:
name: Install pre-commit hooks
command: pre-commit install-hooks
- run:
name: Lint Python code and config files
command: pre-commit run --all-files
command: |
ufmt format .
pre-commit run --all-files
- run:
name: Required lint modifications
when: on_fail
......
......@@ -10,20 +10,14 @@ repos:
args: [--fix=lf]
- id: end-of-file-fixer
# - repo: https://github.com/asottile/pyupgrade
# rev: v2.29.0
# hooks:
# - id: pyupgrade
# args: [--py37-plus]
# name: Upgrade code
- repo: https://github.com/omnilib/ufmt
rev: v1.3.0
hooks:
- id: ufmt
additional_dependencies:
- black == 21.9b0
- usort == 0.6.4
# TODO: re-enable after https://github.com/omnilib/ufmt/issues/56 is resolved
# - repo: https://github.com/omnilib/ufmt
# rev: v1.3.0
# hooks:
# - id: ufmt
# additional_dependencies:
# - black == 21.9b0
# - usort == 0.6.4
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment