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: ```
pycodestyle
Checks against PEP-8 style guidelines.
Example Quarto .qmd
file:
Run pycodestyle using lintquarto
lintquarto -l pycodestyle -p general_example.qmd
=============================================================
Running pycodestyle...
=============================================================
/home/runner/work/lintquarto/lintquarto/docs/pages/tools/examples/general_example.qmd:14:1: E302 expected 2 blank lines, found 0
/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: E402 module level import not at top of file