Thomas Louf
1418339eb9
Allow configuration of trailing commas in multi-line signatures ( #12975 )
...
Stop outputting trailing commas for C and C++, as it is invalid syntax.
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
Co-authored-by: Jakob Lykke Andersen <jakobandersen@users.noreply.github.com>
2025-01-21 20:08:18 +00:00
Adam Turner
4fbcc2098e
intersphinx: Import names from proper places ( #13244 )
2025-01-15 21:41:34 +00:00
Adam Turner
c66d3e85d1
Enable 11 more categories in Ruff
...
* flake8-builtins ('A')
* flake8-blind-except ('BLE')
* flake8-copyright ('CPY')
* eradicate ('ERA')
* flake8-boolean-trap ('FBT')
* flake8-fixme ('FIX')
* flake8-implicit-str-concat ('ISC')
* pep8-naming ('N')
* flake8-use-pathlib ('PTH')
* flake8-self ('SLF')
* tryceratops ('TRY')
2025-01-14 14:43:02 +00:00
Adam Turner
5ff3740063
Adapt tests for Pygments 2.19
2025-01-06 06:56:10 +00:00
Adam Turner
e17ed74fe0
Remove unneeded content from within `with
` statements
2025-01-04 09:11:33 +00:00
Adam Turner
b5f9ac8afc
Enable the RUF100 lint in Ruff
2025-01-02 23:49:43 +00:00
Adam Turner
3af48520d2
Require the PEP 563 'annotations' future import
2024-11-22 21:54:26 +00:00
Adam Turner
1094556afb
Bump Ruff to 0.7.2
2024-11-03 02:55:19 +00:00
Adam Turner
e58dd58f35
Enable the PLR6201 lint in Ruff
2024-10-19 19:05:43 +01:00
Adam Turner
f2d3a62865
Enable the S607 lint in Ruff
2024-10-19 19:05:42 +01:00
Adam Turner
541bf7bc67
Drop support for Python 3.10 ( #13000 )
2024-10-17 20:59:41 +01:00
Adam Dangoor
7b6f76b61c
Remove an unused function in a test ( #12839 )
2024-08-31 07:47:16 +01:00
Jean-François B.
447cd1ab1e
LaTeX: Fix #12735 about siglines with typing but no parameter list ( #12737 )
2024-08-24 21:48:51 +02:00
Jean-François B.
1c131dfffe
LaTeX: make contents, topic, and sidebar separately customizable ( #12704 )
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-08-19 20:43:47 +02:00
Thomas Fanning
e0f2009346
LaTeX: Add math_numsep
support to latex builder ( #12652 )
...
Co-authored-by: Jean-François B <2589111+jfbu@users.noreply.github.com>
2024-08-18 21:34:20 +02:00
Jean-François B.
4c7fe10a4b
LaTeX: fix mark-up when \DUrole is used with multiple classes ( #12745 )
2024-08-17 20:33:15 +02:00
Adam Turner
0b17bb1029
Always define the builder and `testroot
when using the
app
` fixtureture ( #12775 )
2024-08-12 22:34:03 +01:00
Adam Turner
03b9134ee0
Short-circuit HTTP requests in tests ( #12772 )
2024-08-12 03:49:58 +01:00
Adam Turner
d03156e078
Format `tests/
` ( #12760 )
2024-08-11 14:58:56 +01:00
Adam Turner
620e434f65
Improve string concatenation ( #12758 )
...
Use implicit concatenation over ``+``, and combine some implicit concatenations
to a single string literal.
2024-08-11 00:39:35 +01:00
Adam Turner
1f2891530d
Use `app.status
and
app.warning
` in tests ( #12663 )
2024-07-23 15:35:55 +01:00
Adam Turner
e174df2762
Rename `normalize_intersphinx_mapping
to
validate_intersphinx_mapping
` ( #12643 )
2024-07-22 13:32:44 +01:00
Jean-François B.
152b78318d
LaTeX: fix figures in seealso and seealso inside table cell ( #12598 )
...
This also fixes unreported issues unrelated to the 7.4.0 release:
- (now old style "lightbox") admonitions render badly in tabulary,
- "heavybox" admonitions (they are all now but warning et al. were already) cause PDF crash if in tabulary and rendered badly if in tabular or longtable.
- figure in a table cell is not properly separated from immediately preceding text.
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-07-16 21:03:42 +01:00
Bénédikt Tran
2a30bb661f
Fix PEP 695 output for classes in the LaTeX builder ( #12561 )
2024-07-15 05:17:36 +01:00
Chris Sewell
41b363dbff
[rst] Add level
option to rubric
directive ( #12506 )
...
This commit adds a `level` option to the `rubric` directive, which propagates a `level` attribute to the `rubric` node,
and allows renderers to select a specific heading level.
Logic for this attribute has been added to the HTML5 and LaTeX builder.
2024-07-14 05:52:58 +02:00
Adam Turner
82edc3d385
Rewrite `usage/configuration.rst
` ( #12537 )
...
- Remove now-removed configuration values
- Use obvious 'unset' defaults for ``project`` and ``author``
- Prefer 'e.g.' to 'ex.'
- Allow non-list sequence types in various configuration values
- Add types and defaults to every confval directive
2024-07-10 21:43:14 +01:00
James Addison
778013f91a
Regression: restore extraction of data-URI images from source for builders whose output formats do not support them natively ( #12344 )
2024-07-03 02:16:43 +01:00
James Addison
0806a00f05
Support `.jinja
` for theme static templates ( #11916 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-04-23 10:40:24 +01:00
James Addison
67303920fe
Make the test suite connectivity-agnostic ( #12095 )
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-04-12 23:32:12 +01:00
Bénédikt Tran
98d0cc8602
[tests] skip tests that need remote content if host is offline ( #12091 )
2024-03-14 15:33:24 +01:00
danieleades
92380e60d1
[lint] add RUFF005 lint ( #12068 )
...
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 11:26:30 +01:00
Adam Turner
1327ec71f2
Fix flake8 in test_build_latex
2024-01-19 03:28:23 +00:00
Adam Turner
183dd51f4d
Explode the test matrix for test_build_latex_doc
2024-01-19 02:28:06 +00:00
Adam Turner
4c9364896e
Consolidate warnings tests in `test_build_warnings
`
2024-01-19 02:28:06 +00:00
Adam Turner
6fab64fb55
Explicitly remove the `autodoc_fodder
` module
2024-01-19 02:28:06 +00:00
Adam Turner
462404cb25
Organise tests into directories
2024-01-17 03:56:35 +00:00