A linter for Python tests
Project description
Flake8-AAA
A linter for Python tests.
Pytest and unittest styles supported.
Tests are linted against the Arrange Act Assert pattern.
Provides a Flake8 interface to automatically lint test files as part of your Flake8 run.
Provides a command line interface for custom (non-Flake8) usage and debugging.
Installation
Install with pip:
$ pip install flake8-aaa
Integration with Flake8
Given that you already have Flake8 installed in the same environment, check that Flake8-AAA was installed correctly by asking flake8 for its version signature:
$ flake8 --version 3.6.0 (aaa: 0.4.0, mccabe: 0.6.1, pycodestyle: 2.4.0, pyflakes: 2.0.0) CPython 3.6.7 on Linux
The (aaa: 0.4.0, ... part of that output tells you flake8 found this plugin. Now you can run flake8 as usual against your project and Flake8-AAA will lint your tests via its plugin:
$ flake8
Resources
Tested on Pythons 3.5 and 3.6.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flake8-aaa-0.5.0.tar.gz.
File metadata
- Download URL: flake8-aaa-0.5.0.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/38.5.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
827e3c3cec47e92cbf56ed99fbc629bec406c3f6b0530f4a4f686833839d992f
|
|
| MD5 |
0acd89183f983d82acda3d7ce9c49c2b
|
|
| BLAKE2b-256 |
e85568f2f841a7ea911e1122523b763fbb1d7ef9610147d55f7bd717fab2067c
|
File details
Details for the file flake8_aaa-0.5.0-py3-none-any.whl.
File metadata
- Download URL: flake8_aaa-0.5.0-py3-none-any.whl
- Upload date:
- Size: 15.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/38.5.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6c834bf779125f3b04138f893e5c8414b32faf6630c4b22ba6722c037a595f9
|
|
| MD5 |
3a3d77260d4c395dc8642fef595d39f8
|
|
| BLAKE2b-256 |
8640ebcbb5c73f9bb920b0c860e86d5a874a190b20c270e7216c6f605229717b
|