You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pre-commit hook reads the license file and adds the header to all files. If the license file is changed, then it should update all the files with the new header.
💡 Steps for implementing the feature
Command for adding header to file based on our template
Command for running pre-commit hooks on demand: pre-commit run --all-files
Command for installing pre-commit on your repository: pre-commit install
For running pre-commit you need to have a file at the root level of your repository called .pre-commit-config.yaml, where the config of the different tools is defined.
📝 Description of the feature
pre-commit hook reads the license file and adds the header to all files. If the license file is changed, then it should update all the files with the new header.
💡 Steps for implementing the feature
Command for adding header to file based on our template
reuse annotate --year 2023 --copyright-style string-c --merge-copyright --template=ansys -l MIT -c "ANSYS, Inc." --skip-unrecognised .\src\ansys\templates_init_.py
Command for running pre-commit hooks on demand: pre-commit run --all-files
Command for installing pre-commit on your repository: pre-commit install
For running pre-commit you need to have a file at the root level of your repository called .pre-commit-config.yaml, where the config of the different tools is defined.
🔗 Useful links and references
Pre-commit documentation: https://pre-commit.com/
Pre-commit hooks repository: https://github.com/pre-commit/pre-commit-hooks
Reuse tool: https://reuse.readthedocs.io/en/stable/usage.html
Repo using reuse: https://github.com/ansys/ansys-templates --> Main points to look at: LICENSES folder, .reuse folder
The text was updated successfully, but these errors were encountered: