Skip to content

Commit 4ceaecf

Browse files
committed
Merge branch 'main' into pr/290
2 parents 0abab43 + a4ca00d commit 4ceaecf

File tree

3 files changed

+28
-11
lines changed

3 files changed

+28
-11
lines changed

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,19 @@ test:
1212
--doctest-modules pointblank \
1313
--durations 10
1414

15+
.PHONY: test-core
16+
test-core: ## Run core libraries only; useful for local CI
17+
@SKIP_PYSPARK_TESTS=1 \
18+
SKIP_SQLITE_TESTS=1 \
19+
SKIP_PARQUET_TESTS=1 \
20+
uv run pytest \
21+
--cov=pointblank \
22+
--cov-report=term-missing \
23+
--randomly-seed 123 \
24+
-n auto \
25+
--durations=10
26+
27+
1528
test-update:
1629
pytest --snapshot-update
1730

docs/user-guide/schema-validation.qmd

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -377,14 +377,6 @@ validation.get_step_report(i=1)
377377

378378
## Common Schema Validation Patterns
379379

380-
This section explores common patterns for applying schema validation to different scenarios. Each
381-
pattern addresses specific validation needs you might encounter when working with real-world data.
382-
We'll examine the step reports for these validations since they provide more detailed information
383-
about what was checked and how the validation performed, offering an intuitive way to understand
384-
the results beyond simple pass/fail indicators.
385-
386-
## Common Schema Validation Patterns
387-
388380
This section explores common patterns for applying schema validation to different scenarios. Each
389381
pattern addresses specific validation needs you might encounter when working with real-world data.
390382
We'll examine the step reports (`~~Validate.get_step_report()`) for these validations since they

tests/test_validate.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,15 @@ class StrEnum(str, Enum):
7575
except ImportError:
7676
PYSPARK_AVAILABLE = False
7777

78+
## If we specifically disable tests in pytest set the availability to False
79+
if os.environ.get("SKIP_PYSPARK_TESTS", "").lower() in ("true", "1", "yes"):
80+
PYSPARK_AVAILABLE = False
81+
SQLITE_AVAILABLE = True
82+
if os.environ.get("SKIP_SQLITE_TESTS", "").lower() in ("true", "1", "yes"):
83+
SQLITE_AVAILABLE = False
84+
PARQUET_AVAILABLE = True
85+
if os.environ.get("SKIP_PARQUET_TESTS", "").lower() in ("true", "1", "yes"):
86+
PARQUET_AVAILABLE = False
7887

7988
from great_tables import vals
8089
import great_tables as GT
@@ -180,12 +189,15 @@ def get_spark_session():
180189
TBL_LIST = [
181190
"tbl_pd",
182191
"tbl_pl",
183-
"tbl_parquet",
184192
"tbl_duckdb",
185-
"tbl_sqlite",
186193
]
187194

188-
# Add PySpark to lists if available
195+
if PARQUET_AVAILABLE:
196+
TBL_LIST.append("tbl_parquet")
197+
198+
if SQLITE_AVAILABLE:
199+
TBL_LIST.append("tbl_sqlite")
200+
189201
if PYSPARK_AVAILABLE:
190202
TBL_LIST.append("tbl_pyspark")
191203

0 commit comments

Comments
 (0)