Skip to content

馃敡(project) add pre-commit-config.yaml - #637

Open
piptouque wants to merge 2 commits into
openfun:mainfrom
piptouque:feat_add_pre-commit
Open

馃敡(project) add pre-commit-config.yaml#637
piptouque wants to merge 2 commits into
openfun:mainfrom
piptouque:feat_add_pre-commit

Conversation

@piptouque

@piptouque piptouque commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Purpose

I've been using pre-commit with this project. Since no pre-commit-config.yaml has been committed to main,
I've had to keep my config in a private commit which is inconvenient.
It seems strange to me, so I'm putting it forward.

It applies black and ruff-check, as well as some yaml checks.

Note that this config does not include gitlint.
It should instead be installed with gitlint install and managed separately.
This is because we use a custom gitlint filter that needs the requests package,
so we need access to the gitlint env (preferably pipx).

Proposal

  • add pre-commit-config.yaml
  • run pre-commit run --all to assert that the result passes QA

@piptouque
piptouque force-pushed the feat_add_pre-commit branch 3 times, most recently from 58b107d to 1558b10 Compare September 7, 2026 15:36
piptouque added 2 commits September 7, 2026 17:42
This config does not include `gitlint`.
It should instead be installed with `gitlint install`
and managed separatly.
This is because we use a custom gitlint filter
that needs the `requests` package,
so we need access to the gitlint env (preferably pipx).
Using `pre-commit run --all`.
Implemented suggestions to
replace duplicate `# noqa:` statements related
to 'too many arguments' in children classes
by an `@override` property.
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.

1 participant