Skip to content
Snippets Groups Projects
Commit e0837c1e authored by David Hendriks's avatar David Hendriks
Browse files

added precommit config

parent 26f84f68
No related branches found
No related tags found
No related merge requests found
# exclude: '.run_PPISN_population.py|.run_PPISN_population_new.py'
# 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.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
language_version: python3.9
# https://pre-commit.com/#arguments-pattern-in-hooks
exclude: |
(?x)^(
grav_waves/run_population_scripts/run_PPISN_population.py|
grav_waves/run_population_scripts/run_PPISN_population_new.py|
)$
# - repo: https://github.com/pycqa/isort
# rev: 5.10.1
# hooks:
# - id: isort
# files: "\\.(py)$"
# args: [--settings-path=pyproject.toml]
- repo: https://github.com/pycqa/isort
rev: 5.5.4
hooks:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/hadialqattan/pycln
rev: v2.1.1 # Possible releases: https://github.com/hadialqattan/pycln/releases
hooks:
- id: pycln
args: [--config=pyproject.toml]
# - repo: https://github.com/pycqa/pydocstyle
# rev: 6.1.1 # pick a git hash / tag to point to
# hooks:
# - id: pydocstyle
# args: [--config=pyproject.toml]
- repo: https://github.com/pycqa/flake8
rev: 5.0.4
hooks:
- id: flake8
args: ['--ignore=E129,E2,E501,W503,E722,binarycpython/tests/main.py,docs/source/examples/']
exclude: |
(?x)^(
binarycpython/tests/main.py|
docs/source/examples/example_plotting_distributions.py
)$
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment