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

Uploaded Source

Built Distribution

pytest_ruff-0.2.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytest_ruff-0.2.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.0 Linux/6.2.0-1015-azure

File hashes

Hashes for pytest_ruff-0.2.1.tar.gz
Algorithm Hash digest
SHA256 078ad696bfa347b466991ed4f9cc5ec807f5a171d7f06091660d8f16ba03a5dc
MD5 b7d819668323b34f57874ac3493c8e33
BLAKE2b-256 fed76a26602ccf764f4e055cb91002f9c682fca5756dd2df580f48b11d32c0f1

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for pytest_ruff-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f586bbd7978cb5782b673c8e55fa069d83430139931b918bd72232ba3f71eb67
MD5 d81789e528ae821bec9fb41a1b8f8f4d
BLAKE2b-256 d418982b32eb5b453444f302a9f443baea0cfe11756c67c9c5025d45d658903e

See more details on using hashes here.

Provenance

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