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
Adam Turner
4f962bf8e0
Split the C domain into multiple modules
...
``sphinx.domains.c`` was previously over 3,90 lines long
2024-01-19 03:28:23 +00:00
Adam Turner
7d30821e87
Split the C++ domain into multiple modules
...
``sphinx.domains.cpp`` was previously over 8,200 lines long
2024-01-19 03:28:23 +00:00
Adam Turner
134703192d
Change pytest settings
...
- Use the 'prepend' import mode
- Show all test statuses, save passed tests
- Set log level to INFO
2024-01-14 04:38:57 +00:00
Adam Turner
0a76199f99
Enable mypy error codes
2024-01-13 22:04:59 +00:00
Adam Turner
82d78c19bf
Bump Ruff to 0.1.13
2024-01-13 20:49:45 +00:00
Adam Turner
db9e476288
Increase the minimum supported version of Alabaster to 0.7.14 ( #11858 )
2024-01-08 19:49:04 +00:00
Adam Turner
3d98eeea79
Update Ruff to 0.1.11
2024-01-04 02:43:52 +00:00
Adam Turner
3f1fb5ee13
MyPy shows error codes by default since v0.990
2023-12-31 17:23:38 +00:00
Dimitri Papadopoulos Orfanos
ba18b50f34
Require PyTest 6.0 or later ( #11827 )
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com >
2023-12-31 17:17:46 +00:00
Adam Turner
772ebbc898
Add the `Framework :: Sphinx :: Domain` classifier
2023-12-27 01:15:05 +00:00
Adam Turner
868199ec18
Cease using isort
2023-12-26 04:30:29 +00:00
Adam Turner
05d5e2f360
Pin the required versions of mypy and ruff
2023-12-26 04:24:52 +00:00
Adam Turner
688352b8d6
Move Ruff configuration to `.ruff.toml`
2023-12-26 04:04:20 +00:00
Adam Turner
655bd15749
Adorn top-level files with a '.rst' suffix
2023-09-14 11:08:17 +01:00
Adam Turner
6183b6abee
Require sphinxcontrib-serializinghtml 1.1.9 or later
2023-08-21 00:28:26 +01:00