Skip to content

Commit

Permalink
Merge pull request #1712 from cookiecutter/pre-commit
Browse files Browse the repository at this point in the history
CI/CD: Updated .pre-commit-config.yaml to use latest hooks versions
  • Loading branch information
insspb committed Jun 7, 2022
2 parents 5e4a5a7 + 6fdbb92 commit 7e8a34c
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 12 deletions.
19 changes: 14 additions & 5 deletions .pre-commit-config.yaml
@@ -1,7 +1,7 @@
---
repos:
- repo: https://github.com/PyCQA/doc8
rev: 0.8.1
rev: 0.11.2
hooks:
- id: doc8
name: doc8
Expand All @@ -17,25 +17,34 @@ repos:
language_version: python3
exclude: ^(tests\/hooks-abort-render\/hooks|docs\/HelloCookieCutter1)
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
rev: v4.2.0
hooks:
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: mixed-line-ending
- id: check-byte-order-marker
- id: fix-byte-order-marker
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-merge-conflict
- id: check-symlinks
- id: check-case-conflict
- id: check-docstring-first
- id: check-json
exclude: "invalid-syntax.json|tests/fake-repo-bad-json/cookiecutter.json|tests/fake-repo/cookiecutter.json"
- id: check-toml
- id: check-xml
- id: check-yaml
exclude: "not_rendered.yml|invalid-config.yaml"
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.9
rev: 4.0.1
hooks:
- id: flake8
additional_dependencies:
- flake8-absolute-import
- flake8-black
- flake8-docstrings
- repo: https://github.com/PyCQA/bandit
rev: 1.6.0
rev: 1.7.4
hooks:
- id: bandit
args: [--ini, .bandit]
Expand Down
1 change: 0 additions & 1 deletion setup.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
"""cookiecutter distutils configuration."""
from setuptools import setup

Expand Down
1 change: 0 additions & 1 deletion tests/hooks-abort-render/hooks/post_gen_project.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# flake8: noqa

"""Simple post-gen hook for testing the handling of different exit codes."""
Expand Down
1 change: 0 additions & 1 deletion tests/hooks-abort-render/hooks/pre_gen_project.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# flake8: noqa

"""Simple pre-gen hook for testing the handling of different exit codes."""
Expand Down
1 change: 0 additions & 1 deletion tests/test-pyhooks/hooks/post_gen_project.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
"""Simple post-gen hook for testing project folder and custom file creation."""

print('pre generation hook')
Expand Down
1 change: 0 additions & 1 deletion tests/test-pyhooks/hooks/pre_gen_project.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
"""Simple pre-gen hook for testing project folder and custom file creation."""

print('pre generation hook')
Expand Down
1 change: 0 additions & 1 deletion tests/test-pyshellhooks/hooks/post_gen_project.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
"""Simple post-gen hook for testing project folder and custom file creation."""

print('pre generation hook')
Expand Down
1 change: 0 additions & 1 deletion tests/test-pyshellhooks/hooks/pre_gen_project.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
"""Simple pre-gen hook for testing project folder and custom file creation."""


Expand Down

0 comments on commit 7e8a34c

Please sign in to comment.