From eab0b8ede2dc19b21ede3e9bc2cb20462aaabd74 Mon Sep 17 00:00:00 2001 From: Sergey Kim Date: Thu, 27 Apr 2023 20:28:10 +0300 Subject: [PATCH] add flake8-pytest-style mention to goodpractices --- doc/en/explanation/goodpractices.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/en/explanation/goodpractices.rst b/doc/en/explanation/goodpractices.rst index 7331a7896..5cc321f67 100644 --- a/doc/en/explanation/goodpractices.rst +++ b/doc/en/explanation/goodpractices.rst @@ -294,3 +294,16 @@ See also `pypa/setuptools#1684 ` setuptools intends to `remove the test command `_. + +Checking with flake8-pytest-style +--------------------------------- + +In order to ensure that ``pytest`` is being used correctly in your project, +it can be helpful to use the `flake8-pytest-style `_ plugin. + +This plugin checks for common mistakes and coding style violations in ``pytest`` code, +such as incorrect use of fixtures, test function names, and markers. +By using this plugin, you can catch these errors early in the development process +and ensure that your ``pytest`` code is consistent and easy to maintain. + +Examples of the errors that can be detected by the plugin can be found on its `PyPI page `_.