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
ycai
simbricks
Commits
bc1bb798
Commit
bc1bb798
authored
Jul 09, 2022
by
Jonas Kaufmann
Committed by
Antoine Kaufmann
Jul 12, 2022
Browse files
apply pre-commit only to python files
parent
59861a1f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
18 deletions
+34
-18
.github/workflows/pre-commit.yml
.github/workflows/pre-commit.yml
+2
-0
.pre-commit-config.yaml
.pre-commit-config.yaml
+32
-18
No files found.
.github/workflows/pre-commit.yml
View file @
bc1bb798
...
@@ -14,4 +14,6 @@ jobs:
...
@@ -14,4 +14,6 @@ jobs:
with
:
with
:
python-version
:
'
3.10'
python-version
:
'
3.10'
architecture
:
'
x64'
architecture
:
'
x64'
-
run
:
|
pip install yapf isort
-
uses
:
pre-commit/action@v3.0.0
-
uses
:
pre-commit/action@v3.0.0
.pre-commit-config.yaml
View file @
bc1bb798
repos
:
repos
:
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
-
repo
:
local
rev
:
v4.3.0
hooks
:
hooks
:
-
id
:
check-yaml
-
id
:
format-isort
-
id
:
double-quote-string-fixer
name
:
format-isort
-
id
:
end-of-file-fixer
language
:
python
-
id
:
trailing-whitespace
entry
:
make format-isort
-
id
:
check-ast
pass_filenames
:
false
-
repo
:
https://github.com/PyCQA/docformatter
-
id
:
format-yapf
name
:
format-yapf
language
:
python
entry
:
make format-yapf
pass_filenames
:
false
-
repo
:
https://github.com/PyCQA/docformatter
rev
:
v1.4
rev
:
v1.4
hooks
:
hooks
:
-
id
:
docformatter
-
id
:
docformatter
args
:
[
--in-place
,
--wrap-summaries=80
,
--wrap-descriptions=80
,
--pre-summary-newline
]
args
:
-
repo
:
https://github.com/pre-commit/mirrors-yapf
[
rev
:
v0.32.0
--in-place
,
hooks
:
--wrap-summaries=80
,
-
id
:
yapf
--wrap-descriptions=80
,
-
repo
:
https://github.com/pycqa/isort
--pre-summary-newline
,
rev
:
5.10.1
]
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
rev
:
v4.3.0
hooks
:
hooks
:
-
id
:
isort
-
id
:
double-quote-string-fixer
name
:
isort
types
:
-
"
python"
-
id
:
end-of-file-fixer
types
:
-
"
python"
-
id
:
trailing-whitespace
types
:
-
"
python"
-
id
:
check-ast
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