GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add pre-commit by cclauss · Pull Request #321 · cpplint/cpplint

Conversation

@cclauss

@cclauss cclauss commented Mar 4, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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.

All reactions
aaronliu0130
aaronliu0130 previously requested changes Mar 5, 2025
View reviewed changes
Comment thread cpplint_unittest.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

@cclauss
cclauss requested review from aaronliu0130 and jayvdb March 6, 2025 05:44
@cclauss cclauss mentioned this pull request Mar 6, 2025
ruff format cpplint unittest.py #323
Closed
@aaronliu0130

aaronliu0130 commented Mar 6, 2025 via email

Copy link
Copy Markdown
Member
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.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@cclauss
cclauss force-pushed the pre-commit branch from 0cba96c to 608e66d Compare March 6, 2025 15:05
@cclauss
Add pre-commit
06cc96d
@cclauss
cclauss force-pushed the pre-commit branch from 608e66d to 06cc96d Compare March 6, 2025 15:09
@cclauss
cclauss dismissed aaronliu0130’s stale review March 6, 2025 15:10

flake8 dropped

@cclauss

cclauss commented Mar 6, 2025

Copy link
Copy Markdown
Member Author

Let's drop flake8 so we can get pre-commit in place.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@cclauss

cclauss commented Mar 6, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

Please read the first few paragraphs of the README of https://github.com/psf/black

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

jayvdb
jayvdb approved these changes Mar 6, 2025
View reviewed changes
aaronliu0130
aaronliu0130 approved these changes Mar 6, 2025
View reviewed changes
@aaronliu0130
aaronliu0130 merged commit cba132c into develop Mar 6, 2025
@cclauss
cclauss deleted the pre-commit branch March 6, 2025 22:35
@aaronliu0130

aaronliu0130 commented Mar 6, 2025

Copy link
Copy Markdown
Member

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@cclauss

cclauss commented Mar 6, 2025

Copy link
Copy Markdown
Member Author
  • GitHub Actions: pipx run pre-commit run --all-files #324
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aaronliu0130 aaronliu0130 mentioned this pull request Apr 6, 2025
fix required skipped CI jobs #358
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@jayvdb jayvdb jayvdb approved these changes
@aaronliu0130 aaronliu0130 aaronliu0130 approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

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.

3 participants

@cclauss @aaronliu0130 @jayvdb
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.