Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MNP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Model for Nature Policy 🌿🦋🦆
MNP
Commits
c418ac31
Commit
c418ac31
authored
2 months ago
by
Vellekoop, Sam
Browse files
Options
Downloads
Patches
Plain Diff
chore: add pre-commit hooks
parent
1f64b0a5
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.flake8
+3
-0
3 additions, 0 deletions
.flake8
.pre-commit-config.yaml
+36
-0
36 additions, 0 deletions
.pre-commit-config.yaml
pyproject.toml
+10
-1
10 additions, 1 deletion
pyproject.toml
with
49 additions
and
1 deletion
.flake8
0 → 100644
+
3
−
0
View file @
c418ac31
[flake8]
max-line-length = 88
extend-ignore = E203,E701
This diff is collapsed.
Click to expand it.
.pre-commit-config.yaml
0 → 100644
+
36
−
0
View file @
c418ac31
# 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
:
v5.0.0
hooks
:
-
id
:
trailing-whitespace
-
id
:
end-of-file-fixer
-
id
:
check-yaml
-
id
:
check-added-large-files
-
id
:
check-merge-conflict
-
repo
:
https://github.com/psf/black
rev
:
25.1.0
hooks
:
-
id
:
black
-
repo
:
https://github.com/pycqa/flake8
rev
:
7.2.0
hooks
:
-
id
:
flake8
-
repo
:
https://github.com/pycqa/isort
rev
:
6.0.1
hooks
:
-
id
:
isort
-
repo
:
https://github.com/commitizen-tools/commitizen
rev
:
v1.17.0
hooks
:
-
id
:
commitizen
stages
:
[
commit-msg
]
#- repo: local
# hooks:
# - id: pytest
# name: test
# language: system
# entry: pytest tests
# pass_filenames: false
# always_run: true
This diff is collapsed.
Click to expand it.
pyproject.toml
+
10
−
1
View file @
c418ac31
...
...
@@ -20,5 +20,14 @@ dependencies = [
"joblib >= 1.2.0"
]
[project.optional-dependencies]
dev
=
[
"pytest"
,
"pre-commit"
]
[tool.setuptools.packages.find]
include
=
[
"mnp*"
]
\ No newline at end of file
include
=
[
"mnp*"
]
[tool.isort]
profile
=
"black"
[tool.pylint.format]
max-line-length
=
"88"
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