You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for your interest in contributing to DataFrameExpectations! We welcome contributions from the community, whether it's adding new expectations, fixing bugs, improving documentation, or enhancing the testing framework.
4
+
5
+
## Table of Contents
6
+
7
+
-[Getting Started](#getting-started)
8
+
-[Development Setup](#development-setup)
9
+
-[How to Contribute](#how-to-contribute)
10
+
-[Adding New Expectations](#adding-new-expectations)
11
+
-[Running Tests](#running-tests)
12
+
-[Code Style Guidelines](#code-style-guidelines)
13
+
-[Submitting a Pull Request](#submitting-a-pull-request)
14
+
-[Versioning and Commits](#versioning-and-commits)
15
+
16
+
## Getting Started
17
+
18
+
Before you begin:
19
+
1. Check existing [issues](https://github.com/getyourguide/dataframe-expectations/issues) and [pull requests](https://github.com/getyourguide/dataframe-expectations/pulls) to avoid duplicates
20
+
2. For major changes, open an issue first to discuss your proposal
21
+
3. Ensure you agree with the [Apache 2.0 License](LICENSE.txt)
# This will automatically create a virtual environment
39
+
uv sync --group dev
40
+
```
41
+
42
+
4.**Activate the virtual environment:**
43
+
```bash
44
+
source .venv/bin/activate # On Windows: .venv\Scripts\activate
45
+
```
46
+
47
+
5.**Verify your setup:**
48
+
```bash
49
+
uv run pytest tests/ -n auto --cov=dataframe_expectations
50
+
```
51
+
52
+
6.**(Optional) Install pre-commit hooks:**
53
+
```bash
54
+
pre-commit install
55
+
```
56
+
This will automatically run checks before each commit.
57
+
58
+
## How to Contribute
59
+
60
+
### Reporting Bugs
61
+
Open an [issue](https://github.com/getyourguide/dataframe-expectations/issues) with a clear description, steps to reproduce, expected vs. actual behavior, and relevant environment details.
62
+
63
+
### Documentation
64
+
Fix typos, clarify docs, add examples, or improve the README.
65
+
66
+
### Features
67
+
Open an issue first to discuss new features, explain the use case, and consider backward compatibility.
68
+
69
+
### Adding Expectations
70
+
See the **[Adding Expectations Guide](https://code.getyourguide.com/dataframe-expectations/adding_expectations.html)** for detailed instructions.
71
+
72
+
73
+
## Running Tests
74
+
75
+
```bash
76
+
# Run all tests with parallelization
77
+
uv run pytest tests/ -n auto
78
+
79
+
# Run with coverage and parallelization
80
+
uv run pytest tests/ -n auto --cov=dataframe_expectations
81
+
82
+
# Run specific test file
83
+
uv run pytest tests/test_expectations_suite.py -n auto
84
+
85
+
# Run tests matching a pattern
86
+
uv run pytest tests/ -n auto -k "test_expect_min_rows"
Contributions are welcome! You can enhance the library by adding new expectations, refining existing ones, or improving the testing framework.
223
+
### Advanced Features
228
224
229
-
### Versioning
225
+
#### Tag-Based Filtering
226
+
Filter which expectations to run using tags:
230
227
231
-
This project follows [Semantic Versioning](https://semver.org/) (SemVer) and uses [Release Please](https://github.com/googleapis/release-please) for automated version management.
228
+
```python
229
+
from dataframe_expectations import DataFrameExpectationsSuite, TagMatchMode
232
230
233
-
Versions are automatically determined based on [Conventional Commits](https://www.conventionalcommits.org/):
231
+
# Tag expectations with priorities and environments
0 commit comments