diff --git a/.flake8 b/.flake8 index 5e00723..8f045c4 100644 --- a/.flake8 +++ b/.flake8 @@ -1,7 +1,7 @@ [flake8] max-line-length = 99 max-doc-length = 99 -extend-ignore = E203,W503 +extend-ignore = E203,W503,E231,E201 per-file-ignores = tests/*:D205,D400 flake8_docstrings_complete/*:N802 diff --git a/.github/workflows/ci-cd.yaml b/.github/workflows/ci-cd.yaml index c8ea5b2..ba2b152 100644 --- a/.github/workflows/ci-cd.yaml +++ b/.github/workflows/ci-cd.yaml @@ -21,7 +21,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v4 with: - python-version: '3.11' + python-version: '3.13' - id: output run: | echo package_name=$(python -c 'import tomllib;from pathlib import Path;print(tomllib.loads(Path("pyproject.toml").read_text(encoding="utf-8"))["tool"]["poetry"]["name"])') >> $GITHUB_OUTPUT @@ -44,13 +44,15 @@ jobs: strategy: matrix: python-version: - - "3.8" - "3.9" - "3.10" - "3.11" + - "3.12" + - "3.13" env: - "test-flake85" - "test-flake86" + - "test-flake87" steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} @@ -94,10 +96,11 @@ jobs: strategy: matrix: python-version: - - "3.8" - "3.9" - "3.10" - "3.11" + - "3.12" + - "3.13" steps: - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 @@ -160,10 +163,11 @@ jobs: strategy: matrix: python-version: - - "3.8" - "3.9" - "3.10" - "3.11" + - "3.12" + - "3.13" steps: - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 diff --git a/CHANGELOG.md b/CHANGELOG.md index fda9ae5..174314d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ ## [Unreleased] +## [v1.4.1] - 2024-11-07 + +### Added + +- Support for Python 3.12 and 3.13 and Flake8 7. + ## [v1.4.0] - 2024-11-07 ### Added @@ -124,3 +130,4 @@ [v1.2.0]: https://github.com/jdkandersson/flake8-docstrings-complete/releases/v1.2.0 [v1.3.0]: https://github.com/jdkandersson/flake8-docstrings-complete/releases/v1.3.0 [v1.4.0]: https://github.com/jdkandersson/flake8-docstrings-complete/releases/v1.4.0 +[v1.4.1]: https://github.com/jdkandersson/flake8-docstrings-complete/releases/v1.4.1 diff --git a/pyproject.toml b/pyproject.toml index 5ce5b6b..b5692eb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "flake8-docstrings-complete" -version = "1.4.0" +version = "1.4.1" description = "A linter that checks docstrings are complete" authors = ["David Andersson "] license = "Apache 2.0" @@ -13,17 +13,17 @@ classifiers = [ "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.8", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Quality Assurance", ] [tool.poetry.dependencies] -python = "^3.8.1" +python = "^3.9.0" flake8 = ">= 5" [build-system] diff --git a/tox.ini b/tox.ini index 9e31e08..5c93251 100644 --- a/tox.ini +++ b/tox.ini @@ -50,15 +50,16 @@ commands = pylint {[vars]all_path} pydocstyle {[vars]src_path} -[testenv:test-flake8{5,6}] +[testenv:test-flake8{5,6,7}] description = Run tests deps = flake85: flake8>=5,<6 flake86: flake8>=6,<7 - pytest>=7,<8 - pytest-cov>=4,<5 + flake87: flake8>=7,<8 + pytest>=8,<9 + pytest-cov>=6,<7 astpretty>=3,<4 - coverage[toml]>=6,<7 + coverage[toml]>=7,<8 poetry commands = poetry install --only-root @@ -70,6 +71,6 @@ commands = [testenv:coverage-report] description = Create test coverage report deps = - coverage[toml]>=6,<7 + coverage[toml]>=7,<8 commands = coverage report