File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,21 +3,31 @@ default_stages: [commit]
33repos :
44 - repo : local
55 hooks :
6- - id : format
7- name : Format
6+ # File-aware format hook - only runs on changed Python files
7+ # Runs both ruff check --fix and ruff format
8+ - id : format-files
9+ name : Format Changed Files
810 stages : [commit]
911 language : system
10- entry : make format-python
11- pass_filenames : false
12- - id : lint
13- name : Lint
12+ types : [python]
13+ entry : bash -c 'uv run ruff check --fix "$@" && uv run ruff format "$@"' --
14+ pass_filenames : true
15+
16+ # File-aware lint hook - only runs on changed Python files
17+ # Runs both ruff check and ruff format --check
18+ - id : lint-files
19+ name : Lint Changed Files
1420 stages : [commit]
1521 language : system
16- entry : make lint-python
17- pass_filenames : false
22+ types : [python]
23+ entry : bash -c 'uv run ruff check "$@" && uv run ruff format --check "$@"' --
24+ pass_filenames : true
25+
26+ # Conditional template hook - only runs when template files or roadmap change
1827 - id : template
1928 name : Build Templates
2029 stages : [commit]
2130 language : system
31+ files : ^infra/templates/|\.jinja2$|^docs/roadmap\.md$
2232 entry : make build-templates
2333 pass_filenames : false
Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ test-python-integration: ## Run Python integration tests (CI)
199199# Integration tests with better parallelization
200200test-python-integration-parallel : # # Run integration tests with enhanced parallelization
201201 uv run python -m pytest sdk/python/tests/integration \
202- -n auto --dist loadscope \
202+ -n auto --dist loadgroup \
203203 --timeout=300 --tb=short -v \
204204 --integration --color=yes --durations=20
205205
@@ -209,7 +209,7 @@ test-python-integration-local: ## Run Python integration tests (local dev mode)
209209 HADOOP_HOME=$$ HOME/hadoop \
210210 CLASSPATH=" $$ ( $$ HADOOP_HOME/bin/hadoop classpath --glob ):$$ CLASSPATH" \
211211 HADOOP_USER_NAME=root \
212- uv run python -m pytest --tb=short -v -n 8 --color=yes --integration --durations=10 --timeout=1200 --timeout_method=thread --dist loadgroup \
212+ uv run python -m pytest --tb=short -v -n auto --color=yes --integration --durations=10 --timeout=1200 --timeout_method=thread --dist loadgroup \
213213 -k " not test_lambda_materialization and not test_snowflake_materialization" \
214214 -m " not rbac_remote_integration_test" \
215215 --log-cli-level=INFO -s \
Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ markers =
1717 rbac_remote_integration_test: RBAC and remote functionality tests
1818 integration: Integration tests (slower, requires services)
1919 benchmark: Benchmark tests
20+ slow: Tests taking >30 seconds
21+ cloud: Tests requiring cloud credentials
22+ local_only: Tests that run entirely locally
2023
2124timeout = 300
2225timeout_method = thread
You can’t perform that action at this time.
0 commit comments