Installation via pre-commit #37

Manually merged
BaumiCoder merged 7 commits from feature/16-pre-commit into main 2026-02-22 14:34:23 +01:00
Owner

Resolves #16

User perspective

Now, you can use ecformat with pre-defined pre-commit hooks. Details in the installation section of the README.
(Manually defined pre-commit hooks are still possible as an alternative way e.g., to set only a rough version number like 0.1.* instead of 0.1.0).

Developer perspective

The pre-commit hooks of the project itself are now more previous. Only the changed files are processed and the whole repository only if an .editorconfig file changes (and on manual runs via just lint).
Furthermore, the hooks now use a released version of ecformat and does not build from the current source of the git repository.

Resolves #16 ### User perspective Now, you can use ecformat with pre-defined [pre-commit](https://pre-commit.com) hooks. Details in the installation section of the README. (Manually defined pre-commit hooks are still possible as an alternative way e.g., to set only a rough version number like 0.1.* instead of 0.1.0). ### Developer perspective The pre-commit hooks of the project itself are now more previous. Only the changed files are processed and the whole repository only if an `.editorconfig` file changes (and on manual runs via `just lint`). Furthermore, the hooks now use a released version of ecformat and does not build from the current source of the git repository.
There is no need to check the whole repository all the time,
only changes to an .editorconfig file make this necessary.
Verbose pre-commit hooks
All checks were successful
/ changes (pull_request) Successful in 51s
/ lint_reuse (pull_request) Successful in 1m9s
/ lint_codespell (pull_request) Successful in 1m3s
/ lint_ecformat (pull_request) Successful in 9m26s
/ test (pull_request) Successful in 56s
/ lint_cargo_deny (advisories) (pull_request) Successful in 2m32s
/ lint_cargo_deny (bans licenses sources) (pull_request) Successful in 2m23s
/ lint_clippy (pull_request) Successful in 3m52s
/ lint_rustfmt (pull_request) Successful in 1m58s
/ lint_taplo (pull_request) Successful in 1m52s
/ lint_yamllint (pull_request) Successful in 1m4s
/ lint_cargo_udeps (pull_request) Successful in 22m15s
/ lint_docs_rs (pull_request) Successful in 4m38s
49722d4b85
To make warning messages from ecformat visible
even if ecformat does not find any errors.
BaumiCoder manually merged commit 773aa7827f into main 2026-02-22 14:34:23 +01:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
BaumiCoder/ecformat!37
No description provided.