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

working on cleaning the code

parent 2224241b
No related branches found
No related tags found
No related merge requests found
...@@ -3,14 +3,14 @@ ...@@ -3,14 +3,14 @@
# See https://pre-commit.com/hooks.html for more hooks # See https://pre-commit.com/hooks.html for more hooks
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0 rev: v4.3.0
hooks: hooks:
- id: trailing-whitespace - id: trailing-whitespace
- id: end-of-file-fixer - id: end-of-file-fixer
- id: check-yaml - id: check-yaml
- id: check-added-large-files - id: check-added-large-files
- repo: https://github.com/psf/black - repo: https://github.com/psf/black
rev: stable rev: 22.8.0
hooks: hooks:
- id: black - id: black
language_version: python3.9 language_version: python3.9
...@@ -20,3 +20,8 @@ repos: ...@@ -20,3 +20,8 @@ repos:
grav_waves/run_population_scripts/run_PPISN_population.py| grav_waves/run_population_scripts/run_PPISN_population.py|
grav_waves/run_population_scripts/run_PPISN_population_new.py| grav_waves/run_population_scripts/run_PPISN_population_new.py|
)$ )$
- repo: https://github.com/pycqa/flake8
rev: 5.0.4
hooks:
- id: flake8
args: ['--ignore=E129,E2,E501']
...@@ -16,6 +16,13 @@ extend-exclude = ''' ...@@ -16,6 +16,13 @@ extend-exclude = '''
) )
''' '''
[tool.flake8]
max-line-length = 89
max-complexity = 18
select = B,C,E,F,W,T4,B9
[tool.coverage] [tool.coverage]
#omit = #omit =
# test_*.py # test_*.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