Adds copyright checks to flake8
Project description
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
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for flake8_copyright-0.2.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c4f95745dffd9aa3aa5d3d117222beade5d774b66bb3876d2fcb264382902be |
|
MD5 | 5b02afd93d0e9e03376ffee3c7925282 |
|
BLAKE2b-256 | 1931b11a1c144895d408ec9ecc59a2d13c791bf06c054d07c498cd7d35c93e86 |