Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/businho/pytest-ruff
https://github.com/businho/pytest-ruff
pytest python ruff
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/businho/pytest-ruff
- Owner: businho
- License: mit
- Created: 2023-02-09T19:05:23.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-21T08:00:39.000Z (5 months ago)
- Last Synced: 2024-11-12T12:20:13.557Z (about 1 month ago)
- Topics: pytest, python, ruff
- Language: Python
- Homepage:
- Size: 35.2 KB
- Stars: 32
- Watchers: 2
- Forks: 9
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-pytest - pytest-ruff - Pytest plugin to lint code with ruff. (Plugins)
README
# pytest-ruff
A pytest plugin to run [ruff](https://pypi.org/project/ruff/).
## Installation
```shell
pip install pytest-ruff
```## Usage
```shell
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.