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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pytest_ruff-0.3.2.tar.gz
Algorithm Hash digest
SHA256 8d82882969e52b664a7cef4465cba63e45173f38d907dffeca41d9672f59b6c6
MD5 908a6467db03280dc499a52374687097
BLAKE2b-256 8988591cbcb3d84650c7ff4b6b679258fc2c6a9f3b9d1a439a4ba45ca940a043

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pytest_ruff-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5096578df2240b2a99f7376747bc433ce25e590c7d570d5c2b47f725497f2c10
MD5 f2ab8a6ccdbaf07f0fa475d4d4ba86d6
BLAKE2b-256 c9a4776add41e7aa9cc392a8b35381001f366ce0b1097336356d355c7efffce6

See more details on using hashes here.

Supported by

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