228 Commits

Author SHA1 Message Date
2188172c8f Print multiple errors at once (#121) 2025-05-25 11:55:15 +02:00
b1bec13803 Drop support for Python 3.8 (#122) 2024-10-19 17:13:49 +03:00
ff671d6a03 Fix check_missing_space_in_hyperlink docstring (#117) v1.0.0 2024-09-11 18:23:18 +03:00
82e6aec6bf CI: Move friend projects to own job (#116) 2024-09-02 20:13:24 +03:00
2f5b2d5590 Add checker for searching unnecessary parentheses in func & meth role (#115)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-09-02 20:12:55 +03:00
a9559ba44c CI: set concurrency (#112)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-23 06:03:31 -06:00
7e92006945 Use Ruff for formatting as well as linting (#110)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-02-22 14:31:03 +00:00
ce6d7aeab2 Add tool.hatch.build.targets.wheel to fix pip install . with Hatchling 1.19 (#106) v0.9.1 2023-12-12 18:14:28 +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
f5ee8783df Add tox for easy testing of multiple Python versions (#100) 2023-11-24 15:10:53 +02:00
ac9d13a8d8 Print error messages to stderr (#102) v0.9.0 2023-11-22 09:52:37 +00:00
6b070ea94c Add Python 3.13 to the testing matrix (#91)
* Add Python 3.13 to the testing matrix

* Update Py version to run more tests to 3.13.

* Exclude Python 3.13 on Windows in test matrix until regex wheel available

---------

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-11-18 17:28:00 +01:00
5b2e1b86dd Move CLI code out of __main__.py to allow multiprocessing to work for python -m sphinxlint (#99) v0.8.2 2023-11-12 09:41:54 -07:00
87dd645c80 docs(cli): Add missing space in --help output (#96)
* docs(cli): Add missing space in --help output

* Add missing space.

---------

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
2023-10-22 04:32:34 +02:00
ae69698b3a Use require_serial: true as the default for our pre-commit hook, not -j1 (#95) v0.8.1 2023-10-16 15:59:50 +01:00
dbccac04ae Improve usability of Sphinx Lint with pre-commit (#94)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
v0.8.0
2023-10-15 17:50:01 +01:00
84d17a7211 Fix sh code block in README (#93)
It wasn't closed properly
2023-10-14 06:45:23 +02:00
6b758fd9f6 Update release instructions in README.md (#89)
* Update release instructions in README.md

* Update history link.

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

* Add quotes around our friends projects

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

* Fix wrong sentence.

---------

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-10-13 17:21:34 +02:00
4cecfc7dee Add docs on how best to use sphinx-lint with pre-commit (#90)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
2023-10-13 17:10:04 +02:00
881f0d540d Add link to changelog on pyproject.toml/PyPI (#92) 2023-10-13 16:56:13 +02:00
b61542c40a Fix for suggestion applied blindly during review (#86)
Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>
v0.7.0
2023-10-13 14:44:59 +02:00
a9af369801 Merge pull request #88 from sphinx-contrib/trusted-publishing
Add a deploy.yml that supports trusted publishing.
2023-10-13 14:35:12 +02:00
8c4a652d62 Hardcode package name.
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-10-13 12:44:32 +02:00
1c6d8f03c9 Use importlib.metadata to get the version. 2023-10-13 12:40:21 +02:00
e47c7e1ca4 Switch from setuptools to hatchling in pyproject.toml. 2023-10-13 12:37:09 +02:00
946ac53b67 Add a deploy.yml that supports trusted publishing. 2023-10-13 12:27:57 +02:00
529a4eb765 Merge pull request #85 from sphinx-contrib/ci-py-version-friends 2023-10-13 08:56:55 +02:00
71f72a5db3 Merge pull request #84 from AlexWaygood/improve-caching 2023-10-13 08:56:27 +02:00
5ec032065f Update Python version used to test friend projects. 2023-10-13 08:45:18 +02:00
715ffb232a Revert "A more complex cache for hide_non_rst_blocks()"
This reverts commit 7d63ef34ecc9d594692f6b39974a43e9b565414b.
2023-10-13 00:51:25 +02:00
e3515d92eb address review 2023-10-13 00:48:16 +02:00
a901d6a1bf Improve the caching strategy employed in utils.py 2023-10-13 00:20:27 +02:00
3e99049483 Merge pull request #82 from AlexWaygood/more-regex-compilations 2023-10-12 16:42:20 +02:00
61c449beb5 Apply suggestions from code review
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-10-12 16:39:15 +02:00
1ebab9ffdb more 2023-10-12 14:14:58 +02:00
33d1564a9b better names 2023-10-12 13:58:06 +02:00
c3d5c3c38b address review 2023-10-12 13:54:34 +02:00
e558a6ff07 fix 'n' cleanup 2023-10-12 11:02:13 +02:00
8df071effd Pre-compile nearly all regex patterns 2023-10-12 10:46:58 +02:00
1e8c3f9231 Merge pull request #78 from rtobar/explicit-process-count 2023-10-11 17:14:36 +02:00
9c863689de Merge pull request #81 from AlexWaygood/gen_markup-cache 2023-10-11 17:14:14 +02:00
a05d20ba06 Merge pull request #80 from AlexWaygood/more-regexes 2023-10-11 17:09:44 +02:00
3140871691 py38 compat 2023-10-11 16:51:53 +02:00
b9a37b3c4a Add a cache to rst.inline_markup_gen() 2023-10-11 16:49:31 +02:00
0ba5b88e2e Micro-optimise check_missing_space_after_role() 2023-10-11 16:36:31 +02:00
dc0514d6a0 Merge pull request #79 from AlexWaygood/caches 2023-10-11 16:14:43 +02:00
1e84162354 Merge pull request #77 from rtobar/re-compilation 2023-10-11 16:14:33 +02:00
a0042882a8 Another pre-compiled RE for better perf
Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>
2023-10-11 22:06:09 +08:00
c6e81e42f2 Rename _PATTERN to _RE
The latter seems to be what the current codebase calls Pattern objects,
so let's not add confusion.

Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>
2023-10-11 22:06:09 +08:00
0867edc6a8 Reuse _COMMENT_PATTERN in hide_non_rst_blocks
Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>
2023-10-11 21:54:21 +08:00