diff --git a/{{cookiecutter.project_slug}}/.pre-commit-config.yaml b/{{cookiecutter.project_slug}}/.pre-commit-config.yaml index 61ac275..a8324c3 100644 --- a/{{cookiecutter.project_slug}}/.pre-commit-config.yaml +++ b/{{cookiecutter.project_slug}}/.pre-commit-config.yaml @@ -1,7 +1,7 @@ repos: # Run Black - the uncompromising Python code formatter - repo: https://github.com/psf/black - rev: 22.12.0 + rev: 23.3.0 hooks: - id: black-jupyter @@ -19,7 +19,8 @@ repos: - id: check-toml # Unify file endings - id: end-of-file-fixer -{% if cookiecutter.notebooks == "Yes" %} +{%- if cookiecutter.notebooks == "Yes" %} + # Make sure that Jupyter notebooks under version control # have their outputs stripped before committing - repo: https://github.com/kynan/nbstripout @@ -27,4 +28,12 @@ repos: hooks: - id: nbstripout files: ".ipynb" -{% endif -%} +{%- endif %} +{%- if cookiecutter.github_actions_ci == "Yes" %} + + # GitHub Actions Workflow linter + - repo: https://github.com/rhysd/actionlint + rev: v1.6.25 + hooks: + - id: actionlint +{%- endif %}