diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..99346a0 --- /dev/null +++ b/.pre-commit-config.yaml @@ -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