1
1
Fork
You've already forked ecformat
0

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

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
Labels
Clear labels
Compat/Breaking
Breaking change that won't be backward compatible
EditorConfig
0.17.2
Issues to support version 0.17.2 of the EditorConfig specification
Kind
Bug
Something is not working
Kind
Chore
Some tasks maintainig tasks
Kind
Documentation
Documentation changes
Kind
Enhancement
Improve existing functionality
Kind
Feature
New functionality
Kind
Testing
Issue or pull request related to testing
Packaging
About packaging the project for some platform
Priority
Critical
The priority is critical
Priority
High
The priority is high
Priority
Low
The priority is low
Priority
Medium
The priority is medium
Reviewed
Confirmed
Issue has been confirmed
Reviewed
Duplicate
This issue or pull request already exists
Reviewed
Invalid
Invalid issue
Reviewed
Won't Fix
This issue won't be fixed
Status
Abandoned
Somebody has started to work on this but abandoned work
Status
Blocked
Something is blocking this issue or pull request
Status
Need More Info
Feedback is required to reproduce issue or to continue work
WIP
Work in progress (Assignee is working on this issue)
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
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
Reference in a new issue
BaumiCoder/ecformat
No description provided.
Delete branch "feature/16-pre-commit"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?