Custom Ruff linter to ensure specific filters in PySpark DataFrame creation
Project description
Ruff PySpark Filter Linter
This package provides a custom Ruff linter to ensure that all PySpark DataFrame instances include specified filters.
Installation
pip install ruff_pyspark_filter_linter
Usage
- Create a ruff_pyspark_filter_linter.json configuration file with the required filters:
{
"required_filters": ["account_id", "user_id", "session_id"]
}
- Running the linter on your Python files:
ruff-pyspark-filter-linter path/to/your_code.py
The linter will print warnings and generate a README_Rust_YYYYMMDDHHMMSS.md file with details of any missing filters.
Building the Package
Build the source and wheel distributions.
python setup.py sdist bdist_wheel
Upload to PyPI
twine upload dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ruff_pyspark_filter_linter-0.1.0.tar.gz
.
File metadata
- Download URL: ruff_pyspark_filter_linter-0.1.0.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
bdf3b1241a3ac94056087e8d46514eac1e09372800e8fce2244fa06f4bac2eb1
|
|
MD5 |
90219abaefd993d0f3baa58c602b7c41
|
|
BLAKE2b-256 |
1b55236e562ef11cd82b8bf0ce28047f53f76bd5572cc429c05158d17d91d5bb
|
File details
Details for the file ruff_pyspark_filter_linter-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: ruff_pyspark_filter_linter-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
bec20872c11af8b1755d37667786a19204a3b514ba7a8e0f3481dce8ee8b675a
|
|
MD5 |
8f0c9aa3f24ac1ea22ae0186b7435114
|
|
BLAKE2b-256 |
20458604c7ea82c97c19c69581e8a2dd44e2b4e84cb46cb8ee970945fd37e254
|