Skip to main content

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

  1. Create a ruff_pyspark_filter_linter.json configuration file with the required filters:
{
  "required_filters": ["account_id", "user_id", "session_id"]
}
  1. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ruff_pyspark_filter_linter-0.1.0.tar.gz (7.5 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page