Skip to content
Snippets Groups Projects
Commit c418ac31 authored by Vellekoop, Sam's avatar Vellekoop, Sam
Browse files

chore: add pre-commit hooks

parent 1f64b0a5
No related branches found
No related tags found
No related merge requests found
[flake8]
max-line-length = 88
extend-ignore = E203,E701
# 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
......@@ -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"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment