FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

🔧 Add a pre-commit config with hygiene checks by LuShadowX · Pull Request #60 · sanitizers/patchback-github-app · GitHub

🔧 Add a pre-commit config with hygiene checks - #60

Merged
webknjaz merged 2 commits into
sanitizers:masterfrom
LuShadowX:pre-commit
Jul 27, 2026
Merged

🔧 Add a pre-commit config with hygiene checks#60
webknjaz merged 2 commits into
sanitizers:masterfrom
LuShadowX:pre-commit

Conversation

Copy link
Copy Markdown
Contributor

You mentioned linters in #59 — this is the first pass, kept deliberately small.

The repo is enabled on pre-commit.ci but has never had a config, so every pull request gets a red error during ci config check. #55, #57 and #58 all have it. This adds one.

I limited the hook set to things that land green: the whitespace/EOF fixers, the non-controversial file checks, codespell, and yamllint with your .yamllint from tox-pre-commit — so zero-indent sequences are enforced, which the YAML already here follows. The only content change is the missing newline at the end of README.md, applied by end-of-file-fixer and split into its own commit.

Left out on purpose, each worth a separate PR:

  • ruff, flake8, mypy, pylint — these need real changes across patchback/.
  • shellcheck and bashate — .profile trips SC2155 and SC2086, and it is executable without a shebang, so check-executables-have-shebangs fails on it as well. Fixing that touches deployment behaviour, so it shouldn't ride along with a tooling PR.
  • check-github-workflows and actionlint — nothing for them to check until there are workflows.

Verified with pre-commit run --all-files: green once the README newline is in.

The repo is set up on pre-commit.ci but has never had a config, so every
pull request gets a red `error during ci config` check. This adds one.

The hook selection is deliberately limited to whitespace/EOF fixers and
non-controversial file checks, plus yamllint and codespell, so that it
lands green. The linters that would need actual code changes — ruff,
flake8, mypy, pylint, shellcheck and bashate — are left for follow-ups.
`.yamllint` is taken from tox-pre-commit, so zero-indent sequences are
enforced, matching the existing YAML in this repo.
Applied by the `end-of-file-fixer` hook.

webknjaz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks!

webknjaz merged commit b8cb0bf into sanitizers:master Jul 27, 2026
1 check passed

Copy link
Copy Markdown
Member

Left out on purpose, each worth a separate PR:

@LuShadowX I think it's time to try starting those separate PRs. Even for the things that don't have files to check.

Copy link
Copy Markdown
Contributor Author

Starting with two rather than the whole set: #62 and #63, both split out of #57.

On the deferred hooks — I'd rather take those two or three at a time than open the lot at once, so nothing sits half-reviewed. Say which you want first and I'll follow that order; otherwise I'll start with the ones that need no new tooling decisions.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL