Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: drop support for Python3.6 #149

Merged
merged 1 commit into from
Jan 8, 2023
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@ jobs:
fail-fast: false
matrix:
python-version:
- "pypy-3.6-v7.3.3"
- "pypy-3.8-v7.3.10"
- "3.10"
- "3.9"
- "3.8"
- "3.7"
- "3.6"
os: [ubuntu-20.04]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
name: "${{ matrix.os }} Python: ${{ matrix.python-version }}"
steps:
Expand Down
8 changes: 8 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@ Or, if you want to use pyproject.toml to configure docformatter::

$ pip install --upgrade docformatter[tomli]

Or, if you want to use a release candidate (or any other tag)::

$ pip install git+https://github.com/PyCQA/docformatter.git@<RC_TAG>

Where <RC_TAG> is the release candidate tag you'd like to install. Release
candidate tags will have the format v1.6.0-rc.1 Release candidates will also be
made available as a Github Release.

Example
=======

Expand Down
58 changes: 19 additions & 39 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ classifiers=[
'Intended Audience :: Developers',
'Environment :: Console',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
Expand All @@ -32,50 +31,33 @@ packages = [{include = "docformatter", from = "src"}]
include = ["LICENSE"]

[tool.poetry.dependencies]
python = "^3.6"
charset_normalizer = "^2.0.0"
tomli = [
{version="<2.0.0", optional=true, python="<3.7"},
{version="^2.0.0", optional=true, python=">=3.7"},
]
python = "^3.7"
charset_normalizer = "^3.0.0"
tomli = {version = "^2.0.0", optional = true}
untokenize = "^0.1.1"

[tool.poetry.dev-dependencies]
autopep8 = "^1.7.0"
black = [
{version = "^22.0.0", python = ">=3.6.2"},
]
coverage = [
{extras = ["toml"], version = "^6.2.0", python = "<3.7"},
{extras = ["toml"], version = "^6.4.0", python = ">=3.7"},
]
isort = [
{version = "<5.10.0", python = "<3.6.1"},
{version = "^5.10.0", python = ">=3.6.1"},
]
autopep8 = "^2.0.0"
black = "^22.0.0"
coverage = {extras = ["toml"], version = "^6.4.0"}
isort = "^5.10.0"
mock = "^4.0.0"
mypy = "0.971"
mypy = "0.991"
pycodestyle = "^2.8.0"
pydocstyle = "^6.1.1"
pylint = [
{version = "^2.12.0", python = "<3.7.2"},
{version = "^2.14.0", python = ">=3.7.2"},
]
pytest = [
{version = "<7.1.0", python = "<3.7"},
{version = "^7.1.0", python = ">=3.7"},
]
pytest-cov = "^3.0.0"
rstcheck = [
{version = "<6.0.0", python = "<3.7"},
{version = "^6.1.0", python = ">=3.7"},
]
tox = "^3.25.0"
Sphinx = "^5.0.0"
twine = [
{version="<4.0.0", python = "<3.7"},
{version="^4.0.0", python = ">=3.7"},
pytest = "^7.1.0"
pytest-cov = "^4.0.0"
rstcheck = "^6.1.0"
tox = "<4.0.0"
Sphinx = [
{version = "5.3.0", python = "<3.8"},
{version = "^6.0.0", python = ">=3.8"},
]
twine = "^4.0.0"

[tool.poetry.extras]
tomli = ["tomli"]
Expand Down Expand Up @@ -153,7 +135,7 @@ output = 'coverage.xml'

[tool.black]
line-length = 79
target-version = ['py36', 'py37', 'py38', 'py39', 'py310']
target-version = ['py37', 'py38', 'py39', 'py310']
include = '\.pyi?$'
exclude = '''
/(
Expand Down Expand Up @@ -188,7 +170,6 @@ line_length = 79
legacy_tox_ini = """
[tox]
envlist =
py36
py37
py38
py39
Expand All @@ -202,12 +183,11 @@ skipsdist = true

[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.10: py310
pypy-3.6: pypy3
pypy-3.8: pypy3

[testenv]
description = run the test suite using pytest under {basepython}
Expand Down Expand Up @@ -243,7 +223,7 @@ commands =
coverage combine
coverage report -m
coverage xml -o {toxworkdir}/coverage.xml
depends = py36, py37, py38, py39, py310, pypy3
depends = py37, py38, py39, py310, pypy3

[testenv:style]
description = run autoformatters and style checkers
Expand Down
2 changes: 1 addition & 1 deletion tests/test_utility_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@


class TestFindPyFiles:
"""Class for testing the find_py_files() Function."""
"""Class for testing the find_py_files() function."""

@pytest.mark.unit
def test_is_hidden(self):
Expand Down