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 |
|
QA |
|
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/conda-forge $ conda config --add channels http://conda.anaconda.org/domdfcoding
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.4]
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
flake8-dunder-all-0.1.4.tar.gz
(11.0 kB
view hashes)
Built Distribution
Close
Hashes for flake8_dunder_all-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16760e7f519ce4190349d6220c016a0e22037862cba01b60de932029fb77c488 |
|
MD5 | 8c0a38328a3f63c2ba596b9a52341b89 |
|
BLAKE2b-256 | ccbd5e21f1f86ddc824d3b0f2325cd24741a2ae09294e7b1beb9b7bb109188ed |