A flake8 linter plug-in for validating that certain Python files comply with a user defined pattern.
Project description
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
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 Distributions
Built Distribution
Hashes for flake8_filename-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb22793f4883db9c2c2301b4d0cf1f692a58d93c579988931c9770d31e19d5b7 |
|
MD5 | 075162d762815ac7ff8860da7cdcc812 |
|
BLAKE2b-256 | a4425d6a0b663686d1cc2dac74e69ff751f78b7e2793ec04da52ea6058f48e34 |