pragmatiks-lint
Python library for running Pragmatiks semgrep rules.
from pathlib import Path
from pragmatiks_lint import run_check
findings = run_check([Path("src")], language="python")
The package also ships a strict no-comments check for Python files, run as a module by a local pre-commit hook:
- repo: local
hooks:
- id: check-comments
name: Enforce NO COMMENTS policy
entry: python -m pragmatiks_lint.comments
language: python
language_version: python3.13
additional_dependencies: ["pragmatiks-lint==0.7.0"]
types: [python]
pass_filenames: true
stages: [pre-commit]
It also ships a dependency source check that rejects committed paths leaving the repository: tool.uv.sources entries other than workspace members and in-repository paths, tool.uv.workspace members and excludes, tool.ty.environment.extra-paths entries, path specs (file:, link:, bare paths including ~/) in package.json dependency fields, and pnpm-workspace.yaml packages, catalogs and overrides. It treats the working directory as the repository root, which is where pre-commit runs hooks:
- repo: local
hooks:
- id: check-sources
name: Reject sibling path overrides
entry: python -m pragmatiks_lint.sources
language: python
language_version: python3.13
additional_dependencies: ["pragmatiks-lint==0.7.0"]
files: (^|/)(pyproject\.toml|package\.json|pnpm-workspace\.yaml)$
pass_filenames: true
stages: [pre-commit]
Pin both hooks to the same version: pre-commit shares one environment between hooks only when their additional_dependencies match exactly.
It has no [project.scripts] entry. Command-line integration belongs in pragma-cli.
Metadata
Release files for pragmatiks-lint 0.7.0
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 |
|---|---|---|---|---|
| pragmatiks_lint-0.7.0.tar.gz | 13.8 kB | With provenance | Details for pragmatiks_lint-0.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pragmatiks_lint-0.7.0-py3-none-any.whl | Python 3 | none | any | Details for pragmatiks_lint-0.7.0-py3-none-any.whl |
Total release size: 31.9 kB
Release files / pragmatiks_lint-0.7.0.tar.gz
| Download URL | pragmatiks_lint-0.7.0.tar.gz |
|---|---|
| Size | 13.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3eb3610d36c80bcda3cc85ac5455136ffbf848145b3fc10542e0e90fa1f556d3
|
|
BLAKE2b-256 checksum How to use checksums |
ecf9d72acb9ad5280ae96600a850afa9b65f386fbd441b339fc0857e7b3da367
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.
Transparency logRelease files / pragmatiks_lint-0.7.0-py3-none-any.whl
| Download URL | pragmatiks_lint-0.7.0-py3-none-any.whl |
|---|---|
| Size | 18.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c051a926e00d86fe18b86978a7b6eeb6524a0c7c217df2a3a0d9ade05bf54f25
|
|
BLAKE2b-256 checksum How to use checksums |
cc9aa7f9428b6d21d503a7accc760cbcc216310760daf3e314d3fc17f41d9096
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.
Transparency logSecurity for pragmatiks-lint 0.7.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pragmatiks_lint-0.7.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.
Transparency logA 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.