Skip to content

Commit 0032269

Browse files
authored
release/v1.7.8 (#342)
* style: reformat per black's 1-blank line after module docstring convention * chore: remove support for py39 add support for py314 * chore: update version strings
1 parent ab715b8 commit 0032269

26 files changed

+35
-52
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ jobs:
1414
matrix:
1515
python-version:
1616
- "pypy3.9"
17+
- "3.14"
1718
- "3.13"
1819
- "3.12"
1920
- "3.11"
2021
- "3.10"
21-
- "3.9"
2222
os: [ubuntu-latest]
2323
runs-on: ${{ matrix.os }}
2424
name: "${{ matrix.os }} Python: ${{ matrix.python-version }}"
2525
steps:
2626
- name: Setup Python for tox
2727
uses: actions/setup-python@v4
2828
with:
29-
python-version: "3.12"
29+
python-version: "3.13"
3030
- name: Install tox
3131
run: python -m pip install tox tox-gh-actions
3232
- uses: actions/checkout@v3

.github/workflows/do-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Setup Python for linting
1616
uses: actions/setup-python@v4
1717
with:
18-
python-version: "3.12"
18+
python-version: "3.13"
1919
- name: Install tox
2020
run: python -m pip install tox tox-gh-actions
2121
- uses: actions/checkout@v3

.pre-commit-config.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
exclude: 'tests/'
22
repos:
33
- repo: https://github.com/pre-commit/pre-commit-hooks
4-
rev: v5.0.0
4+
rev: v6.0.0
55
hooks:
66
- id: check-merge-conflict
77
- id: check-toml
@@ -11,28 +11,28 @@ repos:
1111
- id: no-commit-to-branch
1212
- id: trailing-whitespace
1313
- repo: https://github.com/pre-commit/pre-commit
14-
rev: v4.2.0
14+
rev: v4.5.1
1515
hooks:
1616
- id: validate_manifest
1717
- repo: https://github.com/psf/black
18-
rev: '25.1.0'
18+
rev: '26.3.1'
1919
hooks:
2020
- id: black
2121
types_or: [python, pyi]
2222
language_version: python3
2323
- repo: https://github.com/PyCQA/isort
24-
rev: 6.0.1
24+
rev: 8.0.1
2525
hooks:
2626
- id: isort
2727
args: [--settings-file, ./pyproject.toml]
2828
- repo: https://github.com/PyCQA/docformatter
29-
rev: v1.7.7
29+
rev: ab715b8e12b601ba392e7502898e500dde10b4e8
3030
hooks:
3131
- id: docformatter
3232
additional_dependencies: [tomli]
3333
args: [--in-place, --config, ./pyproject.toml]
3434
- repo: https://github.com/charliermarsh/ruff-pre-commit
35-
rev: 'v0.12.4'
35+
rev: 'v0.15.11'
3636
hooks:
3737
- id: ruff
3838
args: [ --config, ./pyproject.toml ]
@@ -43,13 +43,13 @@ repos:
4343
additional_dependencies: [toml]
4444
args: [--config, ./pyproject.toml]
4545
- repo: https://github.com/pre-commit/mirrors-mypy
46-
rev: v1.17.0
46+
rev: v1.20.1
4747
hooks:
4848
- id: mypy
4949
additional_dependencies: [types-python-dateutil]
5050
args: [--config-file, ./pyproject.toml]
5151
- repo: https://github.com/myint/eradicate
52-
rev: '3.0.0'
52+
rev: '3.0.1'
5353
hooks:
5454
- id: eradicate
5555
args: []

docs/source/conf.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@
77
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
88
"""Configuration file for the Sphinx documentation builder."""
99

10-
1110
project = "docformatter"
1211
copyright = "2022-2023, Steven Myint"
1312
author = "Steven Myint"
14-
release = "1.7.7"
13+
release = "1.7.8"
1514

1615
# -- General configuration ---------------------------------------------------
1716
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

pyproject.toml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "docformatter"
3-
version = "1.7.7"
3+
version = "1.7.8"
44
description = "Formats docstrings to follow PEP 257"
55
authors = ["Steven Myint"]
66
maintainers = [
@@ -18,10 +18,11 @@ classifiers=[
1818
'Intended Audience :: Developers',
1919
'Environment :: Console',
2020
'Programming Language :: Python :: 3',
21-
'Programming Language :: Python :: 3.9',
2221
'Programming Language :: Python :: 3.10',
2322
'Programming Language :: Python :: 3.11',
2423
'Programming Language :: Python :: 3.12',
24+
'Programming Language :: Python :: 3.13',
25+
'Programming Language :: Python :: 3.14',
2526
'Programming Language :: Python :: Implementation',
2627
'Programming Language :: Python :: Implementation :: PyPy',
2728
'Programming Language :: Python :: Implementation :: CPython',
@@ -30,7 +31,7 @@ classifiers=[
3031
packages = [{include = "docformatter", from = "src"}]
3132

3233
[tool.poetry.dependencies]
33-
python = "^3.9"
34+
python = "^3.10"
3435
charset_normalizer = "^3.0.0"
3536
tomli = {version = "^2.0.0", python = "<3.11", optional = true}
3637

@@ -142,8 +143,13 @@ output = 'coverage.xml'
142143

143144
[tool.black]
144145
line-length = 88
145-
target-version = ['py39', 'py310', 'py311', 'py312', 'py313']
146-
include = '\.pyi?$'
146+
target-version = [
147+
'py310',
148+
'py311',
149+
'py312',
150+
'py313',
151+
'py314',
152+
]
147153
exclude = '''
148154
/(
149155
\.eggs
@@ -221,7 +227,7 @@ exclude = [
221227
]
222228
line-length = 88
223229
indent-width = 4
224-
target-version = "py39"
230+
target-version = "py310"
225231

226232
[tool.ruff.lint]
227233
select = ["E", "F", "PL"]

src/docformatter/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
# SOFTWARE.
2727
"""This is the docformatter package."""
2828

29-
3029
__all__ = ["__version__"]
3130

3231
# docformatter Local Imports

src/docformatter/__main__.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
# SOFTWARE.
2727
"""Formats docstrings to follow PEP 257."""
2828

29-
3029
# Standard Library Imports
3130
import contextlib
3231
import signal
@@ -39,8 +38,7 @@
3938

4039
def _help():
4140
"""Print docformatter's help."""
42-
print(
43-
"""\
41+
print("""\
4442
usage: docformatter [-h] [-i | -c] [-d] [-r] [-e [EXCLUDE ...]]
4543
[-n [NON-CAP ...]] [-s [style]] [--rest-section-adorns REGEX]
4644
[--black] [--wrap-summaries length]
@@ -108,8 +106,7 @@ def _help():
108106
(see issue #67) (default: False)
109107
--config CONFIG path to file containing docformatter options
110108
--version show program's version number and exit
111-
"""
112-
)
109+
""")
113110

114111

115112
def _main(argv, standard_out, standard_error, standard_in):

src/docformatter/__pkginfo__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,4 @@
2626
# SOFTWARE.
2727
"""Package information for docformatter."""
2828

29-
30-
__version__ = "1.7.7"
29+
__version__ = "1.7.8"

src/docformatter/classify.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
# SOFTWARE.
2727
"""This module provides docformatter's classification functions."""
2828

29-
3029
# Standard Library Imports
3130
import re
3231
import sys

src/docformatter/configuration.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
# SOFTWARE.
2727
"""This module provides docformatter's Configurater class."""
2828

29-
3029
# Standard Library Imports
3130
import argparse
3231
import contextlib

0 commit comments

Comments
 (0)