flake8-filename
A flake8 linter plug-in for validating that certain Python files comply with a user defined pattern.
Quick Start Guide
Install flake8-filename from PyPI with pip:
$ pip install flake8-filename
Configure a mark that you would like to validate:
$ cd project_root/ $ vi .flake8
[flake8]
filename_check1 = filter_regex=test_.+
filename_regex=test_[\w-]+$
Run flake8:
$ flake8 tests/
Gotchas
It is highly recommended to use this plugin inside of a virtualenv
A configuration is required by this plugin, if none is found the plugin will throw a N401 validation error for every file
Violation Codes
All possible violation codes are documented in violation_codes
Example Configurations
More example configurations can be found in configuration
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
Metadata
Release files for flake8-filename 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flake8_filename-1.0.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Release files / flake8_filename-1.0.0-py2.py3-none-any.whl
| Download URL | flake8_filename-1.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
bb22793f4883db9c2c2301b4d0cf1f692a58d93c579988931c9770d31e19d5b7
|
|
BLAKE2b-256 checksum How to use checksums |
a4425d6a0b663686d1cc2dac74e69ff751f78b7e2793ec04da52ea6058f48e34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for flake8-filename 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.