Skip to main content

xdlint

xdlint is the validator for the .xd crossword format. It checks .xd files against the spec, plus a set of structural and quality rules that come from fixes made again and again in the xd corpus. Many findings have a mechanical fix that xdlint --fix can apply.

It is a single module that uses only the standard library, with no dependencies. Python 3.10 or newer.

Install

pip install xdlint

Usage

xdlint path [path ...]               # lint .xd files, or directories (recursive)
xdlint --fix path ...                # apply mechanical fixes in place
xdlint --fix --diff path ...         # show the fixes as a unified diff, change nothing
xdlint --base BASE [--head HEAD]     # lint only the .xd files changed in a git diff
xdlint --list-rules                  # print the rule catalog
xdlint --version

--max-severity {error,warning,info,debug} (default warning) sets which findings are printed, and xdlint exits 1 if any finding is at or above that level. --disable XD###,... and --enable-only XD###,... select rules. --no-experimental skips rules that interpret extensions the spec doesn't cover yet. --profile gxd adds the editorial conventions of the gxd corpus. Run xdlint --help for every option.

The .xd format is specified at century-arcade/xdformat. The xdformat package there is the parser; xdlint is the separate linter.

Building and releasing

The source is xdlint.py at the root of the xd repository; this directory only packages it. The version is __version__ in xdlint.py.

To build locally, from the repo root:

cp xdlint.py LICENSE packaging/xdlint/
python -m build packaging/xdlint
twine check --strict packaging/xdlint/dist/*

To release version X.Y.Z:

  1. Set __version__ = "X.Y.Z" in xdlint.py and merge that to master.

  2. Tag that commit and push the tag:

    git tag xdlint-vX.Y.Z <commit>
    git push origin xdlint-vX.Y.Z
    

The release-xdlint workflow (.github/workflows/release-xdlint.yml) checks that the tag matches __version__ and is on master, builds the sdist and wheel, runs the tests against the built wheel, uploads to PyPI with trusted publishing, and creates a GitHub release with the files attached.

Metadata

Release files for xdlint 0.1.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 xdlint 0.1.0
File Size Uploaded Provenance Actions
xdlint-0.1.0.tar.gz 45.5 kB With provenance Details for xdlint-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xdlint 0.1.0
File Interpreter ABI Platform Actions
xdlint-0.1.0-py3-none-any.whl Python 3 none any Details for xdlint-0.1.0-py3-none-any.whl

Total release size: 91.6 kB

Release files / xdlint-0.1.0.tar.gz

Download URL xdlint-0.1.0.tar.gz
Size 45.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8e40da7dca49eacce8c328acc9dfbbe61f6c4c15304e9d1ed94e9b31f9037613
BLAKE2b-256 checksum
How to use checksums
2f37bf64f839e0b8ca24f5ee079d8f00fc8a3b5a6b3e78637a1a083d43c05624
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 5, 2026.

Transparency log

Release files / xdlint-0.1.0-py3-none-any.whl

Download URL xdlint-0.1.0-py3-none-any.whl
Size 46.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cfcd60cdbf1b864f614555b909df3f8aac7e0454d0b9173b8c14c7e333b6624e
BLAKE2b-256 checksum
How to use checksums
723c4b8adba832e911f593d6b50a1dc35945b2d1bf83dd0066fbbe3b7f75326a
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 5, 2026.

Transparency log

Security for xdlint 0.1.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 xdlint-0.1.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 5, 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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