A Flake8 plugin and pre-commit hook which checks to ensure modules have defined '__all__'.
Project description
A Flake8 plugin and pre-commit hook which checks to ensure modules have defined ‘__all__’.
Docs |
|
---|---|
Tests |
|
PyPI |
|
Anaconda |
|
Activity |
|
Other |
Installation
flake8-dunder-all can be installed from PyPI or Anaconda.
To install with pip:
$ python -m pip install flake8-dunder-all
To install with conda:
First add the required channels
$ conda config --add channels http://conda.anaconda.org/domdfcoding $ conda config --add channels http://conda.anaconda.org/conda-forge
Then install
$ conda install flake8-dunder-all
flake8 codes
Code |
Description |
---|---|
STRFTIME001 |
Linux-specific strftime code used |
STRFTIME002 |
Windows-specific strftime code used |
Use as a pre-commit hook
See pre-commit for instructions
Sample .pre-commit-config.yaml:
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.1
hooks:
- id: flake8
additional_dependencies: [flake8-strftime==0.1.3]
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
Close
Hashes for flake8_dunder_all-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d866d4e454a7186cb715672a81b60f971f6f706adaac992a45b64b05c3445226 |
|
MD5 | efcef5685b867f3bdb3f62e9f1823f3a |
|
BLAKE2b-256 | 8249442101323c60e2d6271970ddd9c6dbc5af74f4ae8c3b94ef4d7ddcbaf600 |