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 details)

Uploaded Source

Built Distribution

ruff_pyspark_filter_linter-0.1.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file ruff_pyspark_filter_linter-0.1.0.tar.gz.

File metadata

File hashes

Hashes for ruff_pyspark_filter_linter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bdf3b1241a3ac94056087e8d46514eac1e09372800e8fce2244fa06f4bac2eb1
MD5 90219abaefd993d0f3baa58c602b7c41
BLAKE2b-256 1b55236e562ef11cd82b8bf0ce28047f53f76bd5572cc429c05158d17d91d5bb

See more details on using hashes here.

File details

Details for the file ruff_pyspark_filter_linter-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ruff_pyspark_filter_linter-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bec20872c11af8b1755d37667786a19204a3b514ba7a8e0f3481dce8ee8b675a
MD5 8f0c9aa3f24ac1ea22ae0186b7435114
BLAKE2b-256 20458604c7ea82c97c19c69581e8a2dd44e2b4e84cb46cb8ee970945fd37e254

See more details on using hashes here.

Supported by

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