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.1]
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.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aab2daddac7dda3f1fa5ea78adf8a2e574ac2bafa7ddde85bc3be0392e6aaae7 |
|
MD5 | d7a3e2f4be39857fb5318c7ecc245920 |
|
BLAKE2b-256 | dd46b0dc9a950ac663b0ae4ee916b8bfe5d5bd850b402fb7a5725300144f7f23 |