diff --git a/.gitignore b/.gitignore index ec14783f..d1e0d496 100644 --- a/.gitignore +++ b/.gitignore @@ -45,6 +45,3 @@ htmlcov/ # Jupyter Notebook .ipynb_checkpoints/ .virtual_documents/ - -# Pre-commit config -.pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..49987591 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,21 @@ +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.5.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: 24.1.1 + hooks: + - id: black + language_version: python3.11 + +- repo: https://github.com/pycqa/isort + rev: 5.13.2 + hooks: + - id: isort + name: isort (python) +exclude: GALLERY.md