Commit Graph

211 Commits

Author SHA1 Message Date
danieleades
d5df528e8c Shrink the mypy whitelist for `sphinx.util.display` (#12570)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-07-15 05:34:43 +01:00
Adam Turner
313627e4f6 Bump Ruff to 0.5.2 2024-07-15 05:22:04 +01:00
Adam Turner
c4fb47310f Remove `sphinx.environment` from the no-any-generics whitelist (#12575) 2024-07-15 03:49:24 +01:00
Adam Turner
00544bb997 Remove `sphinx.builders` from the no-any-generics whitelist (#12574) 2024-07-15 02:27:03 +00:00
Adam Turner
edd21a5b7c Remove `sphinx.testing` from the no-any-generics whitelist (#12573) 2024-07-15 02:09:18 +00:00
danieleades
f4bb9ca112 Shrink the mypy whitelist: `sphinx.application` (#12568)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-07-15 03:04:10 +01:00
Adam Turner
469a809ead Increase minimum required dependency versions (#12556) 2024-07-13 08:59:24 +01:00
Adam Turner
d2f426637d Require Docutils 0.20 or greater (#12555) 2024-07-13 08:20:13 +01:00
M Bussonnier
602bfe4255 Bump `types-docutils` to 0.21.0.20240711 (#12529)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-07-11 06:55:58 +01:00
M Bussonnier
6e3a191185 Bump Ruff to 0.5.1 (#12530) 2024-07-10 14:13:10 +01:00
James Addison
c67ef51df9 Update MyPy for types-docutils 0.21.0.20240708 (#12522) 2024-07-09 20:59:49 +01:00
danieleades
082f13f378 Pin the version of 'docutils-types' (#12515) 2024-07-07 17:27:59 +01:00
Bénédikt Tran
3209275a4a Support `typing_extensions.Unpack` (#12258)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-07-03 03:03:41 +01:00
Adam Turner
86c51f3bfa Bump Ruff to 0.5.0 2024-07-02 22:50:35 +01:00
James Knight
f0c5178176 Use Windows-specific Colorama initialisation (#12493)
Signed-off-by: James Knight <james.d.knight@live.com>
2024-07-02 21:17:09 +01:00
dependabot[bot]
b70578f80c Bump ruff from 0.4.7 to 0.4.10 (#12452) 2024-06-25 09:42:31 +02:00
dependabot[bot]
a0610f4f33 Bump mypy from 1.10.0 to 1.10.1 (#12475) 2024-06-25 09:37:05 +02:00
dependabot[bot]
7550588b42 Bump ruff from 0.4.4 to 0.4.7 (#12404)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-03 08:33:20 +02:00
Chris Sewell
71d50a8658 🔧 Update ruff v0.4.4 (#12375) 2024-05-15 07:00:55 +02:00
James Addison
9467bf7849 [typehints] tests: enable mypy for linkcheck builder tests. (#12160) 2024-05-15 04:13:57 +02:00
Adam Turner
7953798074 Update to mypy 1.10 2024-04-25 16:04:06 +01:00
Chris Sewell
49726c28f4 Split `sphinx.ext.intersphinx._load`
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-04-25 15:30:55 +01:00
Bénédikt Tran
48a345b7c5 Improve type hints for `sphinx.ext.autodoc.mock` (#12280)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-04-22 23:23:57 +01:00
Adam Turner
80ac07907d Bump Ruff to 0.4.1 2024-04-22 22:46:51 +01:00
Adam Turner
8a944ac87c Add `tomli` as a dependency for Python 3.10 and earlier 2024-04-17 01:05:49 +01:00
Adam Turner
b30088d68f Bump Ruff to 0.3.7 2024-04-12 21:04:51 +01:00
Adam Turner
b4cccb70f7 Support Docutils 0.21 (#12267) 2024-04-12 19:42:15 +01:00
Adam Turner
8ee9c536b7 Fix mypy errors on Windows (#12266) 2024-04-11 19:40:53 +01:00
Dimitri Papadopoulos Orfanos
be9b9349cc Use the proper type for Pytest's "minversion" option (#12244)
Numbers (integer or decimal) are permitted, but strings are preferred
2024-04-09 18:46:32 +01:00
James Addison
df3cde65fa [tests] linkcheck: bind each test HTTP server to a unique port per-testcase (#12126)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-04-04 11:25:53 +02:00
Bénédikt Tran
d5baa46d85 [mypy] use explicit exclusion fpr test files (#12199)
This explicitly excludes test files instead of ignoring errors by test modules.
2024-03-28 09:11:56 +01:00
Bénédikt Tran
885818bb7f [tests] move utilities and static data into dedicated modules and remove `html5lib` (#12173)
Since #12168, HTML files are now XML compliant, hence ``html5lib`` is no more needed as a testing dependencies.
2024-03-25 11:03:44 +01:00
danieleades
22cee42094 [lint] use `types-docutils instead of docutils-stubs for docutils` type annotations (#12012)
Co-authored-by: daniel.eades <daniel.eades@seebyte.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-03-23 21:09:18 +01:00
Chris Sewell
66fa790b3a [tests] Add basic build test for all builtin themes (#12168)
Add `tests/test_theming/test_theming.py::test_theme_builds`, which is a parametrized test against all builtin sphinx HTML themes, that tests:

1. that the themes builds without warnings for a basic project, and
2. that all `.html` files it produces are valid XML (see https://html.spec.whatwg.org/)

https://pypi.org/project/defusedxml/ was added to the test dependencies, in order to safely parse the XML

This required one fix for `sphinx/themes/basic/search.html`, and one for `sphinx/themes/bizstyle/layout.html`

Also, `tests/test_theming` was removed from the `ruff format` exclude list
2024-03-22 12:57:34 +01:00
danieleades
6c92c5c0f3 [lint] bump ruff version (#12170)
Co-authored-by: daniel.eades <daniel.eades@seebyte.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-03-22 10:33:42 +01:00
dependabot[bot]
3da0b7a403 Bump ruff from 0.3.2 to 0.3.3 (#12123)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-19 14:00:52 +01:00
Bénédikt Tran
6b45608f1d [lint] remove files from whitelist that are currently fine (#12113) 2024-03-16 19:09:28 +01:00
Bénédikt Tran
57e302ed74 [lint] run `mypy on tests/test_addnodes.py` (#12111) 2024-03-16 18:38:22 +01:00
Bénédikt Tran
b0ded2e624 [lint] run `mypy on test_application.py` (#12112) 2024-03-16 18:29:44 +01:00
Bénédikt Tran
2df5b0a8ab [lint] whitelist all test files except configuration and utils in tests (#12109) 2024-03-16 18:06:58 +01:00
danieleades
768cf5e7ac [lint] run mypy on the utils/ directory (#12090)
Co-authored-by: daniel.eades <daniel.eades@seebyte.com>
2024-03-15 10:31:32 +01:00
Bénédikt Tran
dbb4da375f [tests] correctly intercept or suppress warnings in tests (#12085) 2024-03-14 11:45:45 +01:00
danieleades
d74a450213 [deps] bump ruff version (#12065)
Co-authored-by: daniel.eades <daniel.eades@seebyte.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-03-14 10:42:55 +01:00
danieleades
12d523efdc [deps] bump mypy version (#12066)
Co-authored-by: daniel.eades <daniel.eades@seebyte.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-03-14 10:06:27 +01:00
Bénédikt Tran
4ef8752499 [lint] change `mypy` imports policy. (#12017) 2024-02-27 14:16:14 +01:00
danieleades
d6f38ade54 [CI] update mypy CI job to use local config (#12013)
Co-authored-by: daniel.eades <daniel.eades@seebyte.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-02-26 12:15:17 +01:00
danieleades
adde256893 [lint] shrink mypy whitelist (#11898)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-02-26 09:45:19 +01:00
Charlie Marsh
aff95789ac Upgrade Ruff configuration for v0.2.0 (#11927)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-02-02 00:11:44 +00:00
Adam Turner
fa29004951 Bump Ruff to 0.1.14 and remove flake8-simplify (#11906)
Authored-by: Daniel Eades <danieleades@hotmail.com>
Co-authored-by: Daniel Eades <danieleades@hotmail.com>
2024-01-21 20:42:23 +00:00
Adam Turner
a9ba9f92d3 Expand all any-generics overrides 2024-01-19 04:39:31 +00:00