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

Reinstate ufmt pre commit hook (#5460)

* Revert "disable ufmt pre-commit hook (#5454)"

This reverts commit 9301685a.

* upgrade ufmt to 1.3.2
parent 9301685a
...@@ -260,16 +260,14 @@ jobs: ...@@ -260,16 +260,14 @@ jobs:
steps: steps:
- checkout - checkout
- pip_install: - pip_install:
args: pre-commit ufmt==1.3.0 black==21.9b0 usort==0.6.4 args: pre-commit
descr: Install lint utilities descr: Install lint utilities
- run: - run:
name: Install pre-commit hooks name: Install pre-commit hooks
command: pre-commit install-hooks command: pre-commit install-hooks
- run: - run:
name: Lint Python code and config files name: Lint Python code and config files
command: | command: pre-commit run --all-files
ufmt format .
pre-commit run --all-files
- run: - run:
name: Required lint modifications name: Required lint modifications
when: on_fail when: on_fail
......
...@@ -260,16 +260,14 @@ jobs: ...@@ -260,16 +260,14 @@ jobs:
steps: steps:
- checkout - checkout
- pip_install: - pip_install:
args: pre-commit ufmt==1.3.0 black==21.9b0 usort==0.6.4 args: pre-commit
descr: Install lint utilities descr: Install lint utilities
- run: - run:
name: Install pre-commit hooks name: Install pre-commit hooks
command: pre-commit install-hooks command: pre-commit install-hooks
- run: - run:
name: Lint Python code and config files name: Lint Python code and config files
command: | command: pre-commit run --all-files
ufmt format .
pre-commit run --all-files
- run: - run:
name: Required lint modifications name: Required lint modifications
when: on_fail when: on_fail
......
...@@ -10,14 +10,13 @@ repos: ...@@ -10,14 +10,13 @@ repos:
args: [--fix=lf] args: [--fix=lf]
- id: end-of-file-fixer - id: end-of-file-fixer
# TODO: re-enable after https://github.com/omnilib/ufmt/issues/56 is resolved - repo: https://github.com/omnilib/ufmt
# - repo: https://github.com/omnilib/ufmt rev: v1.3.2
# rev: v1.3.0 hooks:
# hooks: - id: ufmt
# - id: ufmt additional_dependencies:
# additional_dependencies: - black == 21.9b0
# - black == 21.9b0 - usort == 0.6.4
# - usort == 0.6.4
- repo: https://gitlab.com/pycqa/flake8 - repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2 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