This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 881f3622304 Run the flynt prek hook in parallel batches (#75274)
881f3622304 is described below
commit 881f36223045f8e545c2b2ae1f08ed29662beedc
Author: PoAn Yang <[email protected]>
AuthorDate: Wed Oct 28 10:33:25 2026 +0800
Run the flynt prek hook in parallel batches (#75274)
Signed-off-by: PoAn Yang <[email protected]>
---
.pre-commit-config.yaml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 8f4c32a4613..104650a697d 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -824,6 +824,10 @@ repos:
name: Run flynt string format converter for Python
env:
PYTHONPYCACHEPREFIX: .build/pycache
+ # flynt's own hook manifest sets require_serial: true, and this line
overrides it. flynt
+ # writes only the files that prek passes to it. prek gives each file
to exactly one batch,
+ # so the batches can run in parallel.
+ require_serial: false
args:
# If flynt detects too long text it ignores it. So we set a very
large limit to make it easy
# to split the text by hand. Too long lines are detected by flake8
(below),