diff --git a/{{cookiecutter.project_name}}/{{'.pre-commit-config.yaml' if cookiecutter.license_checker == 'y'}} b/{{cookiecutter.project_name}}/pre-commit-config.yaml similarity index 89% rename from {{cookiecutter.project_name}}/{{'.pre-commit-config.yaml' if cookiecutter.license_checker == 'y'}} rename to {{cookiecutter.project_name}}/pre-commit-config.yaml index 1263db6..b4c8fcd 100644 --- a/{{cookiecutter.project_name}}/{{'.pre-commit-config.yaml' if cookiecutter.license_checker == 'y'}} +++ b/{{cookiecutter.project_name}}/pre-commit-config.yaml @@ -18,7 +18,9 @@ repos: hooks: - id: mypy args: [--install-types, --non-interactive, --ignore-missing-imports, --show-error-codes] +{%- if cookiecutter.license_checker != "n" -%} - repo: https://github.com/ubersan/pylic rev: v3.5.0 hooks: - - id: pylic \ No newline at end of file + - id: pylic +{% endif %} \ No newline at end of file diff --git a/{{cookiecutter.project_name}}/{{'.pre-commit-config.yaml' if cookiecutter.license_checker == 'n'}} b/{{cookiecutter.project_name}}/{{'.pre-commit-config.yaml' if cookiecutter.license_checker == 'n'}} deleted file mode 100644 index b904646..0000000 --- a/{{cookiecutter.project_name}}/{{'.pre-commit-config.yaml' if cookiecutter.license_checker == 'n'}} +++ /dev/null @@ -1,20 +0,0 @@ -repos: -- repo: https://github.com/ambv/black - rev: 23.7.0 - hooks: - - id: black -- repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.0.290 - hooks: - - id: ruff - args: [--fix, --exit-non-zero-on-fix] - types_or: [python, pyi] -- repo: https://github.com/kynan/nbstripout - rev: 0.6.0 - hooks: - - id: nbstripout -- repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.4.1 - hooks: - - id: mypy - args: [--install-types, --non-interactive, --ignore-missing-imports, --show-error-codes] \ No newline at end of file