Skip to main content

pytest plugin to check ruff requirements.

Project description

pytest-ruff

A pytest plugin to run ruff.

Installation

pip install pytest-ruff

Usage

pytest --ruff --ruff-format

The plugin will run one ruff check test per file and fail if code is not ok for ruff.

Format command only checks for format and fails for formatting errors.

Configuration

You can override ruff configuration options by placing a pyproject.toml or ruff.toml file in your project directory, like when using standalone ruff.

License

Distributed under the terms of the MIT license, pytest-ruff is free and open source software.

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

pytest_ruff-0.4.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

pytest_ruff-0.4.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file pytest_ruff-0.4.1.tar.gz.

File metadata

  • Download URL: pytest_ruff-0.4.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.0 Linux/6.5.0-1023-azure

File hashes

Hashes for pytest_ruff-0.4.1.tar.gz
Algorithm Hash digest
SHA256 2c9a30f15f384c229c881b52ec86cfaf1e79d39530dd7dd5f2d6aebe278f7eb7
MD5 ec2b0d6072d34cac30a374262595fa60
BLAKE2b-256 d1284d4e312a16c8969f475f6e18741bc6a2f8ee70d78e16dc3b6deba9f94e6d

See more details on using hashes here.

File details

Details for the file pytest_ruff-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: pytest_ruff-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.0 Linux/6.5.0-1023-azure

File hashes

Hashes for pytest_ruff-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 69acd5b2ba68d65998c730b5b4d656788193190e45f61a53aa66ef8b390634a4
MD5 e1a855aed19df561e6caf59b9bf2468c
BLAKE2b-256 0f7aed1015e97fadfde96b2c439390dc5a75542a77982d775baf2ada9f536cac

See more details on using hashes here.

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