Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Pre-commit added to reduce the effort for developers to check their work. * I have added missing checks to test_bake_with_defaults. * I have fixed some logic in the post_gen.py file about deleting the CHANGELOG.md file and added a test for that. closes #93
- Loading branch information
Showing
5 changed files
with
174 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
default_stages: [commit] | ||
fail_fast: true | ||
exclude: ".conf.py|^tests/|^{{cookiecutter.project_slug}}/" | ||
# {{cookiecutter.project_slug}} has been excluded until I start adapting | ||
# that area. | ||
|
||
ci: | ||
autofix_commit_msg: | | ||
chore(pre-commit): Auto fixes from pre-commit.com hooks | ||
for more information, see https://pre-commit.ci | ||
autofix_prs: true | ||
autoupdate_commit_msg: "chore(pre-commit): Weekly pre-commit autoupdate" | ||
autoupdate_schedule: weekly | ||
skip: [] | ||
submodules: false | ||
|
||
repos: | ||
# - repo: https://github.com/Lucas-C/pre-commit-hooks | ||
# rev: v1.1.9 | ||
# hooks: | ||
# - id: forbid-crlf | ||
# - id: remove-crlf | ||
|
||
# - repo: https://github.com/Lucas-C/pre-commit-hooks-safety | ||
# rev: v1.2.1 | ||
# hooks: | ||
# - id: python-safety-dependencies-check | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.0.1 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-merge-conflict | ||
- id: check-yaml | ||
|
||
- repo: https://github.com/pycqa/pylint | ||
rev: v2.10.2 | ||
hooks: | ||
- id: pylint | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 21.8b0 | ||
hooks: | ||
- id: black | ||
|
||
- repo: https://github.com/PyCQA/bandit | ||
rev: 1.7.0 | ||
hooks: | ||
- id: bandit | ||
args: ["--ini=tox.ini"] | ||
|
||
- repo: https://github.com/pycqa/flake8 | ||
rev: 3.9.2 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: [flake8-typing-imports==1.10.0] | ||
|
||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.9.3 | ||
hooks: | ||
- id: isort | ||
|
||
- repo: https://github.com/pre-commit/pygrep-hooks | ||
rev: v1.9.0 | ||
hooks: | ||
- id: rst-directive-colons | ||
# - id: rst-backticks | ||
- id: rst-inline-touching-normal | ||
- id: python-no-log-warn | ||
- id: python-no-eval | ||
- id: text-unicode-replacement-char | ||
|
||
# {%- if cookiecutter.use_mypy == 'y' %} | ||
# - repo: https://github.com/pre-commit/mirrors-mypy | ||
# rev: v0.901 | ||
# hooks: | ||
# - id: mypy | ||
# exclude: tests/ | ||
# {% if cookiecutter.command_line_interface|lower == 'click' -%} | ||
# additional_dependencies: | ||
# - types-click | ||
# {%- endif %} | ||
# {%- endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters