Skip to content

Commit

Permalink
added pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
martibosch committed Jul 3, 2021
1 parent 7a4c5b6 commit 22209d7
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
exclude: 'docs|node_modules|migrations|.git|.tox'
default_stages: [commit]
fail_fast: true

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml

- repo: https://github.com/psf/black
rev: 21.5b1
hooks:
- id: black

- repo: https://github.com/timothycrosley/isort
rev: 5.8.0
hooks:
- id: isort

- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
args: ['--config=setup.cfg']
additional_dependencies: [flake8-isort]

- repo: https://github.com/pycqa/pydocstyle
rev: 6.1.1
hooks:
- id: pydocstyle
args: ['detectree', '--config=setup.cfg']
1 change: 1 addition & 0 deletions environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ dependencies:
- m2r2
- pydocstyle
- pytest
- pre-commit
- sphinx
- sphinx-click
- sphinxcontrib-bibtex

0 comments on commit 22209d7

Please sign in to comment.