Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Add support for Python 3.10 #554

Merged
merged 5 commits into from Oct 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Expand Up @@ -32,7 +32,7 @@ docstring conventions.
`PEP 257 <http://www.python.org/dev/peps/pep-0257/>`_ out of the box, but it
should not be considered a reference implementation.

**pydocstyle** supports Python 3.6, 3.7, 3.8 and 3.9.
**pydocstyle** supports Python 3.6+.


Quick Start
Expand Down
3 changes: 2 additions & 1 deletion docs/release_notes.rst
Expand Up @@ -10,7 +10,8 @@ Current Development Version

New Features

* Add support for `property_decorators` config to ignore D401
* Add support for `property_decorators` config to ignore D401.
* Add support for Python 3.10 (#554).

6.1.1 - May 17th, 2021
---------------------------
Expand Down
3 changes: 1 addition & 2 deletions requirements/tests.txt
@@ -1,5 +1,4 @@
pytest==3.0.2
pytest-pep8==1.0.6
pytest==6.2.5
mypy==0.782
black==20.8b1
isort==5.4.2
1 change: 1 addition & 0 deletions setup.py
Expand Up @@ -30,6 +30,7 @@
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3 :: Only',
'Operating System :: OS Independent',
'License :: OSI Approved :: MIT License',
Expand Down
2 changes: 1 addition & 1 deletion src/tests/test_decorators.py
@@ -1,6 +1,6 @@
"""Unit test for pydocstyle module decorator handling.

Use tox or py.test to run the test suite.
Use tox or pytest to run the test suite.
"""

import io
Expand Down
2 changes: 1 addition & 1 deletion src/tests/test_integration.py
@@ -1,4 +1,4 @@
"""Use tox or py.test to run the test-suite."""
"""Use tox or pytest to run the test-suite."""

from collections import namedtuple

Expand Down
2 changes: 1 addition & 1 deletion src/tests/test_utils.py
@@ -1,6 +1,6 @@
"""Unit test for pydocstyle utils.

Use tox or py.test to run the test suite.
Use tox or pytest to run the test suite.
"""
from pydocstyle import utils

Expand Down
10 changes: 7 additions & 3 deletions tox.ini
Expand Up @@ -4,7 +4,7 @@
# install tox" and then run "tox" from this directory.

[tox]
envlist = {py36,py37,py38,py39}-{tests,install},docs,install,py36-docs
envlist = py{36,37,38,39,310}-{tests,install},docs,install,py36-docs

[testenv]
download = true
Expand All @@ -13,9 +13,9 @@ download = true
setenv =
LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8
# To pass arguments to py.test, use `tox [options] -- [pytest posargs]`.
# To pass arguments to pytest, use `tox [options] -- [pytest posargs]`.
commands =
py.test --pep8 --cache-clear -vv src/tests {posargs}
pytest --cache-clear -vv src/tests {posargs}
mypy --config-file=tox.ini src/
black --check src/pydocstyle
isort --check src/pydocstyle
Expand Down Expand Up @@ -61,6 +61,10 @@ commands = {[testenv:install]commands}
skip_install = {[testenv:install]skip_install}
commands = {[testenv:install]commands}

[testenv:py310-install]
skip_install = {[testenv:install]skip_install}
commands = {[testenv:install]commands}

[pytest]
pep8ignore =
test.py E701 E704
Expand Down