We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
lefthook run
Hi! I'm see a memory leak if run lefthook run inside lefthook command.
1.2.7, 1.2.8
Example config:
pre-commit: commands: format: run: lefthook run format format: piped: true parallel: false commands: # number prefix used to save ordering 1_autoflake: glob: "*.py" run: autoflake --recursive --ignore-init-module-imports --remove-all-unused-imports --remove-unused-variables --in-place {staged_files} 2_isort: glob: "*.py" run: isort --color --quiet {staged_files} 3_black: glob: "*.py" run: black {staged_files} 4_pyup_dirs: glob: "*.py" run: pyup_dirs --py311-plus {staged_files} | true 4_black_check: glob: "*.py" run: black --check {staged_files}
Low memory usage
High memory usage
1.2.6:
1.2.7:
1.2.8:
The text was updated successfully, but these errors were encountered:
Wow! Thank your for the issue! I will take a look at this bug. This is unbelievable 馃槺
Sorry, something went wrong.
I found out: bug in deps https://github.com/briandowns/spinner I have updated this to v1.21.0 https://github.com/briandowns/spinner/releases/tag/v1.21.0 and memory got better
PR open
fix: memory leak dependency (#426)
0891dc0
Closes #425
Successfully merging a pull request may close this issue.
馃敡 Summary
Hi! I'm see a memory leak if run
lefthook run
inside lefthook command.Lefthook version
1.2.7, 1.2.8
Steps to reproduce
Example config:
Expected results
Low memory usage
Actual results
High memory usage
Possible Solution
Screenshots (if appropriate)
1.2.6:
![Screenshot 2023-02-10 at 18 49 10](https://user-images.githubusercontent.com/56894629/218135082-bc90e615-7def-4367-a7b0-64b205ee06c4.png)
1.2.7:
![image](https://user-images.githubusercontent.com/56894629/218137744-a06a94b2-8991-4c51-a283-5029557046a0.png)
1.2.8:
![image](https://user-images.githubusercontent.com/56894629/218135820-febbc571-d651-412f-b318-055fd91c7c95.png)
The text was updated successfully, but these errors were encountered: