pre-commit-matlab-lint
A pre-commit hook for validating MATLAB code.
Available Hook
lint-matlab
Validate MATLAB files by analyzing them with MATLAB's checkcode function.
In order to use this hook, MATLAB must be installed and registered. There are three ways to specify which MATLAB instance should be used:
- Use
--matlab-home-path=PATHto supply the full path to a MATLAB home directory (e.g. "/Applications/MATLAB_R2021a.app" on macOS, "C:\Program Files\MATLAB\R2021a" on Windows) - Use
--matlab-version=VERSIONto specify a MATLAB version to locate (e.g. "9.10") - Use
--matlab-release-name=NAMEto specify a MATLAB release to locate (e.g. "R2021a")
Other options:
- Use
--treat-warning-as-errorto fail on linter warnings, in addition to linter errors. - Use
--enable-cyclomaticityto enable McCabe cyclomaticity complexity calculation display for each file. - Use
--enable-modified-cyclomaticityto enable modified cyclomaticity complexity calculation display for each file. - Use
--ignore-ok-pragmasto ignore%#okcheckcode suppression pragmas in files. - Use
--checkode-config-file=FILEto specify a settings file. For instructions detail how to create the file, see Save and Reuse Code Analyzer Message Settings. - Use
--use-default-checkcode-configto ignore any checkcode settings files and use factory defaults.
Usage with pre-commit
Add this to your .pre-commit-config.yaml
- repo: https://github.com/tcumby/pre-commit-matlab-lint
rev: "" # Use the sha / tag you want to point at
hooks:
- id: lint-matlab
args: ["--matlab_release_name=R2021a"]
Licensed under the terms of the MIT License. New issues and pull requests are welcome. Please refer to the contributing guide and security policy. Generated with Tyrannosaurus and converted to use uv.
Metadata
Release files for precommitmatlablint 1.0.11
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 |
|---|---|---|---|---|
| precommitmatlablint-1.0.11.tar.gz | 20.7 kB | Without provenance | Details for precommitmatlablint-1.0.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| precommitmatlablint-1.0.11-py3-none-any.whl | Python 3 | none | any | Details for precommitmatlablint-1.0.11-py3-none-any.whl |
Total release size: 37.9 kB
Release files / precommitmatlablint-1.0.11.tar.gz
| Download URL | precommitmatlablint-1.0.11.tar.gz |
|---|---|
| Size | 20.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
acb3d019c0eb9d1c961c70d4bea6f7464f09f7be7cdeaaa1cec0a65a0530bd38
|
|
BLAKE2b-256 checksum How to use checksums |
53cdc213db99dc435c78df12b2c1fef85a8e9fb97cd8a3009ac2031116cd8300
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / precommitmatlablint-1.0.11-py3-none-any.whl
| Download URL | precommitmatlablint-1.0.11-py3-none-any.whl |
|---|---|
| Size | 17.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
21f25d6068b8365bc2350725247ba50e8fcbb6c958882cb4b57915dcc9a38cc0
|
|
BLAKE2b-256 checksum How to use checksums |
8f3309f021daf0e51163082acb9f41dda4960b5fea7c684fed576d4c3bee10e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for precommitmatlablint 1.0.11
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.