Commit Graph

20662 Commits

Author SHA1 Message Date
Dimitri Papadopoulos Orfanos
97b7e63739
Apply refurb/ruff rule FURB115 (#11838) 2024-01-04 03:12:43 +00:00
Dimitri Papadopoulos Orfanos
9910e5c7e8
Apply refurb/ruff rule FURB111 (#11837) 2024-01-04 03:12:30 +00:00
Dimitri Papadopoulos Orfanos
4303c6dd31
Apply refrub/ruff rule FURB109 (#11836)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-01-04 03:12:12 +00:00
Adam Turner
4227154cf3 Add placeholder refurb (FURB) entries in Ruff's configuration 2024-01-04 02:58:05 +00:00
Adam Turner
1859b32374 Add missing linters to Ruff configuration 2024-01-04 02:53:12 +00:00
Adam Turner
3d98eeea79 Update Ruff to 0.1.11 2024-01-04 02:43:52 +00:00
Adam Turner
bc9479b241 Use long options for sphinx-build in GitHub Actions 2024-01-04 02:40:44 +00:00
Dimitri Papadopoulos Orfanos
460a63010f
Fix various spelling errors (#11735) 2024-01-04 02:37:44 +00:00
Adam Turner
efd24cf4ca
Defer computation of configuration values (#11855) 2024-01-04 02:23:45 +00:00
Adam Turner
4ce2d84761 Move special-case bool conversion to 'gettext' 2024-01-03 23:41:35 +00:00
Adam Turner
09edb88458 Make `Config.overrides` private 2024-01-03 22:17:11 +00:00
Adam Turner
68af0ac2be Make `Config.values` private 2024-01-03 22:17:11 +00:00
Adam Turner
259118d182 Narrow the type for configuration option 'valid_types' values 2024-01-03 21:51:39 +00:00
Adam Turner
fd23cf0256 Introduce a configuration option type
* Normalise rebuild values
* Ensure that the tuple interface continues to work
2024-01-03 19:58:55 +00:00
Adam Turner
c3deb1746a Improve control flow in `check_confval_types()` 2024-01-03 17:24:17 +00:00
Adam Turner
20e804ab90 Introduce types for the `setup()` function 2024-01-03 05:05:54 +00:00
Adam Turner
0145f95716 Simplify `Config.read()` 2024-01-03 04:44:23 +00:00
Adam Turner
826ba0fcd9 Eliminate a redundant variable 2024-01-03 04:43:11 +00:00
Adam Turner
edf52e709f Emend a spelling error 2024-01-03 04:43:10 +00:00
Adam Turner
2910a92d66 Prefer dict.fromkeys 2024-01-03 04:43:10 +00:00
Adam Turner
ffaced9f3c Prefer a map() in is_serializable() 2024-01-03 04:43:09 +00:00
Adam Turner
5678704593 Merge `load_external_theme() into load_extra_theme()` 2024-01-03 04:33:20 +00:00
Adam Turner
0b64b21670 Remove alabaster special-casing in `load_extra_theme()` 2024-01-03 04:32:09 +00:00
Adam Turner
19b2950511 Narrow the type for configuration option 'rebuild' values 2024-01-03 04:17:46 +00:00
Adam Turner
cb9656f654 Update all GitHub Actions versions 2024-01-03 03:31:39 +00:00
Adam Turner
a31ebf7f8d Test with released versions of Python 3.12 2024-01-03 03:23:58 +00:00
Adam Turner
c617138445 Add `Config.__repr__()` 2024-01-03 03:21:38 +00:00
Adam Turner
90ebd881fa Standardise iteration over configration values 2024-01-03 03:21:37 +00:00
Adam Turner
134d1341dd Refactor `Config.__init__()` 2024-01-03 03:21:37 +00:00
Adam Turner
512570bfe6 Standardise verbiage for Config values (default, rebuild, valid_types) 2024-01-03 03:21:36 +00:00
Adam Turner
0c509a2e5d Standardise type-validation verbiage in `sphinx.config` 2024-01-03 03:21:35 +00:00
Dimitri Papadopoulos Orfanos
b9691c0ce6
Add some recent Ruff rules (#11833) 2024-01-02 01:22:08 +00:00
Dimitri Papadopoulos Orfanos
002098b51f
Adopt the lint Ruff table consistently (#11832) 2024-01-01 22:19:54 +00:00
Dimitri Papadopoulos Orfanos
68295a5a78
[docs] Remove duplicate "the" from README file (#11835) 2024-01-01 15:39:09 +01: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
Bénédikt Tran
a8d580075e
Fix ANSI control sequence support detection (#11708) 2023-12-30 16:39:22 +00:00
Rex Yuan
23c9cb4e78
[docs] Fix Makefile target in describing-code.rst (#11428) 2023-12-30 14:48:16 +01:00
James Addison
d66d51ad8c
test_build_linkcheck: test_defaults: fix line-number assertion when using docutils 0.21b+ (#11818)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2023-12-30 13:38:30 +01:00
danieleades
e1bbe88eb5
Fix some type errors in the C and C++ domains (#11791) 2023-12-29 09:56:49 +00:00
danieleades
f7f4fb42b0
Enable more entire categories in Ruff (#11816)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2023-12-29 09:55:28 +00:00
Adam Turner
bc74a6223c Remove obsolete warning filter 2023-12-28 07:34:52 +00:00
Shengyu Zhang
9c3b50b31c
Avoid hard-coding 'index' for the master document in templates (#11801) 2023-12-28 07:05:14 +00:00
James Addison
246312287e
Resolve lint warnings reported by Ruff (#11719) 2023-12-28 06:51:32 +00:00
danieleades
64e7ba5e3f
Enable the entire pycodestyle category (#11820)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2023-12-28 06:41:32 +00:00
Adam Turner
772ebbc898 Add the `Framework :: Sphinx :: Domain` classifier 2023-12-27 01:15:05 +00:00
Adam Turner
75bdbe8d09 Move Ruff linting settings to the [lint] table 2023-12-27 01:13:04 +00:00
Adam Turner
3ad2c3b4ee List long options first 2023-12-27 01:06:15 +00:00
Adam Turner
16c13fcb4c Split options into groups with finer granularity 2023-12-27 00:56:13 +00:00
Hugo van Kemenade
aea69ea6af
Add longer option names to `sphinx-build` (#11776)
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
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>
2023-12-27 00:22:52 +00:00