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.3.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

pytest_ruff-0.3.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytest_ruff-0.3.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.0 Linux/6.5.0-1015-azure

File hashes

Hashes for pytest_ruff-0.3.1.tar.gz
Algorithm Hash digest
SHA256 c9f7392a3384af73a6a72741a4035a605480a7a8e7a4bd8da05a98e6664cffb5
MD5 05cd953df834c8f27d7b908ee704e94e
BLAKE2b-256 938565daa94d5e3a3fd3d74fe1a3dbe772943e5aa63e78bc2d90d019de45ba35

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pytest_ruff-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 008556576fb1bda93a432ad381432bfd5575cc94627d22bfdece46561b8e4f7f
MD5 fce3ed6a911f0e7bf610d12648efb249
BLAKE2b-256 d823b73c1036ca593db850db7a6d6172bfe4247d3ae02c22118942f0e359690d

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