pre-commit is failing on flagship package generation
See original GitHub issuepre-commit is unable to run this configuration generated by the cookiecutter template:
Desktop ❯ cookiecutter gh:cjolowicz/cookiecutter-hypermodern-python --checkout=2020.8.15
You've downloaded /Users/aidan-melen/.cookiecutters/cookiecutter-hypermodern-python before. Is it okay to delete and re-download it? [yes]:
project_name [hypermodern-python]:
package_name [hypermodern_python]:
friendly_name [Hypermodern Python]:
author [Claudio Jolowicz]:
email [mail@claudiojolowicz.com]:
github_user [cjolowicz]:
version [0.0.0]:
Desktop ❯ cd hypermodern-python
CODE_OF_CONDUCT.rst LICENSE.rst codecov.yml mypy.ini poetry.lock src
CONTRIBUTING.rst README.rst docs noxfile.py pyproject.toml tests
hypermodern-python ❯ git init
Initialized empty Git repository in /Users/aidan-melen/Desktop/hypermodern-python/.git/
hypermodern-python ❯ git add * && git add '.*' HEAD
hypermodern-python ❯ pre-commit install HEAD
pre-commit installed at .git/hooks/pre-commit
hypermodern-python ❯ pre-commit HEAD
black....................................................................Failed
- hook id: black
- exit code: 1
Executable `black` not found
Check for added large files..............................................Failed
- hook id: check-added-large-files
- exit code: 1
Executable `check-added-large-files` not found
Check Toml...............................................................Failed
- hook id: check-toml
- exit code: 1
Executable `check-toml` not found
Check Yaml...............................................................Failed
- hook id: check-yaml
- exit code: 1
Executable `check-yaml` not found
Fix End of Files.........................................................Failed
- hook id: end-of-file-fixer
- exit code: 1
Executable `end-of-file-fixer` not found
flake8...................................................................Failed
- hook id: flake8
- exit code: 1
Executable `flake8` not found
Reorder python imports...................................................Failed
- hook id: reorder-python-imports
- exit code: 1
Executable `reorder-python-imports` not found
Trim Trailing Whitespace.................................................Failed
- hook id: trailing-whitespace
- exit code: 1
Executable `trailing-whitespace-fixer` not found
prettier.................................................................Passed
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Commit Fail · Issue #316 · lorenzwalthert/precommit - GitHub
Hi there, I've been trying to Commit changes to a project through RStudio and I didn't manage to make it work anyhow.
Read more >pre-commit
We built pre-commit to solve our hook issues. It is a multi-language package manager for pre-commit hooks. You specify a list of hooks...
Read more >black as pre-commit hook always fails my commits
In my experience there is no need to unstage any files, either just git add the files that black, or other pre-commit hooks,...
Read more >Automating Python Workflows with pre-commit Hooks
Note that in case at least one of the pre-commit hooks fails, the creation of the commit will fail and you will be...
Read more >Announcing Pre-Commit Hooks Package for Swaggo
I'm happy to announce that Go projects that are using swaggo/swag for their Swagger Docs generation can now utilize a pre-commit hook to ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@dlethin You need to install the hooks using
nox -s pre-commit -- install
, see https://cookiecutter-hypermodern-python.readthedocs.io/en/stable/guide.html#running-pre-commit-from-git.Yes, you’re not the only one. I wish
there wasI knew a better way to draw people’s attention to it.