Skip to main content

flake8-pytest-fixtures-style

Build Status Maintainability Test Coverage PyPI version PyPI - Python Version

A flake8 extension that checks pytest fixtures.

Installation

pip install flake8-pytest-fixtures-style

Usage

$ flake8 text.py
text.py:2:5: PF001: pytest fixture "your_func_name" returning another fixture must be suffixed with "_factory"

Error codes

Error code Description
PF001 fixture factories must be suffixed with "_factory"
PF002 fixtures unused in test function body must be specified via a @pytest.mark.usefixtures(...)

Metadata

Release files for flake8-pytest-fixtures-style 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flake8-pytest-fixtures-style 0.0.3
File Size Uploaded
flake8_pytest_fixtures_style-0.0.3.tar.gz 7.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flake8-pytest-fixtures-style 0.0.3
File Interpreter ABI Platform
flake8_pytest_fixtures_style-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 16.9 kB

Release files / flake8_pytest_fixtures_style-0.0.3.tar.gz

Download URL flake8_pytest_fixtures_style-0.0.3.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7c6fed42a76099a111395087ab24a867af0fbb40670e058874a88d85223809a8
BLAKE2b-256 checksum
How to use checksums
50de397d2146db3e23a4eb0d34fbc04c57c0626692c48d052883ef13b0ef7f6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Release files / flake8_pytest_fixtures_style-0.0.3-py3-none-any.whl

Download URL flake8_pytest_fixtures_style-0.0.3-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d563dcbe857fbf2ea75028fc4922ba447e9e0e8482720e1f86546611a89a191
BLAKE2b-256 checksum
How to use checksums
9df22a7b02edaba03bd4817c8d039933535311f676c53d4128f94cee76857768
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page