Skip to content

Commit

Permalink
Turned on pre-commit hook, #124.
Browse files Browse the repository at this point in the history
  • Loading branch information
vmdocua committed Dec 16, 2024
1 parent 484b430 commit a940e46
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-json
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort

# - repo: https://github.com/psf/black
# rev: 23.3.0
# hooks:
# - id: black

- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
# B008 Do not perform function calls in argument defaults.
# A003 class attribute "id" is shadowing a python builtin
args: ["-j8", "--ignore=B008,A003", "--max-line-length=89"]
additional_dependencies:
- flake8-bugbear
- flake8-builtins
# - flake8-unused-arguments

exclude: '^src/reprostim-capture/.*|.codespellrc'

default_language_version:
python: python3.10

0 comments on commit a940e46

Please sign in to comment.