Package for running linters and static type checkers on quarto .qmd files.
Project description
Package for running linters and static type checkers on quarto .qmd files.
Currently supported linters: pylint, flake8, pyflakes, ruff, pylama, vulture, radon, and pycodestyle.
It also supports some static type checkers: mypy, pyright, pyrefly, and pytype.
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,pyflakes,ruff,pylama,vulture,radon,pycodestyle,mypy,pyright,pyrefly, orpytype -
[files or folders] - One or more
.qmdfiles or directories to lint. -
-k, --keep-temp - Keep the temporary
.pyfiles 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.2.0). https://github.com/lintquarto/lintquarto.
Heather, A. (2025). lintquarto (v0.2.0). https://pypi.org/project/lintquarto/
Heather, A. (2025). lintquarto (v0.2.0). https://doi.org/10.5281/zenodo.15731161.
Citation instructions are also provided in CITATION.cff.
Acknowledgements
Parts of this package were generated or adapted from code provided by Perplexity.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lintquarto-0.2.0.tar.gz.
File metadata
- Download URL: lintquarto-0.2.0.tar.gz
- Upload date:
- Size: 814.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03cc213c40dc31344eea5f9c5960b0b0d93cc474dfc1a69312c9d884a04be30c
|
|
| MD5 |
a4c42c53bcdc41ade9e42feaa2adfd88
|
|
| BLAKE2b-256 |
3c102a48cc8c935a52d7ead2784d23e05bfd468e9b6779e2d01368a709660591
|
File details
Details for the file lintquarto-0.2.0-py3-none-any.whl.
File metadata
- Download URL: lintquarto-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9112b3600df997c6a564efcd31c3762e445dba0c014fbb4f6afeeaad3245e882
|
|
| MD5 |
efebf8a13bb9a32016ee2743fb451d33
|
|
| BLAKE2b-256 |
144475ec050427e325dafe7b9a0338a65d1884b859ee7a67f6fc5fb11ae4d774
|