GeezerVison is showing github.com — Add pre-commit by cclauss · Pull Request #321 · cpplint/cpplint
Conversation
cclauss
commented
Mar 4, 2025
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
https://pre-commit.com
% pipx install pre-commit # or uv tool install pre-commit
% pre-commit install
pre-commit installed at .git/hooks/pre-commit
% pre-commit autoupdate
[https://github.com/codespell-project/codespell] already up to date!
[https://github.com/tox-dev/pyproject-fmt] already up to date!
[https://github.com/abravalheri/validate-pyproject] already up to date!
% pre-commit run --all-files
codespell................................................................Passed
pyproject-fmt............................................................Passed
Validate pyproject.toml..................................................Passed
% git commit -am"Add pre-commit"
codespell................................................................Passed
pyproject-fmt............................................................Passed
Validate pyproject.toml..................................................Passed
[pre-commit 6dcbda1] Add pre-commit
3 files changed, 40 insertions(+), 9 deletions(-)
create mode 100644 .pre-commit-config.yaml
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
|
Our project's CI has used and configured flake8 for years, and never did it complain about extra string indentation. I'm sure we could configure `ruff format` to not complain about the strings as well.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Let's drop flake8 so we can get pre-commit in place.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
cclauss
commented
Mar 6, 2025
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Actions in this workflow must be: within a repository owned by cpplint, created by GitHub, or verified in the GitHub Marketplace.
Apparently it's not verified in the marketplace. I should've noticed that no tests were run. The workflow's page also says it's in maintenance-only mode and suggests "generally you want to use pre-commit.ci which is faster and has more features." which is an entirely separate GitHub app. @cclauss, I'm assuming you can't disable whatever repo setting that's causing the workflow verification requirement either? Should we just remove the pre-commit CI and just have tox run pre-commit instead?
Also, I've thought about it a bit, and I no longer object to the removal of extra string indentation.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
jayvdb
jayvdb approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|