Skip to content

Commit 42670c5

Browse files
committed
v0.3.1 requiring at least Python 3.8
Only doing this as Python 3.7 no longer working on GitHub actions
1 parent 56509ff commit 42670c5

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
11+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
1212
steps:
1313
- uses: actions/checkout@v2
1414
- name: Set up Python ${{ matrix.python-version }}

README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ Version History
245245
======= ========== ===========================================================
246246
Version Released Changes
247247
------- ---------- -----------------------------------------------------------
248+
v0.3.1 2025-02-03 - Requires Python 3.8 or later (no code changes).
248249
v0.3.0 2022-11-16 - Replaced ``setup.py`` with ``pyproject.toml``.
249250
v0.2.7 2022-07-15 - Fix where function signature occurred in docstring body.
250251
v0.2.6 2022-06-07 - Configuration option to define additional substitutions

flake8_rst_docstrings.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
re.VERBOSE,
2727
)
2828

29-
__version__ = "0.3.0"
29+
__version__ = "0.3.1"
3030

3131

3232
rst_prefix = "RST"
@@ -224,11 +224,12 @@ def run(self):
224224
- ast.get_docstring(node, clean=False).count("\n")
225225
- 1
226226
)
227-
assert (
228-
node.body[0].lineno >= 1 and start >= 0
229-
), "Bad start line, node line number %i for: %s\n" % (
230-
node.body[0].lineno,
231-
docstring,
227+
assert node.body[0].lineno >= 1 and start >= 0, (
228+
"Bad start line, node line number %i for: %s\n"
229+
% (
230+
node.body[0].lineno,
231+
docstring,
232+
)
232233
)
233234
for rst_error in rst_errors:
234235
# TODO - make this a configuration option?

0 commit comments

Comments
 (0)