Skip to main content

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.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pragmatiks-lint 0.8.0
File Size Uploaded Provenance Actions
pragmatiks_lint-0.8.0.tar.gz 14.4 kB With provenance Details for pragmatiks_lint-0.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pragmatiks-lint 0.8.0
File Interpreter ABI Platform Actions
pragmatiks_lint-0.8.0-py3-none-any.whl Python 3 none any Details for pragmatiks_lint-0.8.0-py3-none-any.whl

Total release size: 33.8 kB

Release files / pragmatiks_lint-0.8.0.tar.gz

Download URL pragmatiks_lint-0.8.0.tar.gz
Size 14.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8591808221eeed88c77035464c5ae503a0a33ba03606474801b9d0c5a4dc4da3
BLAKE2b-256 checksum
How to use checksums
0fe0e941442c9d4efa3233720a017779160afff426bcf03f422471accce2207b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 7, 2026.

Transparency log

Release files / pragmatiks_lint-0.8.0-py3-none-any.whl

Download URL pragmatiks_lint-0.8.0-py3-none-any.whl
Size 19.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7b14c52ff96c6315f40e88712abf6e109dad05ee92b5150665f91e4551b39699
BLAKE2b-256 checksum
How to use checksums
fe0cd18b67894fffbbd12ef688e6c68ce23711625d984dda1120153172b26769
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 7, 2026.

Transparency log

Security for pragmatiks-lint 0.8.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.

Select from 2 files

Attestation for pragmatiks_lint-0.8.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 Nov 7, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page