Skip to content

Commit d047729

Browse files
authored
Merge pull request #404 from FoamyGuy/add_10_10_2025_patch
adding patch for: remove ruff deprecated rule, workaround RTD CSS issue
2 parents ba69525 + fbdf21f commit d047729

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
From 376f74a7d95ac91145393cd89c1cba3d6ac94ffd Mon Sep 17 00:00:00 2001
2+
From: foamyguy <foamyguy@gmail.com>
3+
Date: Fri, 10 Oct 2025 16:18:40 -0500
4+
Subject: [PATCH] remove deprecated ruff rule, workaround RTD theme property
5+
inline issue.
6+
7+
---
8+
docs/_static/custom.css | 8 ++++++++
9+
docs/conf.py | 3 +++
10+
ruff.toml | 1 -
11+
3 files changed, 11 insertions(+), 1 deletion(-)
12+
create mode 100644 docs/_static/custom.css
13+
14+
diff --git a/docs/_static/custom.css b/docs/_static/custom.css
15+
new file mode 100644
16+
index 0000000..d60cf4b
17+
--- /dev/null
18+
+++ b/docs/_static/custom.css
19+
@@ -0,0 +1,8 @@
20+
+/* SPDX-FileCopyrightText: 2025 Sam Blenny
21+
+ * SPDX-License-Identifier: MIT
22+
+ */
23+
+
24+
+/* Monkey patch the rtd theme to prevent horizontal stacking of short items
25+
+ * see https://github.com/readthedocs/sphinx_rtd_theme/issues/1301
26+
+ */
27+
+.py.property{display: block !important;}
28+
diff --git a/docs/conf.py b/docs/conf.py
29+
index f51f557..879bff7 100644
30+
--- a/docs/conf.py
31+
+++ b/docs/conf.py
32+
@@ -128,6 +128,9 @@ html_theme = "sphinx_rtd_theme"
33+
# so a file named "default.css" will overwrite the builtin "default.css".
34+
html_static_path = ["_static"]
35+
36+
+# Include extra css to work around rtd theme glitches
37+
+html_css_files = ["custom.css"]
38+
+
39+
# The name of an image file (relative to this directory) to use as a favicon of
40+
# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
41+
# pixels large.
42+
diff --git a/ruff.toml b/ruff.toml
43+
index 0f3565b..7bd00c3 100644
44+
--- a/ruff.toml
45+
+++ b/ruff.toml
46+
@@ -17,7 +17,6 @@ extend-select = [
47+
"PLC2401", # non-ascii-name
48+
"PLC2801", # unnecessary-dunder-call
49+
"PLC3002", # unnecessary-direct-lambda-call
50+
- "E999", # syntax-error
51+
"PLE0101", # return-in-init
52+
"F706", # return-outside-function
53+
"F704", # yield-outside-function
54+
--
55+
2.51.0
56+

0 commit comments

Comments
 (0)