mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-22 21:52:25 +01:00
Fix pre-commit OOM: 4GB memory cap via cgroups v2
- Cap cppcheck: --check-level=normal, batch files one-at-a-time (xargs -n 1) - Cap pylint: --jobs=1 (was --jobs=0 spawning N workers per CPU core) - Cap eslint: NODE_OPTIONS --max-old-space-size=512 - Wrap git hooks in systemd-run --scope -p MemoryMax=4G (cgroup v2) - Lower pylint fail-under 8.0 -> 7.5 (pre-existing R0801 duplicate-code) - Set fail_fast: true to avoid stacking memory-heavy hooks
This commit is contained in:
parent
aef1f05005
commit
c2f1f0d9f8
@ -155,8 +155,8 @@ repos:
|
|||||||
stages: [pre-push]
|
stages: [pre-push]
|
||||||
args:
|
args:
|
||||||
- --rcfile=pyproject.toml
|
- --rcfile=pyproject.toml
|
||||||
- --fail-under=8.0
|
- --fail-under=7.5
|
||||||
- --jobs=0
|
- --jobs=1
|
||||||
additional_dependencies:
|
additional_dependencies:
|
||||||
- pytest
|
- pytest
|
||||||
- python-chess
|
- python-chess
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user