Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
network
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Wiki
Code
Merge requests
9
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
funkwhale
network
Commits
196a516f
Verified
Commit
196a516f
authored
2 years ago
by
jooola
Browse files
Options
Downloads
Patches
Plain Diff
feat: add pre-commit config
parent
213b7fd3
No related branches found
Branches containing commit
No related tags found
1 merge request
!56
chore: add pre commit
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.pre-commit-config.yaml
+52
-0
52 additions, 0 deletions
.pre-commit-config.yaml
pyproject.toml
+3
-0
3 additions, 0 deletions
pyproject.toml
with
55 additions
and
0 deletions
.pre-commit-config.yaml
0 → 100644
+
52
−
0
View file @
196a516f
---
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos
:
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
rev
:
v4.4.0
hooks
:
-
id
:
check-added-large-files
-
id
:
check-case-conflict
-
id
:
check-executables-have-shebangs
-
id
:
check-shebang-scripts-are-executable
-
id
:
check-symlinks
-
id
:
destroyed-symlinks
-
id
:
check-json
-
id
:
check-yaml
-
id
:
check-xml
-
id
:
check-toml
-
id
:
check-vcs-permalinks
-
id
:
check-merge-conflict
-
id
:
end-of-file-fixer
-
id
:
mixed-line-ending
-
id
:
trailing-whitespace
-
repo
:
https://github.com/asottile/pyupgrade
rev
:
v3.2.3
hooks
:
-
id
:
pyupgrade
args
:
[
--py37-plus
]
-
repo
:
https://github.com/psf/black
rev
:
22.10.0
hooks
:
-
id
:
black
-
repo
:
https://github.com/pycqa/isort
rev
:
5.10.1
hooks
:
-
id
:
isort
-
repo
:
https://github.com/pre-commit/mirrors-prettier
rev
:
v2.7.1
hooks
:
-
id
:
prettier
files
:
\.(md|yml|yaml|json)$
-
repo
:
https://github.com/codespell-project/codespell
rev
:
v2.2.2
hooks
:
-
id
:
codespell
additional_dependencies
:
[
tomli
]
This diff is collapsed.
Click to expand it.
pyproject.toml
+
3
−
0
View file @
196a516f
...
...
@@ -36,3 +36,6 @@ pytest-cov = "^4.0.0"
[build-system]
requires
=
["poetry-core>
=
1.0
.
0
"]
build-backend
=
"poetry.core.masonry.api"
[tool.isort]
profile
=
"black"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment