flake8-copyright
Adds copyright checks to flake8
What it is and what it does
flake8-copyright is a flake8 plugin that adds copyright-notice checking to your linting workflow. It scans Python files for copyright statements (e.g., 'Copyright 2014' or 'Copyright (C) 2014') using a configurable regular expression and can enforce that a specific author name appears in the notice. You configure it via flake8's standard configuration file, setting options like the minimum file size before a notice is required, the author name to match, and a custom regex pattern if the default doesn't fit your needs.
The plugin integrates directly into flake8's error reporting, emitting C-category errors for files missing the expected copyright statement. It's useful for projects that need to enforce consistent copyright attribution across their codebase. However, the package has been dormant since early 2023 with no recent commits, so it may not be actively maintained or tested against the latest flake8 versions.
Use it for:
- Enforce copyright notices on all Python files in an open-source project to ensure proper attribution.
- Validate that proprietary code includes company copyright statements as part of CI/CD linting.
- Require specific author names in copyright headers to track code ownership across a team.
- Automatically flag files missing copyright notices during code review via flake8 integration.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A flake8 plugin that enforces the presence of copyright notices in Python files by scanning for copyright statements matching configurable patterns.
Yes, if you need copyright-notice enforcement and can tolerate dormant maintenance. The package is lightweight, has no known vulnerabilities, and integrates cleanly into flake8. However, verify it works with your flake8 version and confirm the license terms before use. If active maintenance and support are important, consider whether a custom linting rule or alternative tool better suits your needs.
Install
flake8-copyright on PyPI
pip
pip install flake8-copyrightuv
uv add flake8-copyrightpoetry
poetry add flake8-copyrightInstalling flake8-copyright
Before you install
Low install friction with only setuptools as a runtime dependency. However, the package is dormant—last release was 2023-02-08 and no commits since 2023-09-18—so expect no active maintenance or bug fixes.
License in practice
License status is unclear; no SPDX identifier or raw license text is available. Verify the actual license terms before adopting this package in a commercial or restricted context.
Quickstart
pip install flake8-copyright
Then in .flake8 config:
[flake8]
copyright-check = True
select = E,F,W,C
Run: flake8 your_file.py
flake8 must be installed and configured; C errors are not selected by default in flake8, so you must explicitly add them to the select option.
Verify before relying
- Whether the package works with current flake8 versions (last release predates many recent flake8 updates).
- Actual license terms, since license_treatment is marked unclear and no SPDX identifier is present.
- Python 3.10+ compatibility, given classifiers only list Python 2 and 3 generically.
Package facts
| License | not declared (unclear) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — setuptools |
| Maintenance | dormant — 1,283 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 82,326/month — #14,170 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: flake8_copyright-0.2.4-py3-none-any.whl
Keywords: pep8, flake8, copyright
Tags
More Quality Assurance packages
Coverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
ruffRuff is a Python linter and code formatter…
permissive · top 1,000 on PyPI
pexpectPexpect spawns and controls interactive console…
permissive · top 1,000 on PyPI
blackBlack reformats Python source code to a…
permissive · top 1,000 on PyPI
pytest-xdistpytest-xdist distributes pytest tests across…
permissive · top 1,000 on PyPI
cfn-lintValidates AWS CloudFormation templates in YAML…
permissive · top 1,000 on PyPI
flake8-printA flake8 plugin that detects print statements…
permissive · top 5,000 on PyPI
flake8-quotesA flake8 plugin that enforces consistent quote…
permissive · top 5,000 on PyPI
flake8-literalA flake8 plugin that enforces consistent…
copyleft · top 15,000 on PyPI
flake8Flake8 is a command-line tool that combines…
permissive · top 1,000 on PyPI
pep8-namingA flake8 plugin that checks Python code for…
permissive · top 5,000 on PyPI
hackingHacking is a set of flake8 plugins that enforce…
permissive · top 15,000 on PyPI
wemake-python-styleguideA flake8 plugin that enforces strict,…
permissive · top 15,000 on PyPI
flake8-deprecatedA flake8 plugin that detects calls to…
copyleft · top 15,000 on PyPI
pytest-flake8A pytest plugin that runs flake8 PEP8…
permissive · top 15,000 on PyPI
flake8-logging-formatA flake8 extension that enforces logging best…
permissive · top 15,000 on PyPI