Registry / testing / flake8-copyright

flake8-copyright

JSON →
library0.2.4pypypi✓ verified 82d ago

A flake8 plugin that checks Python files for copyright notices in their header comments. Version 0.2.4; stable but low activity.

pip install flake8-copyright
INSTALL
IMPORT
SIG · FLAKE8-COPYRIGHT
F
flake8-copyright
testingpythonv0.2.4
Install
1.8s avg
Import
Disk
19MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.2.4 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.8s · import 0.000s · 18MB
19MB installed
● package 19MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CopyrightChecker
from flake8_copyright import CopyrightChecker
from flake8_copyright import copyright_checker

Configure flake8-copyright in .flake8 and run flake8.

echo '[flake8] copyright-check = True copyright-min-file-size = 0 copyright-regexp = Copyright .* MyCompany' > .flake8 flake8 your_code.py
Debug
Known issues
gotchaThe plugin requires flake8 to be installed separately.
fix
Install flake8: pip install flake8
affects: all
gotchaCopyright regex uses Python re.match; it must match from the beginning of file.
fix
Use a regex that starts matching from the first line, e.g., Copyright \d{4} MyCompany
affects: all
gotchaThe 'copyright-min-file-size' default is 10 bytes; files smaller than this are skipped.
fix
Set copyright-min-file-size = 0 to check all files.
affects: all
Upgrade
Version history
0.2.4latest on PyPI · released Feb 8, 2023
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
flake8-copyright — pip install flake8-copyright · libregistry