Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .circleci/config.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions .circleci/config.yml.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
22 changes: 8 additions & 14 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down