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: ```
flake8
Lightweight tool focused on PEP-8 style, basic errors, and code complexity.
Example Quarto .qmd
file:
Run flake8 using lintquarto
lintquarto -l flake8 -p general_example.qmd
=============================================================
Running flake8...
=============================================================
/home/runner/work/lintquarto/lintquarto/docs/pages/tools/examples/general_example.qmd:8:80: E501 line too long (98 > 79 characters)
/home/runner/work/lintquarto/lintquarto/docs/pages/tools/examples/general_example.qmd:17:1: E305 expected 2 blank lines after class or function definition, found 1
/home/runner/work/lintquarto/lintquarto/docs/pages/tools/examples/general_example.qmd:19:1: F401 'sys' imported but unused
/home/runner/work/lintquarto/lintquarto/docs/pages/tools/examples/general_example.qmd:19:1: E402 module level import not at top of file