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: 3 months 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: 2023-10-31T18:50:42.000Z (about 1 year ago)
- Last Synced: 2023-12-19T17:45:47.709Z (11 months ago)
- Topics: pytest, python, ruff
- Language: Python
- Homepage:
- Size: 27.3 KB
- Stars: 17
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
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.