Skip to main content

A pre commit hook used to maintain license and copyright information in source files.

Project description

nssacPreCommitHook

Install

Linux and MacOS X

  • System wide installation
sudo pip install nssacPreCommitHook
  • User local installation
pip install nssacPreCommitHook --user

Windows

 pip install nssacPreCommitHook
  • User local installation (not recommeded as the script path is not in the search PATH)
pip install nssacPreCommitHook --user

Configuration

The configuration uses a JSON schema to specify the license and the copyright statements to be used.

Two examples are provided:

Enable nssacPreCommitHook for a repository

Download Example and save it.

preCommitHook.py --init -r repository -c Path_to_Example

If you saved the example as repository/.nssac.json you may ommit -c Path_to_Example

Suported file formats:

The patterns section of the example currently supports the following formats

  • C/C++ ".cpp", ".hpp", ".c", ".h", "*.h.in"
  • Java "*.java"
  • XML ".xsd", ".xml", "*.rng"
  • Shell "*.sh"
  • CMake "*.cmake", "CMakeLists.txt"
  • Python "*.py"

It is not difficult to add more file types often is is just adding another pattern to the include section of an exiting pattern.

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

nssacPreCommitHook-1.0.4.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

nssacPreCommitHook-1.0.4-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file nssacPreCommitHook-1.0.4.tar.gz.

File metadata

  • Download URL: nssacPreCommitHook-1.0.4.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.24.0 requests-toolbelt/1.0.0 urllib3/1.26.16 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.15

File hashes

Hashes for nssacPreCommitHook-1.0.4.tar.gz
Algorithm Hash digest
SHA256 4a3d2facf4ced3a0c6138d9fae9a270971ffd9cf8cc911f75cfba058a6dbaf1b
MD5 3e9f35d779e080f8084285ba82a8e45f
BLAKE2b-256 0be575cbefae04bbdd87643f2d8a0657015912a7a9d1c9baac8f0b535a8081fe

See more details on using hashes here.

Provenance

File details

Details for the file nssacPreCommitHook-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: nssacPreCommitHook-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.24.0 requests-toolbelt/1.0.0 urllib3/1.26.16 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.15

File hashes

Hashes for nssacPreCommitHook-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7ca7bc8f31a9a7e2d39afe5df7418175141847549f2243a5eb8eb2cafca4328a
MD5 100065b631f68758683ec86c529a5e24
BLAKE2b-256 b9f77cd91aa6bfb7c51a3c2bbf9b927b36aca7e71b0ff155b7bb282f11bde883

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page