1: ---
2: title: "Example"
3: ---
4:
5: This file contains some issues for the linter to identify.
6:
7: ```{python}
8: very_long_line = "This long string exceeds the maximum allowed characters per line."
9: ```
10:
11: There's some more issues below...
12:
13: ```{python}
14: def add_numbers(a, b):
15: return a + b
16:
17: add_numbers(3, 5)
18:
19: import sys
20: ```
pyflakes
Checks for logical errors like undefined names and unused imports.
Example Quarto .qmd
file:
Run pyflakes using lintquarto
lintquarto -l pyflakes -p general_example.qmd
=============================================================
Running pyflakes...
=============================================================
/home/runner/work/lintquarto/lintquarto/docs/pages/tools/examples/general_example.qmd:19:1: 'sys' imported but unused