question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pre-commit is failing on flagship package generation

See original GitHub issue

pre-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:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
cjolowiczcommented, Dec 27, 2021
0reactions
cjolowiczcommented, Dec 27, 2021

Yes, you’re not the only one. I wish there was I knew a better way to draw people’s attention to it.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found