Skip to main content

lintquarto

Project description

lintquarto

Code licence ORCID


Package for running linters on quarto .qmd files.

Currently supported: pylint, flake8 and mypy.

Linting illustration


Installation

You can install lintquarto from PyPI:

pip install lintquarto

To also install all supported linters:

pip install lintquarto[all]

Getting started using lintquarto

Usage

lintquarto [linter] [files or folders] [-k | --keep-temp]
  • [linter] - Choose one of the supported linters: pylint, flake8 or mypy.
  • [files or folders] - One or more .qmd files or directories to lint.
  • -k, --keep-temp - Keep the temporary .py files created during linting (for debugging).

Only one linter can be specified per command. Passing extra arguments directly to linters is not supported. Only .qmd files are processed.

Examples

The linter used is interchangeable in these examples.

Lint all .qmd files in the current directory (using pylint):

lintquarto pylint .

Lint a specific file (using flake8):

lintquarto flake8 file.qmd

Lint several specific files (using pylint):

lintquarto pylint file1.qmd file2.qmd

Lint all .qmd files in a folder (using mypy):

lintquarto mypy folder

Keep temporary .py files after linting (with pylint)

lintquarto pylint . -k

Community

Curious about contributing? Check out the contributing guidelines to learn how you can help. Every bit of help counts, and your contribution - no matter how minor - is highly valued.


How to cite lintquarto

Please cite the repository on GitHub, PyPI and/or Zenodo:

Heather, A. (2025). lintquarto (v0.1.0). https://github.com/lintquarto/lintquarto.

Heather, A. (2025). lintquarto (v0.1.0). https://pypi.org/project/lintquarto/

Heather, A. (2025). lintquarto (v0.1.0). TODO.

Citation instructions are also provided in CITATION.cff.


Acknowledgements

Parts of this package were generated or adapted from code provided by Perplexity.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lintquarto-0.1.0.tar.gz (624.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lintquarto-0.1.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file lintquarto-0.1.0.tar.gz.

File metadata

  • Download URL: lintquarto-0.1.0.tar.gz
  • Upload date:
  • Size: 624.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.14

File hashes

Hashes for lintquarto-0.1.0.tar.gz
Algorithm Hash digest
SHA256 03a328388cdf92a38d2fe3099fbe977b1984fcc12e7c4236b3b33bb46616d84f
MD5 fd19d4131d119501de4ea21ce2704623
BLAKE2b-256 10375b1cd8297f478efb6969107ea696cb8f2b7cc17828a503332618e6dcb354

See more details on using hashes here.

File details

Details for the file lintquarto-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: lintquarto-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.14

File hashes

Hashes for lintquarto-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8407cb78c9b0aa3bc462d1a484a46080a543a53c43efc5e4c7eaef1a84c828eb
MD5 914382f140e2b9595e23725f9c750c16
BLAKE2b-256 253e1826e213e1f79d7d6c40df7a476fb0c86f2bde63ac96efbfb940f88c8823

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page