Skip to main content

flake8-filename

https://img.shields.io/travis/rcbops/flake8-filename.svg

A flake8 linter plug-in for validating that certain Python files comply with a user defined pattern.

Quick Start Guide

  1. Install flake8-filename from PyPI with pip:

    $ pip install flake8-filename
  2. Configure a mark that you would like to validate:

    $ cd project_root/
    $ vi .flake8
[flake8]
filename_check1 = filter_regex=test_.+
                  filename_regex=test_[\w-]+$
  1. Run flake8:

    $ flake8 tests/

Gotchas

  1. It is highly recommended to use this plugin inside of a virtualenv

  2. 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)

Table of built distributions (wheels) for flake8-filename 1.0.0
File Interpreter ABI Platform
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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page