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.5]
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.5.tar.gz
(10.9 kB
view hashes)
Built Distribution
Close
Hashes for flake8_dunder_all-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5106922cb30202bc60b726eaaa97c9cd1181dc27f03e4ad0badf75f7f87f283 |
|
MD5 | 2de455d0835c4ac9b576813113c19c30 |
|
BLAKE2b-256 | 354f3860d4263d3b53e4634fcb6788c0b8d5c511f7e7a43812f3e6c610783a3f |