Commit Graph

20375 Commits

Author SHA1 Message Date
Adam Turner
f1ee0b2951 Enable E231 (Missing whitespace after '{token}') 2023-08-15 18:10:25 +01:00
Adam Turner
93cf83e6bf Enable E228 (Missing whitespace around modulo operator) 2023-08-15 18:10:01 +01:00
Adam Turner
038f9b85f6 Enable E227 (Missing whitespace around bitwise or shift operator) 2023-08-15 18:09:18 +01:00
Adam Turner
cbdc2d85ae Enable E226 (Missing whitespace around arithmetic operator) 2023-08-15 18:08:57 +01:00
Adam Turner
49a9596e5f Enable E225 (Missing whitespace around operator) 2023-08-15 18:08:25 +01:00
Adam Turner
046baf1eda Enable E224 (Tab after operator) 2023-08-15 18:07:54 +01:00
Adam Turner
072a5dd68c Enable E223 (Tab before operator) 2023-08-15 18:07:35 +01:00
Adam Turner
5fbaee0d67 Enable E222 (Multiple spaces after operator) 2023-08-15 18:07:16 +01:00
Adam Turner
ce3d4937e7 Enable E221 (Multiple spaces before operator) 2023-08-15 18:06:32 +01:00
Adam Turner
4cdb73926e Enable E211 (Whitespace before '{bracket}') 2023-08-15 18:05:56 +01:00
Adam Turner
000ba5fae5 Enable E203 (Whitespace before '{punctuation}') 2023-08-15 18:04:09 +01:00
Adam Turner
3942691601 Enable E202 (Whitespace before '{symbol}') 2023-08-15 18:03:13 +01:00
Adam Turner
2583953d11 Enable E201 (Whitespace after '{symbol}') 2023-08-15 18:01:34 +01:00
Adam Turner
175d970ca2 Enable E117 (Over-indented (comment)) 2023-08-15 18:01:01 +01:00
Adam Turner
85e32e3b73 Enable E116 (Unexpected indentation (comment)) 2023-08-15 18:00:30 +01:00
Adam Turner
f0fa8a66f9 Enable E115 (Expected an indented block (comment)) 2023-08-15 17:53:39 +01:00
Adam Turner
ecd01d676e Enable E114 (Indentation is not a multiple of {indent_size} (comment)) 2023-08-15 17:53:01 +01:00
Adam Turner
76b9fc448e Enable E113 (Unexpected indentation) 2023-08-15 17:52:19 +01:00
Adam Turner
fca8296bac Enable E112 (Expected an indented block) 2023-08-15 17:51:48 +01:00
Adam Turner
db82374d3a Enable E111 (Indentation is not a multiple of {indent_size}) 2023-08-15 17:51:27 +01:00
Adam Turner
50d84333e4 Remove W291 and W293 from external list in Ruff configuration 2023-08-15 17:14:04 +01:00
Adam Turner
52d8e03d85 Remove SIM110 from external list in Ruff configuration 2023-08-15 17:13:04 +01:00
Adam Turner
671f348a27 fixup! Remove calls to `builtins.print()` 2023-08-15 17:11:08 +01:00
Adam Turner
ffb14f59bc Remove calls to `builtins.print()` 2023-08-15 16:58:57 +01:00
Stephen Finucane
53a930f8c7
Fix C coverage support in `sphinx.ext.coverage` (#11591) 2023-08-15 14:50:15 +01:00
Stephen Finucane
1e0bc26426
Remove errant print in `sphinx.ext.coverage` (#11593) 2023-08-15 14:26:17 +01:00
Bénédikt Tran
19018f01b6
Improve SigElementFallbackTransform fallback logic. (#11311)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-08-15 14:25:25 +01:00
Matthias Geier
65fd5be20d
Use the 'toctree-wrapper' class for the `sphinx13` theme (#11129) 2023-08-14 23:40:42 +01:00
picnixz
2656f34848
Fix rendering of `Literal` annotations with enum values (#11517)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2023-08-14 23:33:57 +01:00
Riccardo Mori
137b3adce1
Make stringify_annotation recursive on builtins with args (#11570)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2023-08-14 19:28:12 +01:00
Halldor Fannar
0bad447070
Emit "source-read" events for files read via the `include` directive (#11510)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
Co-authored-by: picnixz <10796600+picnixz@users.noreply.github.com>
2023-08-14 16:02:04 +01:00
Adam Turner
6cb783c002 Enable SIM105 (use contextlib.suppress) 2023-08-14 00:18:14 +01:00
Adam Turner
3a5e1f11ab Enable SIM114 (combine if branches using logical or operator) 2023-08-14 00:18:14 +01:00
Adam Turner
f844055dda Fix SIM115 (use context handler for opening files) 2023-08-14 00:18:14 +01:00
Adam Turner
08dbaa793e Fix SIM117 (use single 'with' statement) 2023-08-14 00:18:13 +01:00
Adam Turner
3600862477 Fix SIM118 (use `key in dict not key in dict.keys()`) 2023-08-14 00:18:13 +01:00
Adam Turner
9bcf1d8bb3 Fix TCH001 (move application import into a type-checking block) 2023-08-14 00:18:13 +01:00
Adam Turner
36012b7d96 Fix TCH002 (move third-party import into a type-checking block) 2023-08-13 22:50:03 +01:00
Adam Turner
1fae1470a4 Fix SLOT002 (subclasses of collections.namedtuple() should define `__slots__`) 2023-08-13 22:32:46 +01:00
Adam Turner
e73300b829 Fix SLOT000 (subclasses of str should define `__slots__`) 2023-08-13 22:32:46 +01:00
Adam Turner
6f3c5b8a2c Deprecate `ObjectMember.__getitem__()` 2023-08-13 22:32:46 +01:00
Adam Turner
9bf0f491f9 Update Ruff configuration for 0.0.284 2023-08-13 22:11:15 +01:00
Adam Turner
6cd8723f5d Fix B034 (use keyword arguments for calls to `re.split()`) 2023-08-13 22:11:15 +01:00
Adam Turner
60f37b8b90 Enable EXE002 (file executable but no shebang present) 2023-08-13 22:11:15 +01:00
Adam Turner
d80eab689d Fix EM10{1,2} (exception must not use a string) 2023-08-13 22:11:15 +01:00
Adam Turner
ae0d97bb26 Use `parsedate_tz` in the linkcheck builder 2023-08-13 22:11:15 +01:00
Adam Turner
b533ef1662 Fix DTZ00{0-4} (Do not use naive datetime objects) 2023-08-13 22:11:15 +01:00
Adam Turner
79d196358f Use `time.strftime()` to calculate today's date 2023-08-13 22:11:15 +01:00
Adam Turner
d4169a32e7 Use `parsedate_tz` in the linkcheck builder 2023-08-13 22:11:15 +01:00
Adam Turner
f1b2682d58 Format modified times without `datetime` 2023-08-13 22:11:15 +01:00