Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
9301685a
Unverified
Commit
9301685a
authored
Feb 22, 2022
by
Philip Meier
Committed by
GitHub
Feb 22, 2022
Browse files
disable ufmt pre-commit hook (#5454)
* disable ufmt pre-commit hook * run ufmt outside of pre-commit
parent
c530b623
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
18 deletions
+16
-18
.circleci/config.yml
.circleci/config.yml
+4
-2
.circleci/config.yml.in
.circleci/config.yml.in
+4
-2
.pre-commit-config.yaml
.pre-commit-config.yaml
+8
-14
No files found.
.circleci/config.yml
View file @
9301685a
...
@@ -260,14 +260,16 @@ jobs:
...
@@ -260,14 +260,16 @@ jobs:
steps
:
steps
:
-
checkout
-
checkout
-
pip_install
:
-
pip_install
:
args
:
pre-commit
args
:
pre-commit
ufmt==1.3.0 black==21.9b0 usort==0.6.4
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
:
pre-commit run --all-files
command
:
|
ufmt format .
pre-commit run --all-files
-
run
:
-
run
:
name
:
Required lint modifications
name
:
Required lint modifications
when
:
on_fail
when
:
on_fail
...
...
.circleci/config.yml.in
View file @
9301685a
...
@@ -260,14 +260,16 @@ jobs:
...
@@ -260,14 +260,16 @@ jobs:
steps:
steps:
- checkout
- checkout
- pip_install:
- pip_install:
args: pre-commit
args: pre-commit
ufmt==1.3.0 black==21.9b0 usort==0.6.4
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: pre-commit run --all-files
command: |
ufmt format .
pre-commit run --all-files
- run:
- run:
name: Required lint modifications
name: Required lint modifications
when: on_fail
when: on_fail
...
...
.pre-commit-config.yaml
View file @
9301685a
...
@@ -10,20 +10,14 @@ repos:
...
@@ -10,20 +10,14 @@ repos:
args
:
[
--fix=lf
]
args
:
[
--fix=lf
]
-
id
:
end-of-file-fixer
-
id
:
end-of-file-fixer
# - repo: https://github.com/asottile/pyupgrade
# TODO: re-enable after https://github.com/omnilib/ufmt/issues/56 is resolved
# rev: v2.29.0
# - repo: https://github.com/omnilib/ufmt
# hooks:
# rev: v1.3.0
# - id: pyupgrade
# hooks:
# args: [--py37-plus]
# - id: ufmt
# name: Upgrade code
# additional_dependencies:
# - black == 21.9b0
-
repo
:
https://github.com/omnilib/ufmt
# - usort == 0.6.4
rev
:
v1.3.0
hooks
:
-
id
:
ufmt
additional_dependencies
:
-
black == 21.9b0
-
usort == 0.6.4
-
repo
:
https://gitlab.com/pycqa/flake8
-
repo
:
https://gitlab.com/pycqa/flake8
rev
:
3.9.2
rev
:
3.9.2
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment