Checks for copyright notices in all python files. It runs a simple regular expression search for strings like:
Copyright 2014 <author> Copyright (C) 2014 <author>
<author> can be anything unless you specify it with the copyright-author option (see below).
Install
Install with pip:
pip install flake8-copyright
Then, activate copyright checks in your flake8 configuration with:
copyright-check = True # C errors are not selected by default, so add them to your selection select = E,F,W,C
Further options
- copyright-min-file-size
Minimum number of characters in a file before requiring a copyright notice. This is to avoid forcing yourself to add copyright notices to very small or empty files. Default: 0.
- copyright-author
Checks for a specific author in the copyright notice.
- copyright-regexp
If you’re not happy with the regexp that is ran to look for copyright notices, you can change it with this option. Default: Copyright\s+(\(C\)\s+)?\d{4}([-,]\d{4})*\s+%(author)s. %(author)s is replaced by the contents of copyright-author.
Metadata
Release files for flake8-copyright 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flake8-copyright-0.2.4.tar.gz | 17.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flake8_copyright-0.2.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.6 kB
Release files / flake8-copyright-0.2.4.tar.gz
| Download URL | flake8-copyright-0.2.4.tar.gz |
|---|---|
| Size | 17.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b78491fcf575266d7e78dcfa899c876edd1c29929d247de3408bf4e3f971bf1c
|
|
BLAKE2b-256 checksum How to use checksums |
f08d2a98bea4c71203fe1cc01f36af5ac222664f816834ea5d778e0a237c5325
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6
|
Release files / flake8_copyright-0.2.4-py3-none-any.whl
| Download URL | flake8_copyright-0.2.4-py3-none-any.whl |
|---|---|
| Size | 18.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5d33d900c4183bb6748692407867229d1e5b84016a100e8899a7f58dcf52223f
|
|
BLAKE2b-256 checksum How to use checksums |
b6116e36be1703a28cb91e97aca402df49027ae3a05a6405d836a98b8dc24306
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6
|