Skip to content

Commit

Permalink
v0.3.1 requiring at least Python 3.8
Browse files Browse the repository at this point in the history
Only doing this as Python 3.7 no longer working on GitHub actions
  • Loading branch information
peterjc committed Feb 3, 2025
1 parent 56509ff commit 42670c5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand Down
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ Version History
======= ========== ===========================================================
Version Released Changes
------- ---------- -----------------------------------------------------------
v0.3.1 2025-02-03 - Requires Python 3.8 or later (no code changes).
v0.3.0 2022-11-16 - Replaced ``setup.py`` with ``pyproject.toml``.
v0.2.7 2022-07-15 - Fix where function signature occurred in docstring body.
v0.2.6 2022-06-07 - Configuration option to define additional substitutions
Expand Down
13 changes: 7 additions & 6 deletions flake8_rst_docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
re.VERBOSE,
)

__version__ = "0.3.0"
__version__ = "0.3.1"


rst_prefix = "RST"
Expand Down Expand Up @@ -224,11 +224,12 @@ def run(self):
- ast.get_docstring(node, clean=False).count("\n")
- 1
)
assert (
node.body[0].lineno >= 1 and start >= 0
), "Bad start line, node line number %i for: %s\n" % (
node.body[0].lineno,
docstring,
assert node.body[0].lineno >= 1 and start >= 0, (
"Bad start line, node line number %i for: %s\n"
% (
node.body[0].lineno,
docstring,
)
)
for rst_error in rst_errors:
# TODO - make this a configuration option?
Expand Down

0 comments on commit 42670c5

Please sign in to comment.