-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add: Allow plugins to report a progress
The precommit function of each plugin will now get another keyword argument report_progress which allows to report the progress of the linting/formating/... To report progress the number of steps/items/files to format/validate/whatever needs to be initalized. For example: ``` report_format.init(len(files)) ``` Afterwards each step can be advanced by using the update method: ``` report_format.update() ```
- Loading branch information
1 parent
1fee198
commit 2e80991
Showing
1 changed file
with
47 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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