sourceheaders
Adds or replaces header comments (usually containing licensing information) in source files.
Configuration
You can configure sourceheaders by placing a .sourceheaders.toml file into
your project root.
[general]
license = "MPL-2.0"
copyright_holder = "John Doe <john.doe@example.com>"
prefer_inline = true
width = 70
[language.rust]
width = 99
Usage
Command line
You can run sourceheaders manually on the command line and pass one or more file paths.
$ sourceheaders /path/to/file.py /path/to/other/file.rs
Added header to /path/to/file.py
Replaced header in /path/to/other/file.rs
Pre-commit
sourceheaders can be used with pre-commit.
Add the following lines to your .pre-commit-config.yaml:
- repo: https://github.com/Holzhaus/sourceheaders
rev: ""
hooks:
- id: sourceheaders
Either specify a specific hook version in the rev field directly, or run the
this command to automatically fill in the latest version:
$ pre-commit autoupdate --repo "https://github.com/Holzhaus/sourceheaders"
Updating https://github.com/Holzhaus/sourceheaders ... updating -> <latest-version>.
Metadata
Release files for sourceheaders 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sourceheaders-0.0.1.tar.gz | 17.1 kB | Without provenance | Details for sourceheaders-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sourceheaders-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for sourceheaders-0.0.1-py3-none-any.whl |
Total release size: 61.7 kB
Release files / sourceheaders-0.0.1.tar.gz
| Download URL | sourceheaders-0.0.1.tar.gz |
|---|---|
| Size | 17.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ccd113ac4adfdfd5363feb98584dcb7a27286b2c570a921ef82537b7c92dbe0
|
|
BLAKE2b-256 checksum How to use checksums |
3a689f30030d7217920926c567f585fac228cf27b77188493c2084cc05f67d88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.63.0 CPython/3.10.2
|
Release files / sourceheaders-0.0.1-py3-none-any.whl
| Download URL | sourceheaders-0.0.1-py3-none-any.whl |
|---|---|
| Size | 44.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c61145246b72b161bcedf1f2267eb16dae9c50583dd9652b9c334fe86c688127
|
|
BLAKE2b-256 checksum How to use checksums |
9351a39d192b880a64741021e231c8b6a5312af332c53cd5661803b9329bbc23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.63.0 CPython/3.10.2
|
Security for sourceheaders 0.0.1
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.