21 Commits

Author SHA1 Message Date
2188172c8f Print multiple errors at once (#121) 2025-05-25 11:55:15 +02:00
74db402328 Lint on GitHub Actions via pre-commit (#104)
* Format with Black via pre-commit

* Lint with Ruff

* Add some handy pre-commit hooks

* Apply common format to pyproject.toml and validate

* Format tox.ini

* autoupdate_schedule: quarterly

* Ignore UP038: it makes code slower and more verbose

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>

---------

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-11-25 01:26:07 +02:00
ac9d13a8d8 Print error messages to stderr (#102) 2023-11-22 09:52:37 +00:00
5b2e1b86dd Move CLI code out of __main__.py to allow multiprocessing to work for python -m sphinxlint (#99) 2023-11-12 09:41:54 -07:00
e558a6ff07 fix 'n' cleanup 2023-10-12 11:02:13 +02:00
aad06d0465 Also do paragraphs() 2023-10-11 11:11:28 +02:00
e3f74edfda Split sphinxlint.py file. (#49) 2022-11-06 20:53:42 +01:00
e1b26f996b Documenting all expected xfail messages. 2022-10-18 11:21:24 +02:00
53401a1b34 xfail: Allow to document the expected error message for each case. 2022-10-18 11:21:24 +02:00
50da2f65e5 tests: sphinx-lint does not return a count but a boolean. 2022-10-18 11:21:24 +02:00
e770e5fa51 Testing friend repos: use the right flags. 2022-10-06 23:51:27 +02:00
5a7ec04553 Tests marked as xpass should pass with --enable-all. 2022-10-06 23:34:16 +02:00
410c607a31 Moving friends to a specific directory so we can gitignore it. 2022-10-06 14:36:23 +02:00
b6397cf93c Add new test for unbalanced double backticks.
This helped clarify many situations around inline literals (see added tests).
2022-10-06 14:19:22 +02:00
1f3292335c Fix a bug in the paragraphs function. (#33) 2022-06-18 15:22:55 +02:00
c0a20d11b8 Implement --enable and --disable. (#27)
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
2022-05-13 08:36:27 +02:00
53177eac92 Triple backticks can be legitimately used to show single backticks to readers. 2022-04-25 23:24:19 +02:00
a0bb96ceee Script to pre-populate xpass/ folder. 2022-04-25 00:06:17 +02:00
999b43d52e Push default-role to severity=0 as it's allowed according to Sphinx doc. 2022-04-23 17:11:48 +02:00
0a3d01b8a4 Allow main to take no args for cli script. 2022-02-02 17:47:44 +01:00
7eec454d3e Renaming main script to sphinxlint for consistency. 2022-02-02 17:41:43 +01:00