From 3cbf5466cdc5dee591fcc78781473c4baa672e45 Mon Sep 17 00:00:00 2001 From: "repo-helper[bot]" <74742576+repo-helper[bot]@users.noreply.github.com> Date: Tue, 16 Apr 2024 14:40:11 +0100 Subject: [PATCH 01/17] [repo-helper] Configuration Update (#68) * Updated files with 'repo_helper'. * Updated files with 'repo_helper'. --------- Co-authored-by: repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- doc-source/conf.py | 6 ++++++ formate.toml | 16 ++++++++-------- pyproject.toml | 29 +++++++++++++---------------- 4 files changed, 28 insertions(+), 25 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4335130..1939b69 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,7 +8,7 @@ ci: repos: - repo: https://github.com/repo-helper/pyproject-parser - rev: v0.9.1 + rev: v0.11.0 hooks: - id: reformat-pyproject diff --git a/doc-source/conf.py b/doc-source/conf.py index d894441..03e9c4d 100644 --- a/doc-source/conf.py +++ b/doc-source/conf.py @@ -74,8 +74,14 @@ def setup(app): # 3rd party from sphinx_toolbox.latex import better_header_layout + from sphinxemoji import sphinxemoji app.connect("config-inited", lambda app, config: better_header_layout(config)) + app.connect("build-finished", sphinxemoji.copy_asset_files) + app.add_js_file("https://unpkg.com/twemoji@latest/dist/twemoji.min.js") + app.add_js_file("twemoji.js") + app.add_css_file("twemoji.css") + app.add_transform(sphinxemoji.EmojiSubstitutions) needspace_amount = r"5\baselineskip" diff --git a/formate.toml b/formate.toml index 72ea626..82a7136 100644 --- a/formate.toml +++ b/formate.toml @@ -6,21 +6,17 @@ noqa-reformat = 60 ellipsis-reformat = 70 squish_stubs = 80 -[config] -indent = "\t" -line_length = 115 - [hooks.yapf] priority = 30 -[hooks.isort] -priority = 50 - [hooks.yapf.kwargs] yapf_style = ".style.yapf" +[hooks.isort] +priority = 50 + [hooks.isort.kwargs] -indent = "\t\t" +indent = " " multi_line_output = 8 import_heading_stdlib = "stdlib" import_heading_thirdparty = "3rd party" @@ -50,3 +46,7 @@ known_third_party = [ "requests", ] known_first_party = [ "flake8_dunder_all",] + +[config] +indent = " " +line_length = 115 diff --git a/pyproject.toml b/pyproject.toml index 1204cea..22ba51e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,6 @@ dynamic = [ "requires-python", "classifiers", "dependencies",] name = "Dominic Davis-Foster" email = "dominic@davis-foster.co.uk" - [project.license] file = "LICENSE" @@ -28,6 +27,9 @@ Documentation = "https://flake8-dunder-all.readthedocs.io/en/latest" ensure_dunder_all = "flake8_dunder_all.__main__:main" ensure-dunder-all = "flake8_dunder_all.__main__:main" +[project.entry-points."flake8.extension"] +DAL = "flake8_dunder_all:Plugin" + [tool.whey] base-classifiers = [ "Development Status :: 4 - Beta", @@ -63,7 +65,6 @@ extensions = [ "sphinx.ext.mathjax", "sphinxcontrib.extras_require", "sphinx.ext.todo", - "sphinxemoji.sphinxemoji", "notfound.extension", "sphinx_copybutton", "sphinxcontrib.default_values", @@ -77,7 +78,6 @@ extensions = [ "sphinx_toolbox.more_autosummary.column_widths", "sphinx_favicon", ] -sphinxemoji_style = "twemoji" gitstamp_fmt = "%d %b %Y" templates_path = [ "_templates",] html_static_path = [ "_static",] @@ -137,13 +137,20 @@ show_error_codes = true [tool.snippet-fmt] directives = [ "code-block",] +[tool.snippet-fmt.languages.python] +reformat = true + +[tool.snippet-fmt.languages.TOML] +reformat = true + +[tool.snippet-fmt.languages.ini] + +[tool.snippet-fmt.languages.json] + [tool.mkrecipe] conda-channels = [ "conda-forge", "domdfcoding",] extras = "all" -[project.entry-points."flake8.extension"] -DAL = "flake8_dunder_all:Plugin" - [tool.dependency-dash."requirements.txt"] order = 10 @@ -154,13 +161,3 @@ include = false [tool.dependency-dash."doc-source/requirements.txt"] order = 30 include = false - -[tool.snippet-fmt.languages.python] -reformat = true - -[tool.snippet-fmt.languages.TOML] -reformat = true - -[tool.snippet-fmt.languages.ini] - -[tool.snippet-fmt.languages.json] From 72d3c5f9d9b039ca13a306974c5f83359cd1cbb2 Mon Sep 17 00:00:00 2001 From: "repo-helper[bot]" <74742576+repo-helper[bot]@users.noreply.github.com> Date: Mon, 22 Apr 2024 15:43:02 +0000 Subject: [PATCH 02/17] Bump Python 3.13 alpha (#69) Co-authored-by: repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com> --- .github/workflows/python_ci.yml | 4 ++-- .github/workflows/python_ci_linux.yml | 4 ++-- .github/workflows/python_ci_macos.yml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/python_ci.yml b/.github/workflows/python_ci.yml index b4655ed..0308f62 100644 --- a/.github/workflows/python_ci.yml +++ b/.github/workflows/python_ci.yml @@ -22,7 +22,7 @@ jobs: runs-on: "windows-2019" continue-on-error: ${{ matrix.config.experimental }} env: - USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-alpha.5,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9' + USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-alpha.6,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9' strategy: fail-fast: False @@ -35,7 +35,7 @@ jobs: - {python-version: "3.10", testenvs: "py310-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.11", testenvs: "py311-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.12", testenvs: "py312-flake8{5,6,7},build", experimental: False} - - {python-version: "3.13.0-alpha.5", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} + - {python-version: "3.13.0-alpha.6", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} - {python-version: "pypy-3.6", testenvs: "pypy36-flake8{4,5}", experimental: False} - {python-version: "pypy-3.7", testenvs: "pypy37-flake8{4,5},build", experimental: False} - {python-version: "pypy-3.8", testenvs: "pypy38-flake8{4,5,6,7},build", experimental: False} diff --git a/.github/workflows/python_ci_linux.yml b/.github/workflows/python_ci_linux.yml index 178c720..e5cb909 100644 --- a/.github/workflows/python_ci_linux.yml +++ b/.github/workflows/python_ci_linux.yml @@ -23,7 +23,7 @@ jobs: runs-on: "ubuntu-20.04" continue-on-error: ${{ matrix.config.experimental }} env: - USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-alpha.5,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9' + USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-alpha.6,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9' strategy: fail-fast: False @@ -36,7 +36,7 @@ jobs: - {python-version: "3.10", testenvs: "py310-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.11", testenvs: "py311-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.12", testenvs: "py312-flake8{5,6,7},build", experimental: False} - - {python-version: "3.13.0-alpha.5", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} + - {python-version: "3.13.0-alpha.6", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} - {python-version: "pypy-3.6", testenvs: "pypy36-flake8{4,5},build", experimental: False} - {python-version: "pypy-3.7", testenvs: "pypy37-flake8{4,5},build", experimental: False} - {python-version: "pypy-3.8", testenvs: "pypy38-flake8{4,5,6,7},build", experimental: False} diff --git a/.github/workflows/python_ci_macos.yml b/.github/workflows/python_ci_macos.yml index 67e5454..6b3495a 100644 --- a/.github/workflows/python_ci_macos.yml +++ b/.github/workflows/python_ci_macos.yml @@ -22,7 +22,7 @@ jobs: runs-on: "macos-latest" continue-on-error: ${{ matrix.config.experimental }} env: - USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-alpha.5,pypy-3.7,pypy-3.8,pypy-3.9' + USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-alpha.6,pypy-3.7,pypy-3.8,pypy-3.9' strategy: fail-fast: False @@ -35,7 +35,7 @@ jobs: - {python-version: "3.10", testenvs: "py310-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.11", testenvs: "py311-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.12", testenvs: "py312-flake8{5,6,7},build", experimental: False} - - {python-version: "3.13.0-alpha.5", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} + - {python-version: "3.13.0-alpha.6", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} - {python-version: "pypy-3.7", testenvs: "pypy37-flake8{4,5},build", experimental: False} - {python-version: "pypy-3.8", testenvs: "pypy38-flake8{4,5,6,7},build", experimental: False} - {python-version: "pypy-3.9", testenvs: "pypy39-flake8{4,5,6,7},build", experimental: True} From 03761f0ee47e6bc8a4762e4f02f27d5c18e5cbda Mon Sep 17 00:00:00 2001 From: "repo-helper[bot]" <74742576+repo-helper[bot]@users.noreply.github.com> Date: Wed, 24 Apr 2024 16:26:21 +0100 Subject: [PATCH 03/17] Updated files with 'repo_helper'. (#70) Co-authored-by: repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com> --- .github/workflows/python_ci_macos.yml | 4 ++-- .pre-commit-config.yaml | 2 +- tox.ini | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python_ci_macos.yml b/.github/workflows/python_ci_macos.yml index 6b3495a..6461359 100644 --- a/.github/workflows/python_ci_macos.yml +++ b/.github/workflows/python_ci_macos.yml @@ -18,8 +18,8 @@ permissions: jobs: tests: - name: "macos-latest / Python ${{ matrix.config.python-version }}" - runs-on: "macos-latest" + name: "macos-13 / Python ${{ matrix.config.python-version }}" + runs-on: "macos-13" continue-on-error: ${{ matrix.config.experimental }} env: USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-alpha.6,pypy-3.7,pypy-3.8,pypy-3.9' diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1939b69..81e0889 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -43,7 +43,7 @@ repos: - id: bind-requirements - repo: https://github.com/domdfcoding/flake8-dunder-all - rev: v0.3.1 + rev: v0.4.1 hooks: - id: ensure-dunder-all files: ^flake8_dunder_all/.*\.py$ diff --git a/tox.ini b/tox.ini index 39d881a..d7a3a68 100644 --- a/tox.ini +++ b/tox.ini @@ -104,6 +104,7 @@ setenv = PYTHONDEVMODE=1 PIP_DISABLE_PIP_VERSION_CHECK=1 PIP_PREFER_BINARY=1 + UNSAFE_PYO3_SKIP_VERSION_CHECK=1 skip_install = True changedir = {toxinidir} deps = From a05cc36bc8410d7c2f814ec435a1596801b7670d Mon Sep 17 00:00:00 2001 From: "repo-helper[bot]" <74742576+repo-helper[bot]@users.noreply.github.com> Date: Wed, 15 May 2024 16:09:48 +0100 Subject: [PATCH 04/17] [repo-helper] Configuration Update (#71) * Updated files with 'repo_helper'. * Updated files with 'repo_helper'. --------- Co-authored-by: repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com> --- .github/workflows/python_ci.yml | 4 ++-- .github/workflows/python_ci_linux.yml | 4 ++-- .github/workflows/python_ci_macos.yml | 4 ++-- pyproject.toml | 6 +++--- tox.ini | 2 ++ 5 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/python_ci.yml b/.github/workflows/python_ci.yml index 0308f62..76eff5b 100644 --- a/.github/workflows/python_ci.yml +++ b/.github/workflows/python_ci.yml @@ -22,7 +22,7 @@ jobs: runs-on: "windows-2019" continue-on-error: ${{ matrix.config.experimental }} env: - USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-alpha.6,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9' + USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-beta.1,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9' strategy: fail-fast: False @@ -35,7 +35,7 @@ jobs: - {python-version: "3.10", testenvs: "py310-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.11", testenvs: "py311-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.12", testenvs: "py312-flake8{5,6,7},build", experimental: False} - - {python-version: "3.13.0-alpha.6", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} + - {python-version: "3.13.0-beta.1", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} - {python-version: "pypy-3.6", testenvs: "pypy36-flake8{4,5}", experimental: False} - {python-version: "pypy-3.7", testenvs: "pypy37-flake8{4,5},build", experimental: False} - {python-version: "pypy-3.8", testenvs: "pypy38-flake8{4,5,6,7},build", experimental: False} diff --git a/.github/workflows/python_ci_linux.yml b/.github/workflows/python_ci_linux.yml index e5cb909..839ee0b 100644 --- a/.github/workflows/python_ci_linux.yml +++ b/.github/workflows/python_ci_linux.yml @@ -23,7 +23,7 @@ jobs: runs-on: "ubuntu-20.04" continue-on-error: ${{ matrix.config.experimental }} env: - USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-alpha.6,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9' + USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-beta.1,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9' strategy: fail-fast: False @@ -36,7 +36,7 @@ jobs: - {python-version: "3.10", testenvs: "py310-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.11", testenvs: "py311-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.12", testenvs: "py312-flake8{5,6,7},build", experimental: False} - - {python-version: "3.13.0-alpha.6", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} + - {python-version: "3.13.0-beta.1", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} - {python-version: "pypy-3.6", testenvs: "pypy36-flake8{4,5},build", experimental: False} - {python-version: "pypy-3.7", testenvs: "pypy37-flake8{4,5},build", experimental: False} - {python-version: "pypy-3.8", testenvs: "pypy38-flake8{4,5,6,7},build", experimental: False} diff --git a/.github/workflows/python_ci_macos.yml b/.github/workflows/python_ci_macos.yml index 6461359..f76c141 100644 --- a/.github/workflows/python_ci_macos.yml +++ b/.github/workflows/python_ci_macos.yml @@ -22,7 +22,7 @@ jobs: runs-on: "macos-13" continue-on-error: ${{ matrix.config.experimental }} env: - USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-alpha.6,pypy-3.7,pypy-3.8,pypy-3.9' + USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-beta.1,pypy-3.7,pypy-3.8,pypy-3.9' strategy: fail-fast: False @@ -35,7 +35,7 @@ jobs: - {python-version: "3.10", testenvs: "py310-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.11", testenvs: "py311-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.12", testenvs: "py312-flake8{5,6,7},build", experimental: False} - - {python-version: "3.13.0-alpha.6", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} + - {python-version: "3.13.0-beta.1", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} - {python-version: "pypy-3.7", testenvs: "pypy37-flake8{4,5},build", experimental: False} - {python-version: "pypy-3.8", testenvs: "pypy38-flake8{4,5,6,7},build", experimental: False} - {python-version: "pypy-3.9", testenvs: "pypy39-flake8{4,5,6,7},build", experimental: True} diff --git a/pyproject.toml b/pyproject.toml index 22ba51e..4bcc212 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,13 +10,13 @@ readme = "README.rst" keywords = [ "flake8",] dynamic = [ "requires-python", "classifiers", "dependencies",] +[project.license] +file = "LICENSE" + [[project.authors]] name = "Dominic Davis-Foster" email = "dominic@davis-foster.co.uk" -[project.license] -file = "LICENSE" - [project.urls] Homepage = "https://github.com/python-formate/flake8-dunder-all" "Issue Tracker" = "https://github.com/python-formate/flake8-dunder-all/issues" diff --git a/tox.ini b/tox.ini index d7a3a68..76e7475 100644 --- a/tox.ini +++ b/tox.ini @@ -85,6 +85,7 @@ setenv = setenv = PYTHONDEVMODE=1 PIP_DISABLE_PIP_VERSION_CHECK=1 + UNSAFE_PYO3_SKIP_VERSION_CHECK=1 [testenv:py312] setenv = @@ -253,6 +254,7 @@ setenv = setenv = PYTHONDEVMODE=1 PIP_DISABLE_PIP_VERSION_CHECK=1 + UNSAFE_PYO3_SKIP_VERSION_CHECK=1 [testenv:py312-flake8{4,5,6}] setenv = From 25df0e3aeba8b6d5af1c67230566ece13e554198 Mon Sep 17 00:00:00 2001 From: "repo-helper[bot]" <74742576+repo-helper[bot]@users.noreply.github.com> Date: Wed, 12 Jun 2024 10:50:56 +0100 Subject: [PATCH 05/17] Bump Python 3.13 prerelease in GHA (#72) Co-authored-by: repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com> --- .github/workflows/python_ci.yml | 4 ++-- .github/workflows/python_ci_linux.yml | 4 ++-- .github/workflows/python_ci_macos.yml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/python_ci.yml b/.github/workflows/python_ci.yml index 76eff5b..956ee95 100644 --- a/.github/workflows/python_ci.yml +++ b/.github/workflows/python_ci.yml @@ -22,7 +22,7 @@ jobs: runs-on: "windows-2019" continue-on-error: ${{ matrix.config.experimental }} env: - USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-beta.1,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9' + USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-beta.2,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9' strategy: fail-fast: False @@ -35,7 +35,7 @@ jobs: - {python-version: "3.10", testenvs: "py310-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.11", testenvs: "py311-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.12", testenvs: "py312-flake8{5,6,7},build", experimental: False} - - {python-version: "3.13.0-beta.1", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} + - {python-version: "3.13.0-beta.2", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} - {python-version: "pypy-3.6", testenvs: "pypy36-flake8{4,5}", experimental: False} - {python-version: "pypy-3.7", testenvs: "pypy37-flake8{4,5},build", experimental: False} - {python-version: "pypy-3.8", testenvs: "pypy38-flake8{4,5,6,7},build", experimental: False} diff --git a/.github/workflows/python_ci_linux.yml b/.github/workflows/python_ci_linux.yml index 839ee0b..4d1641e 100644 --- a/.github/workflows/python_ci_linux.yml +++ b/.github/workflows/python_ci_linux.yml @@ -23,7 +23,7 @@ jobs: runs-on: "ubuntu-20.04" continue-on-error: ${{ matrix.config.experimental }} env: - USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-beta.1,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9' + USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-beta.2,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9' strategy: fail-fast: False @@ -36,7 +36,7 @@ jobs: - {python-version: "3.10", testenvs: "py310-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.11", testenvs: "py311-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.12", testenvs: "py312-flake8{5,6,7},build", experimental: False} - - {python-version: "3.13.0-beta.1", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} + - {python-version: "3.13.0-beta.2", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} - {python-version: "pypy-3.6", testenvs: "pypy36-flake8{4,5},build", experimental: False} - {python-version: "pypy-3.7", testenvs: "pypy37-flake8{4,5},build", experimental: False} - {python-version: "pypy-3.8", testenvs: "pypy38-flake8{4,5,6,7},build", experimental: False} diff --git a/.github/workflows/python_ci_macos.yml b/.github/workflows/python_ci_macos.yml index f76c141..b5c9e8c 100644 --- a/.github/workflows/python_ci_macos.yml +++ b/.github/workflows/python_ci_macos.yml @@ -22,7 +22,7 @@ jobs: runs-on: "macos-13" continue-on-error: ${{ matrix.config.experimental }} env: - USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-beta.1,pypy-3.7,pypy-3.8,pypy-3.9' + USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-beta.2,pypy-3.7,pypy-3.8,pypy-3.9' strategy: fail-fast: False @@ -35,7 +35,7 @@ jobs: - {python-version: "3.10", testenvs: "py310-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.11", testenvs: "py311-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.12", testenvs: "py312-flake8{5,6,7},build", experimental: False} - - {python-version: "3.13.0-beta.1", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} + - {python-version: "3.13.0-beta.2", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} - {python-version: "pypy-3.7", testenvs: "pypy37-flake8{4,5},build", experimental: False} - {python-version: "pypy-3.8", testenvs: "pypy38-flake8{4,5,6,7},build", experimental: False} - {python-version: "pypy-3.9", testenvs: "pypy39-flake8{4,5,6,7},build", experimental: True} From 9fd4011077ecfc3f225b72233e20ba46fc1d285d Mon Sep 17 00:00:00 2001 From: "repo-helper[bot]" <74742576+repo-helper[bot]@users.noreply.github.com> Date: Wed, 19 Jun 2024 10:09:26 +0100 Subject: [PATCH 06/17] [repo-helper] Configuration Update (#73) * Updated files with 'repo_helper'. * Updated files with 'repo_helper'. --------- Co-authored-by: repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com> --- .github/workflows/conda_ci.yml | 7 ++++--- .github/workflows/python_ci.yml | 2 +- .github/workflows/python_ci_linux.yml | 7 ++++--- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/conda_ci.yml b/.github/workflows/conda_ci.yml index f600213..90b5198 100644 --- a/.github/workflows/conda_ci.yml +++ b/.github/workflows/conda_ci.yml @@ -24,14 +24,15 @@ jobs: - name: Setup Python 🐍 uses: "actions/setup-python@v5" with: - python-version: "3.8" + python-version: "3.11" - name: Setup Conda - uses: conda-incubator/setup-miniconda@v2 + uses: conda-incubator/setup-miniconda@v2.1.1 with: activate-environment: env conda-build-version: 3.28.4 - python-version: "3.8" + miniconda-version: py311_24.1.2-0 + python-version: "3.11" miniforge-variant: Mambaforge - name: Install dependencies 🔧 diff --git a/.github/workflows/python_ci.yml b/.github/workflows/python_ci.yml index 956ee95..84c943d 100644 --- a/.github/workflows/python_ci.yml +++ b/.github/workflows/python_ci.yml @@ -39,7 +39,7 @@ jobs: - {python-version: "pypy-3.6", testenvs: "pypy36-flake8{4,5}", experimental: False} - {python-version: "pypy-3.7", testenvs: "pypy37-flake8{4,5},build", experimental: False} - {python-version: "pypy-3.8", testenvs: "pypy38-flake8{4,5,6,7},build", experimental: False} - - {python-version: "pypy-3.9", testenvs: "pypy39-flake8{4,5,6,7},build", experimental: True} + - {python-version: "pypy-3.9-v7.3.15", testenvs: "pypy39-flake8{4,5,6,7},build", experimental: True} steps: - name: Checkout 🛎️ diff --git a/.github/workflows/python_ci_linux.yml b/.github/workflows/python_ci_linux.yml index 4d1641e..03e3782 100644 --- a/.github/workflows/python_ci_linux.yml +++ b/.github/workflows/python_ci_linux.yml @@ -188,14 +188,15 @@ jobs: - name: Setup Python 🐍 uses: "actions/setup-python@v5" with: - python-version: 3.8 + python-version: 3.11 - name: Setup Conda - uses: conda-incubator/setup-miniconda@v2 + uses: conda-incubator/setup-miniconda@v2.1.1 with: activate-environment: env conda-build-version: 3.28.4 - python-version: "3.8" + miniconda-version: py311_24.1.2-0 + python-version: "3.11" miniforge-variant: Mambaforge - name: Install dependencies 🔧 From e48272a29193328074b3063904b1b9add04444b2 Mon Sep 17 00:00:00 2001 From: "repo-helper[bot]" <74742576+repo-helper[bot]@users.noreply.github.com> Date: Tue, 2 Jul 2024 11:01:41 +0100 Subject: [PATCH 07/17] Updated files with 'repo_helper'. (#74) Co-authored-by: repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com> --- .github/workflows/python_ci.yml | 4 ++-- .github/workflows/python_ci_linux.yml | 4 ++-- .github/workflows/python_ci_macos.yml | 4 ++-- doc-source/conf.py | 17 ++++++++++++++++- doc-source/requirements.txt | 6 ++++++ 5 files changed, 28 insertions(+), 7 deletions(-) diff --git a/.github/workflows/python_ci.yml b/.github/workflows/python_ci.yml index 84c943d..d90d910 100644 --- a/.github/workflows/python_ci.yml +++ b/.github/workflows/python_ci.yml @@ -22,7 +22,7 @@ jobs: runs-on: "windows-2019" continue-on-error: ${{ matrix.config.experimental }} env: - USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-beta.2,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9' + USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-beta.3,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9' strategy: fail-fast: False @@ -35,7 +35,7 @@ jobs: - {python-version: "3.10", testenvs: "py310-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.11", testenvs: "py311-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.12", testenvs: "py312-flake8{5,6,7},build", experimental: False} - - {python-version: "3.13.0-beta.2", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} + - {python-version: "3.13.0-beta.3", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} - {python-version: "pypy-3.6", testenvs: "pypy36-flake8{4,5}", experimental: False} - {python-version: "pypy-3.7", testenvs: "pypy37-flake8{4,5},build", experimental: False} - {python-version: "pypy-3.8", testenvs: "pypy38-flake8{4,5,6,7},build", experimental: False} diff --git a/.github/workflows/python_ci_linux.yml b/.github/workflows/python_ci_linux.yml index 03e3782..9997732 100644 --- a/.github/workflows/python_ci_linux.yml +++ b/.github/workflows/python_ci_linux.yml @@ -23,7 +23,7 @@ jobs: runs-on: "ubuntu-20.04" continue-on-error: ${{ matrix.config.experimental }} env: - USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-beta.2,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9' + USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-beta.3,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9' strategy: fail-fast: False @@ -36,7 +36,7 @@ jobs: - {python-version: "3.10", testenvs: "py310-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.11", testenvs: "py311-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.12", testenvs: "py312-flake8{5,6,7},build", experimental: False} - - {python-version: "3.13.0-beta.2", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} + - {python-version: "3.13.0-beta.3", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} - {python-version: "pypy-3.6", testenvs: "pypy36-flake8{4,5},build", experimental: False} - {python-version: "pypy-3.7", testenvs: "pypy37-flake8{4,5},build", experimental: False} - {python-version: "pypy-3.8", testenvs: "pypy38-flake8{4,5,6,7},build", experimental: False} diff --git a/.github/workflows/python_ci_macos.yml b/.github/workflows/python_ci_macos.yml index b5c9e8c..ee03200 100644 --- a/.github/workflows/python_ci_macos.yml +++ b/.github/workflows/python_ci_macos.yml @@ -22,7 +22,7 @@ jobs: runs-on: "macos-13" continue-on-error: ${{ matrix.config.experimental }} env: - USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-beta.2,pypy-3.7,pypy-3.8,pypy-3.9' + USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-beta.3,pypy-3.7,pypy-3.8,pypy-3.9' strategy: fail-fast: False @@ -35,7 +35,7 @@ jobs: - {python-version: "3.10", testenvs: "py310-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.11", testenvs: "py311-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.12", testenvs: "py312-flake8{5,6,7},build", experimental: False} - - {python-version: "3.13.0-beta.2", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} + - {python-version: "3.13.0-beta.3", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} - {python-version: "pypy-3.7", testenvs: "pypy37-flake8{4,5},build", experimental: False} - {python-version: "pypy-3.8", testenvs: "pypy38-flake8{4,5,6,7},build", experimental: False} - {python-version: "pypy-3.9", testenvs: "pypy39-flake8{4,5,6,7},build", experimental: True} diff --git a/doc-source/conf.py b/doc-source/conf.py index 03e9c4d..4ae01b2 100644 --- a/doc-source/conf.py +++ b/doc-source/conf.py @@ -71,13 +71,28 @@ } +# Fix for pathlib issue with sphinxemoji on Python 3.9 and Sphinx 4.x +def copy_asset_files(app, exc): + # 3rd party + from domdf_python_tools.compat import importlib_resources + from sphinx.util.fileutil import copy_asset + + if exc: + return + + asset_files = ["twemoji.js", "twemoji.css"] + for path in asset_files: + path_str = os.fspath(importlib_resources.files("sphinxemoji") / path) + copy_asset(path_str, os.path.join(app.outdir, "_static")) + + def setup(app): # 3rd party from sphinx_toolbox.latex import better_header_layout from sphinxemoji import sphinxemoji app.connect("config-inited", lambda app, config: better_header_layout(config)) - app.connect("build-finished", sphinxemoji.copy_asset_files) + app.connect("build-finished", copy_asset_files) app.add_js_file("https://unpkg.com/twemoji@latest/dist/twemoji.min.js") app.add_js_file("twemoji.js") app.add_css_file("twemoji.css") diff --git a/doc-source/requirements.txt b/doc-source/requirements.txt index 397c364..92d7762 100644 --- a/doc-source/requirements.txt +++ b/doc-source/requirements.txt @@ -16,7 +16,13 @@ sphinx-prompt>=1.1.0 sphinx-pyproject>=0.1.0 sphinx-tabs>=1.1.13 sphinx-toolbox>=3.5.0 +sphinxcontrib-applehelp==1.0.4 +sphinxcontrib-devhelp==1.0.2 +sphinxcontrib-htmlhelp==2.0.1 sphinxcontrib-httpdomain>=1.7.0 +sphinxcontrib-jsmath==1.0.1 +sphinxcontrib-qthelp==1.0.3 +sphinxcontrib-serializinghtml==1.1.5 sphinxemoji>=0.1.6 tabulate>=0.8.7 toctree-plus>=0.6.1 From d6ab3266ef8122f8e869e9104b9cc294e30b3002 Mon Sep 17 00:00:00 2001 From: "repo-helper[bot]" <74742576+repo-helper[bot]@users.noreply.github.com> Date: Fri, 26 Jul 2024 12:12:36 +0100 Subject: [PATCH 08/17] [repo-helper] Configuration Update (#75) * Updated files with 'repo_helper'. * Updated files with 'repo_helper'. --------- Co-authored-by: repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com> --- .github/workflows/python_ci.yml | 4 ++-- .github/workflows/python_ci_linux.yml | 4 ++-- .github/workflows/python_ci_macos.yml | 4 ++-- doc-source/requirements.txt | 2 -- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/python_ci.yml b/.github/workflows/python_ci.yml index d90d910..c3b64d9 100644 --- a/.github/workflows/python_ci.yml +++ b/.github/workflows/python_ci.yml @@ -22,7 +22,7 @@ jobs: runs-on: "windows-2019" continue-on-error: ${{ matrix.config.experimental }} env: - USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-beta.3,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9' + USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-beta.4,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9' strategy: fail-fast: False @@ -35,7 +35,7 @@ jobs: - {python-version: "3.10", testenvs: "py310-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.11", testenvs: "py311-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.12", testenvs: "py312-flake8{5,6,7},build", experimental: False} - - {python-version: "3.13.0-beta.3", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} + - {python-version: "3.13.0-beta.4", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} - {python-version: "pypy-3.6", testenvs: "pypy36-flake8{4,5}", experimental: False} - {python-version: "pypy-3.7", testenvs: "pypy37-flake8{4,5},build", experimental: False} - {python-version: "pypy-3.8", testenvs: "pypy38-flake8{4,5,6,7},build", experimental: False} diff --git a/.github/workflows/python_ci_linux.yml b/.github/workflows/python_ci_linux.yml index 9997732..ac2748f 100644 --- a/.github/workflows/python_ci_linux.yml +++ b/.github/workflows/python_ci_linux.yml @@ -23,7 +23,7 @@ jobs: runs-on: "ubuntu-20.04" continue-on-error: ${{ matrix.config.experimental }} env: - USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-beta.3,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9' + USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-beta.4,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9' strategy: fail-fast: False @@ -36,7 +36,7 @@ jobs: - {python-version: "3.10", testenvs: "py310-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.11", testenvs: "py311-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.12", testenvs: "py312-flake8{5,6,7},build", experimental: False} - - {python-version: "3.13.0-beta.3", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} + - {python-version: "3.13.0-beta.4", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} - {python-version: "pypy-3.6", testenvs: "pypy36-flake8{4,5},build", experimental: False} - {python-version: "pypy-3.7", testenvs: "pypy37-flake8{4,5},build", experimental: False} - {python-version: "pypy-3.8", testenvs: "pypy38-flake8{4,5,6,7},build", experimental: False} diff --git a/.github/workflows/python_ci_macos.yml b/.github/workflows/python_ci_macos.yml index ee03200..4d8b787 100644 --- a/.github/workflows/python_ci_macos.yml +++ b/.github/workflows/python_ci_macos.yml @@ -22,7 +22,7 @@ jobs: runs-on: "macos-13" continue-on-error: ${{ matrix.config.experimental }} env: - USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-beta.3,pypy-3.7,pypy-3.8,pypy-3.9' + USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-beta.4,pypy-3.7,pypy-3.8,pypy-3.9' strategy: fail-fast: False @@ -35,7 +35,7 @@ jobs: - {python-version: "3.10", testenvs: "py310-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.11", testenvs: "py311-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.12", testenvs: "py312-flake8{5,6,7},build", experimental: False} - - {python-version: "3.13.0-beta.3", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} + - {python-version: "3.13.0-beta.4", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} - {python-version: "pypy-3.7", testenvs: "pypy37-flake8{4,5},build", experimental: False} - {python-version: "pypy-3.8", testenvs: "pypy38-flake8{4,5,6,7},build", experimental: False} - {python-version: "pypy-3.9", testenvs: "pypy39-flake8{4,5,6,7},build", experimental: True} diff --git a/doc-source/requirements.txt b/doc-source/requirements.txt index 92d7762..ccc1c24 100644 --- a/doc-source/requirements.txt +++ b/doc-source/requirements.txt @@ -12,9 +12,7 @@ sphinx-debuginfo>=0.2.2 sphinx-favicon>=0.2 sphinx-licenseinfo>=0.3.1 sphinx-notfound-page>=0.7.1 -sphinx-prompt>=1.1.0 sphinx-pyproject>=0.1.0 -sphinx-tabs>=1.1.13 sphinx-toolbox>=3.5.0 sphinxcontrib-applehelp==1.0.4 sphinxcontrib-devhelp==1.0.2 From 54e4a5f877744fbd18688195dcecbfb498aabaa0 Mon Sep 17 00:00:00 2001 From: "repo-helper[bot]" <74742576+repo-helper[bot]@users.noreply.github.com> Date: Mon, 12 Aug 2024 15:09:28 +0100 Subject: [PATCH 09/17] Bump Python 3.13 prerelease (#76) Co-authored-by: repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com> --- .github/workflows/python_ci.yml | 4 ++-- .github/workflows/python_ci_linux.yml | 4 ++-- .github/workflows/python_ci_macos.yml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/python_ci.yml b/.github/workflows/python_ci.yml index c3b64d9..55ea14c 100644 --- a/.github/workflows/python_ci.yml +++ b/.github/workflows/python_ci.yml @@ -22,7 +22,7 @@ jobs: runs-on: "windows-2019" continue-on-error: ${{ matrix.config.experimental }} env: - USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-beta.4,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9' + USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-rc.1,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9' strategy: fail-fast: False @@ -35,7 +35,7 @@ jobs: - {python-version: "3.10", testenvs: "py310-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.11", testenvs: "py311-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.12", testenvs: "py312-flake8{5,6,7},build", experimental: False} - - {python-version: "3.13.0-beta.4", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} + - {python-version: "3.13.0-rc.1", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} - {python-version: "pypy-3.6", testenvs: "pypy36-flake8{4,5}", experimental: False} - {python-version: "pypy-3.7", testenvs: "pypy37-flake8{4,5},build", experimental: False} - {python-version: "pypy-3.8", testenvs: "pypy38-flake8{4,5,6,7},build", experimental: False} diff --git a/.github/workflows/python_ci_linux.yml b/.github/workflows/python_ci_linux.yml index ac2748f..828bb14 100644 --- a/.github/workflows/python_ci_linux.yml +++ b/.github/workflows/python_ci_linux.yml @@ -23,7 +23,7 @@ jobs: runs-on: "ubuntu-20.04" continue-on-error: ${{ matrix.config.experimental }} env: - USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-beta.4,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9' + USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-rc.1,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9' strategy: fail-fast: False @@ -36,7 +36,7 @@ jobs: - {python-version: "3.10", testenvs: "py310-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.11", testenvs: "py311-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.12", testenvs: "py312-flake8{5,6,7},build", experimental: False} - - {python-version: "3.13.0-beta.4", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} + - {python-version: "3.13.0-rc.1", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} - {python-version: "pypy-3.6", testenvs: "pypy36-flake8{4,5},build", experimental: False} - {python-version: "pypy-3.7", testenvs: "pypy37-flake8{4,5},build", experimental: False} - {python-version: "pypy-3.8", testenvs: "pypy38-flake8{4,5,6,7},build", experimental: False} diff --git a/.github/workflows/python_ci_macos.yml b/.github/workflows/python_ci_macos.yml index 4d8b787..944271c 100644 --- a/.github/workflows/python_ci_macos.yml +++ b/.github/workflows/python_ci_macos.yml @@ -22,7 +22,7 @@ jobs: runs-on: "macos-13" continue-on-error: ${{ matrix.config.experimental }} env: - USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-beta.4,pypy-3.7,pypy-3.8,pypy-3.9' + USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-rc.1,pypy-3.7,pypy-3.8,pypy-3.9' strategy: fail-fast: False @@ -35,7 +35,7 @@ jobs: - {python-version: "3.10", testenvs: "py310-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.11", testenvs: "py311-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.12", testenvs: "py312-flake8{5,6,7},build", experimental: False} - - {python-version: "3.13.0-beta.4", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} + - {python-version: "3.13.0-rc.1", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} - {python-version: "pypy-3.7", testenvs: "pypy37-flake8{4,5},build", experimental: False} - {python-version: "pypy-3.8", testenvs: "pypy38-flake8{4,5,6,7},build", experimental: False} - {python-version: "pypy-3.9", testenvs: "pypy39-flake8{4,5,6,7},build", experimental: True} From 33cd184d447151e3c87c6c170f089d6ae28b8b56 Mon Sep 17 00:00:00 2001 From: "repo-helper[bot]" <74742576+repo-helper[bot]@users.noreply.github.com> Date: Tue, 8 Oct 2024 22:38:25 +0100 Subject: [PATCH 10/17] Updated files with 'repo_helper'. (#77) Co-authored-by: repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com> --- .github/workflows/python_ci.yml | 4 ++-- .github/workflows/python_ci_linux.yml | 4 ++-- .github/workflows/python_ci_macos.yml | 4 ++-- .pre-commit-config.yaml | 6 +++--- tox.ini | 3 +++ 5 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/python_ci.yml b/.github/workflows/python_ci.yml index 55ea14c..98522ae 100644 --- a/.github/workflows/python_ci.yml +++ b/.github/workflows/python_ci.yml @@ -22,7 +22,7 @@ jobs: runs-on: "windows-2019" continue-on-error: ${{ matrix.config.experimental }} env: - USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-rc.1,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9' + USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9' strategy: fail-fast: False @@ -35,7 +35,7 @@ jobs: - {python-version: "3.10", testenvs: "py310-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.11", testenvs: "py311-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.12", testenvs: "py312-flake8{5,6,7},build", experimental: False} - - {python-version: "3.13.0-rc.1", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} + - {python-version: "3.13", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} - {python-version: "pypy-3.6", testenvs: "pypy36-flake8{4,5}", experimental: False} - {python-version: "pypy-3.7", testenvs: "pypy37-flake8{4,5},build", experimental: False} - {python-version: "pypy-3.8", testenvs: "pypy38-flake8{4,5,6,7},build", experimental: False} diff --git a/.github/workflows/python_ci_linux.yml b/.github/workflows/python_ci_linux.yml index 828bb14..de266e3 100644 --- a/.github/workflows/python_ci_linux.yml +++ b/.github/workflows/python_ci_linux.yml @@ -23,7 +23,7 @@ jobs: runs-on: "ubuntu-20.04" continue-on-error: ${{ matrix.config.experimental }} env: - USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-rc.1,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9' + USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9' strategy: fail-fast: False @@ -36,7 +36,7 @@ jobs: - {python-version: "3.10", testenvs: "py310-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.11", testenvs: "py311-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.12", testenvs: "py312-flake8{5,6,7},build", experimental: False} - - {python-version: "3.13.0-rc.1", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} + - {python-version: "3.13", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} - {python-version: "pypy-3.6", testenvs: "pypy36-flake8{4,5},build", experimental: False} - {python-version: "pypy-3.7", testenvs: "pypy37-flake8{4,5},build", experimental: False} - {python-version: "pypy-3.8", testenvs: "pypy38-flake8{4,5,6,7},build", experimental: False} diff --git a/.github/workflows/python_ci_macos.yml b/.github/workflows/python_ci_macos.yml index 944271c..3806d3b 100644 --- a/.github/workflows/python_ci_macos.yml +++ b/.github/workflows/python_ci_macos.yml @@ -22,7 +22,7 @@ jobs: runs-on: "macos-13" continue-on-error: ${{ matrix.config.experimental }} env: - USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-rc.1,pypy-3.7,pypy-3.8,pypy-3.9' + USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13,pypy-3.7,pypy-3.8,pypy-3.9' strategy: fail-fast: False @@ -35,7 +35,7 @@ jobs: - {python-version: "3.10", testenvs: "py310-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.11", testenvs: "py311-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.12", testenvs: "py312-flake8{5,6,7},build", experimental: False} - - {python-version: "3.13.0-rc.1", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} + - {python-version: "3.13", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} - {python-version: "pypy-3.7", testenvs: "pypy37-flake8{4,5},build", experimental: False} - {python-version: "pypy-3.8", testenvs: "pypy38-flake8{4,5,6,7},build", experimental: False} - {python-version: "pypy-3.9", testenvs: "pypy39-flake8{4,5,6,7},build", experimental: True} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 81e0889..a7b8e0f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,7 +8,7 @@ ci: repos: - repo: https://github.com/repo-helper/pyproject-parser - rev: v0.11.0 + rev: v0.11.1 hooks: - id: reformat-pyproject @@ -42,7 +42,7 @@ repos: exclude: ^(doc-source/conf|__pkginfo__|setup|tests/.*)\.py$ - id: bind-requirements - - repo: https://github.com/domdfcoding/flake8-dunder-all + - repo: https://github.com/python-formate/flake8-dunder-all rev: v0.4.1 hooks: - id: ensure-dunder-all @@ -86,7 +86,7 @@ repos: - id: formate exclude: ^(doc-source/conf|__pkginfo__|setup)\.(_)?py$ - - repo: https://github.com/domdfcoding/dep_checker + - repo: https://github.com/python-coincidence/dep_checker rev: v0.8.0 hooks: - id: dep_checker diff --git a/tox.ini b/tox.ini index 76e7475..63c62e7 100644 --- a/tox.ini +++ b/tox.ini @@ -5,6 +5,7 @@ # * testenv # * testenv:.package # * testenv:py313-dev +# * testenv:py313 # * testenv:py312-dev # * testenv:py312 # * testenv:docs @@ -82,12 +83,14 @@ setenv = PIP_DISABLE_PIP_VERSION_CHECK=1 [testenv:py313-dev] +download = True setenv = PYTHONDEVMODE=1 PIP_DISABLE_PIP_VERSION_CHECK=1 UNSAFE_PYO3_SKIP_VERSION_CHECK=1 [testenv:py312] +download = True setenv = PYTHONDEVMODE=1 PIP_DISABLE_PIP_VERSION_CHECK=1 From b685d2759cd641a1246c33c731bb534cb7ceb814 Mon Sep 17 00:00:00 2001 From: "repo-helper[bot]" <74742576+repo-helper[bot]@users.noreply.github.com> Date: Thu, 13 Feb 2025 11:17:35 +0000 Subject: [PATCH 11/17] [repo-helper] Configuration Update (#78) * Updated files with 'repo_helper'. * Updated files with 'repo_helper'. --------- Co-authored-by: repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- README.rst | 2 +- doc-source/index.rst | 2 +- tox.ini | 2 ++ 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a7b8e0f..e258593 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -81,7 +81,7 @@ repos: - id: snippet-fmt - repo: https://github.com/python-formate/formate - rev: v0.7.0 + rev: v0.8.0 hooks: - id: formate exclude: ^(doc-source/conf|__pkginfo__|setup)\.(_)?py$ diff --git a/README.rst b/README.rst index 442b8b3..2c9f069 100644 --- a/README.rst +++ b/README.rst @@ -109,7 +109,7 @@ flake8-dunder-all :target: https://github.com/python-formate/flake8-dunder-all/commit/master :alt: GitHub last commit -.. |maintained| image:: https://img.shields.io/maintenance/yes/2024 +.. |maintained| image:: https://img.shields.io/maintenance/yes/2025 :alt: Maintenance .. |pypi-downloads| image:: https://img.shields.io/pypi/dm/flake8-dunder-all diff --git a/doc-source/index.rst b/doc-source/index.rst index 26b4ce9..63aeeff 100644 --- a/doc-source/index.rst +++ b/doc-source/index.rst @@ -114,7 +114,7 @@ flake8-dunder-all :last-commit: :alt: GitHub last commit - .. |maintained| maintained-shield:: 2024 + .. |maintained| maintained-shield:: 2025 :alt: Maintenance .. |pypi-downloads| pypi-shield:: diff --git a/tox.ini b/tox.ini index 63c62e7..a2944d9 100644 --- a/tox.ini +++ b/tox.ini @@ -249,11 +249,13 @@ filterwarnings = ignore:can't resolve package from __spec__ or __package__, falling back on __name__ and __path__:ImportWarning [testenv:py312-flake8{4,5,6,7}] +download = True setenv = PYTHONDEVMODE=1 PIP_DISABLE_PIP_VERSION_CHECK=1 [testenv:py313-dev-flake8{4,5,6,7}] +download = True setenv = PYTHONDEVMODE=1 PIP_DISABLE_PIP_VERSION_CHECK=1 From 6218b4ce55e4ae85e31cbdc2754a8c04b2ac3d24 Mon Sep 17 00:00:00 2001 From: Dominic Davis-Foster Date: Tue, 8 Apr 2025 10:22:09 +0100 Subject: [PATCH 12/17] Drop support for Python 3.6 --- .github/workflows/python_ci.yml | 4 +--- .github/workflows/python_ci_linux.yml | 4 +--- .github/workflows/python_ci_macos.yml | 3 +-- pyproject.toml | 2 +- repo_helper.yml | 10 ---------- tox.ini | 6 +----- 6 files changed, 5 insertions(+), 24 deletions(-) diff --git a/.github/workflows/python_ci.yml b/.github/workflows/python_ci.yml index 98522ae..5f49d20 100644 --- a/.github/workflows/python_ci.yml +++ b/.github/workflows/python_ci.yml @@ -22,13 +22,12 @@ jobs: runs-on: "windows-2019" continue-on-error: ${{ matrix.config.experimental }} env: - USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9' + USING_COVERAGE: '3.7,3.8,3.9,3.10,3.11,3.12,3.13,pypy-3.7,pypy-3.8,pypy-3.9' strategy: fail-fast: False matrix: config: - - {python-version: "3.6", testenvs: "py36-flake8{4,5},build", experimental: False} - {python-version: "3.7", testenvs: "py37-flake8{4,5},build", experimental: False} - {python-version: "3.8", testenvs: "py38-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.9", testenvs: "py39-flake8{4,5,6,7},build", experimental: False} @@ -36,7 +35,6 @@ jobs: - {python-version: "3.11", testenvs: "py311-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.12", testenvs: "py312-flake8{5,6,7},build", experimental: False} - {python-version: "3.13", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} - - {python-version: "pypy-3.6", testenvs: "pypy36-flake8{4,5}", experimental: False} - {python-version: "pypy-3.7", testenvs: "pypy37-flake8{4,5},build", experimental: False} - {python-version: "pypy-3.8", testenvs: "pypy38-flake8{4,5,6,7},build", experimental: False} - {python-version: "pypy-3.9-v7.3.15", testenvs: "pypy39-flake8{4,5,6,7},build", experimental: True} diff --git a/.github/workflows/python_ci_linux.yml b/.github/workflows/python_ci_linux.yml index de266e3..af2f4ed 100644 --- a/.github/workflows/python_ci_linux.yml +++ b/.github/workflows/python_ci_linux.yml @@ -23,13 +23,12 @@ jobs: runs-on: "ubuntu-20.04" continue-on-error: ${{ matrix.config.experimental }} env: - USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9' + USING_COVERAGE: '3.7,3.8,3.9,3.10,3.11,3.12,3.13,pypy-3.7,pypy-3.8,pypy-3.9' strategy: fail-fast: False matrix: config: - - {python-version: "3.6", testenvs: "py36-flake8{4,5},build", experimental: False} - {python-version: "3.7", testenvs: "py37-flake8{4,5},build", experimental: False} - {python-version: "3.8", testenvs: "py38-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.9", testenvs: "py39-flake8{4,5,6,7},build", experimental: False} @@ -37,7 +36,6 @@ jobs: - {python-version: "3.11", testenvs: "py311-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.12", testenvs: "py312-flake8{5,6,7},build", experimental: False} - {python-version: "3.13", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} - - {python-version: "pypy-3.6", testenvs: "pypy36-flake8{4,5},build", experimental: False} - {python-version: "pypy-3.7", testenvs: "pypy37-flake8{4,5},build", experimental: False} - {python-version: "pypy-3.8", testenvs: "pypy38-flake8{4,5,6,7},build", experimental: False} - {python-version: "pypy-3.9", testenvs: "pypy39-flake8{4,5,6,7},build", experimental: True} diff --git a/.github/workflows/python_ci_macos.yml b/.github/workflows/python_ci_macos.yml index 3806d3b..9591979 100644 --- a/.github/workflows/python_ci_macos.yml +++ b/.github/workflows/python_ci_macos.yml @@ -22,13 +22,12 @@ jobs: runs-on: "macos-13" continue-on-error: ${{ matrix.config.experimental }} env: - USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13,pypy-3.7,pypy-3.8,pypy-3.9' + USING_COVERAGE: '3.7,3.8,3.9,3.10,3.11,3.12,3.13,pypy-3.7,pypy-3.8,pypy-3.9' strategy: fail-fast: False matrix: config: - - {python-version: "3.6", testenvs: "py36-flake8{4,5},build", experimental: False} - {python-version: "3.7", testenvs: "py37-flake8{4,5},build", experimental: False} - {python-version: "3.8", testenvs: "py38-flake8{4,5,6,7},build", experimental: False} - {python-version: "3.9", testenvs: "py39-flake8{4,5,6,7},build", experimental: False} diff --git a/pyproject.toml b/pyproject.toml index 4bcc212..e1b0cb8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ base-classifiers = [ "Topic :: Utilities", "Typing :: Typed", ] -python-versions = [ "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12",] +python-versions = [ "3.7", "3.8", "3.9", "3.10", "3.11", "3.12",] python-implementations = [ "CPython", "PyPy",] platforms = [ "Windows", "macOS", "Linux",] license-key = "MIT" diff --git a/repo_helper.yml b/repo_helper.yml index 6793e94..3ea5752 100644 --- a/repo_helper.yml +++ b/repo_helper.yml @@ -20,11 +20,6 @@ min_coverage: 100 # Versions to run tests for python_versions: - '3.6': - matrix_exclude: - flake8: - - 6 - - 7 '3.7': matrix_exclude: flake8: @@ -42,11 +37,6 @@ python_versions: matrix_exclude: flake8: - 4 - pypy36: - matrix_exclude: - flake8: - - 6 - - 7 pypy37: matrix_exclude: flake8: diff --git a/tox.ini b/tox.ini index a2944d9..8fb1cb1 100644 --- a/tox.ini +++ b/tox.ini @@ -23,7 +23,6 @@ [tox] envlist = - py36-flake8{4,5} py37-flake8{4,5} py38-flake8{4,5,6,7} py39-flake8{4,5,6,7} @@ -31,7 +30,6 @@ envlist = py311-flake8{4,5,6,7} py312-flake8{5,6,7} py313-dev-flake8{5,6,7} - pypy36-flake8{4,5} pypy37-flake8{4,5} pypy38-flake8{4,5,6,7} pypy39-flake8{4,5,6,7} @@ -47,7 +45,6 @@ requires = [envlists] test = - py36-flake8{4,5} py37-flake8{4,5} py38-flake8{4,5,6,7} py39-flake8{4,5,6,7} @@ -55,7 +52,6 @@ test = py311-flake8{4,5,6,7} py312-flake8{5,6,7} py313-dev-flake8{5,6,7} - pypy36-flake8{4,5} pypy37-flake8{4,5} pypy38-flake8{4,5,6,7} pypy39-flake8{4,5,6,7} @@ -215,7 +211,7 @@ inline-quotes = " multiline-quotes = """ docstring-quotes = """ count = True -min_python_version = 3.6.1 +min_python_version = 3.7 unused-arguments-ignore-abstract-functions = True unused-arguments-ignore-overload-functions = True unused-arguments-ignore-magic-methods = True From 43bb7748bd732970d42a28868ed41fde4604586e Mon Sep 17 00:00:00 2001 From: "repo-helper[bot]" <74742576+repo-helper[bot]@users.noreply.github.com> Date: Tue, 8 Apr 2025 14:53:16 +0100 Subject: [PATCH 13/17] Bump Ubuntu to 22.04. (#79) Co-authored-by: repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com> --- .github/workflows/flake8.yml | 2 +- .github/workflows/mypy.yml | 2 +- .github/workflows/python_ci_linux.yml | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/flake8.yml b/.github/workflows/flake8.yml index 0a8c0c3..af1b394 100644 --- a/.github/workflows/flake8.yml +++ b/.github/workflows/flake8.yml @@ -16,7 +16,7 @@ permissions: jobs: Run: name: "Flake8" - runs-on: "ubuntu-20.04" + runs-on: "ubuntu-22.04" steps: - name: Checkout 🛎️ diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml index 10c6f30..bd74787 100644 --- a/.github/workflows/mypy.yml +++ b/.github/workflows/mypy.yml @@ -20,7 +20,7 @@ jobs: strategy: matrix: - os: ['ubuntu-20.04', 'windows-2019'] + os: ['ubuntu-22.04', 'windows-2019'] fail-fast: false steps: diff --git a/.github/workflows/python_ci_linux.yml b/.github/workflows/python_ci_linux.yml index af2f4ed..a41c1d4 100644 --- a/.github/workflows/python_ci_linux.yml +++ b/.github/workflows/python_ci_linux.yml @@ -19,8 +19,8 @@ permissions: jobs: tests: - name: "ubuntu-20.04 / Python ${{ matrix.config.python-version }}" - runs-on: "ubuntu-20.04" + name: "ubuntu-22.04 / Python ${{ matrix.config.python-version }}" + runs-on: "ubuntu-22.04" continue-on-error: ${{ matrix.config.experimental }} env: USING_COVERAGE: '3.7,3.8,3.9,3.10,3.11,3.12,3.13,pypy-3.7,pypy-3.8,pypy-3.9' @@ -84,7 +84,7 @@ jobs: Coverage: needs: tests - runs-on: "ubuntu-20.04" + runs-on: "ubuntu-22.04" steps: - name: Checkout 🛎️ uses: "actions/checkout@v4" @@ -133,7 +133,7 @@ jobs: Deploy: needs: tests - runs-on: "ubuntu-20.04" + runs-on: "ubuntu-22.04" steps: - name: Checkout 🛎️ uses: "actions/checkout@v4" From 31d083379adc3181e71878940ef9fa82ef5738a8 Mon Sep 17 00:00:00 2001 From: "repo-helper[bot]" <74742576+repo-helper[bot]@users.noreply.github.com> Date: Thu, 17 Apr 2025 16:55:42 +0100 Subject: [PATCH 14/17] [repo-helper] Configuration Update (#81) * Updated files with 'repo_helper'. * Updated files with 'repo_helper'. * Updated files with 'repo_helper'. * Updated files with 'repo_helper'. --------- Co-authored-by: repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com> --- .github/workflows/python_ci_macos.yml | 24 ++++++++++++------------ .readthedocs.yml | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/python_ci_macos.yml b/.github/workflows/python_ci_macos.yml index 9591979..eafd25e 100644 --- a/.github/workflows/python_ci_macos.yml +++ b/.github/workflows/python_ci_macos.yml @@ -18,8 +18,8 @@ permissions: jobs: tests: - name: "macos-13 / Python ${{ matrix.config.python-version }}" - runs-on: "macos-13" + name: "macos-${{ matrix.config.os-ver }} / Python ${{ matrix.config.python-version }}" + runs-on: "macos-${{ matrix.config.os-ver }}" continue-on-error: ${{ matrix.config.experimental }} env: USING_COVERAGE: '3.7,3.8,3.9,3.10,3.11,3.12,3.13,pypy-3.7,pypy-3.8,pypy-3.9' @@ -28,16 +28,16 @@ jobs: fail-fast: False matrix: config: - - {python-version: "3.7", testenvs: "py37-flake8{4,5},build", experimental: False} - - {python-version: "3.8", testenvs: "py38-flake8{4,5,6,7},build", experimental: False} - - {python-version: "3.9", testenvs: "py39-flake8{4,5,6,7},build", experimental: False} - - {python-version: "3.10", testenvs: "py310-flake8{4,5,6,7},build", experimental: False} - - {python-version: "3.11", testenvs: "py311-flake8{4,5,6,7},build", experimental: False} - - {python-version: "3.12", testenvs: "py312-flake8{5,6,7},build", experimental: False} - - {python-version: "3.13", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} - - {python-version: "pypy-3.7", testenvs: "pypy37-flake8{4,5},build", experimental: False} - - {python-version: "pypy-3.8", testenvs: "pypy38-flake8{4,5,6,7},build", experimental: False} - - {python-version: "pypy-3.9", testenvs: "pypy39-flake8{4,5,6,7},build", experimental: True} + - {python-version: "3.7", os-ver: "13", testenvs: "py37-flake8{4,5},build", experimental: False} + - {python-version: "3.8", os-ver: "14", testenvs: "py38-flake8{4,5,6,7},build", experimental: False} + - {python-version: "3.9", os-ver: "14", testenvs: "py39-flake8{4,5,6,7},build", experimental: False} + - {python-version: "3.10", os-ver: "14", testenvs: "py310-flake8{4,5,6,7},build", experimental: False} + - {python-version: "3.11", os-ver: "14", testenvs: "py311-flake8{4,5,6,7},build", experimental: False} + - {python-version: "3.12", os-ver: "14", testenvs: "py312-flake8{5,6,7},build", experimental: False} + - {python-version: "3.13", os-ver: "14", testenvs: "py313-dev-flake8{5,6,7},build", experimental: True} + - {python-version: "pypy-3.7", os-ver: "13", testenvs: "pypy37-flake8{4,5},build", experimental: False} + - {python-version: "pypy-3.8", os-ver: "14", testenvs: "pypy38-flake8{4,5,6,7},build", experimental: False} + - {python-version: "pypy-3.9", os-ver: "14", testenvs: "pypy39-flake8{4,5,6,7},build", experimental: True} steps: - name: Checkout 🛎️ diff --git a/.readthedocs.yml b/.readthedocs.yml index e928b70..83fc025 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -13,7 +13,7 @@ python: - requirements: requirements.txt - requirements: doc-source/requirements.txt build: - os: ubuntu-20.04 + os: ubuntu-22.04 tools: python: '3.9' jobs: From 69ef56ad2f3f9efd7a69bd64d4f024b98b502e62 Mon Sep 17 00:00:00 2001 From: "repo-helper[bot]" <74742576+repo-helper[bot]@users.noreply.github.com> Date: Thu, 8 May 2025 21:36:17 +0100 Subject: [PATCH 15/17] Updated files with 'repo_helper'. (#82) Co-authored-by: repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com> --- .github/workflows/python_ci.yml | 1 + .github/workflows/python_ci_linux.yml | 3 +++ .github/workflows/python_ci_macos.yml | 1 + .pre-commit-config.yaml | 2 +- 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python_ci.yml b/.github/workflows/python_ci.yml index 5f49d20..c67e2c5 100644 --- a/.github/workflows/python_ci.yml +++ b/.github/workflows/python_ci.yml @@ -78,3 +78,4 @@ jobs: with: name: "coverage-${{ matrix.config.python-version }}" path: .coverage + include-hidden-files: true diff --git a/.github/workflows/python_ci_linux.yml b/.github/workflows/python_ci_linux.yml index a41c1d4..32c826c 100644 --- a/.github/workflows/python_ci_linux.yml +++ b/.github/workflows/python_ci_linux.yml @@ -80,6 +80,7 @@ jobs: with: name: "coverage-${{ matrix.config.python-version }}" path: .coverage + include-hidden-files: true Coverage: @@ -122,6 +123,7 @@ jobs: with: name: "combined-coverage" path: .coverage + include-hidden-files: true - name: "Upload Combined Coverage to Coveralls" if: ${{ steps.show.outcome != 'failure' }} @@ -207,6 +209,7 @@ jobs: $CONDA/bin/conda config --set always_yes yes --set changeps1 no $CONDA/bin/conda update -n base conda $CONDA/bin/conda info -a + $CONDA/bin/conda install conda-forge::py-lief=0.14.1 $CONDA/bin/conda config --add channels conda-forge $CONDA/bin/conda config --add channels domdfcoding diff --git a/.github/workflows/python_ci_macos.yml b/.github/workflows/python_ci_macos.yml index eafd25e..7cda7bd 100644 --- a/.github/workflows/python_ci_macos.yml +++ b/.github/workflows/python_ci_macos.yml @@ -78,3 +78,4 @@ jobs: with: name: "coverage-${{ matrix.config.python-version }}" path: .coverage + include-hidden-files: true diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e258593..96f0672 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,7 +8,7 @@ ci: repos: - repo: https://github.com/repo-helper/pyproject-parser - rev: v0.11.1 + rev: v0.13.0 hooks: - id: reformat-pyproject From fcd6ee1c25ec9b128e3e120ee6467560772d03ef Mon Sep 17 00:00:00 2001 From: Dominic Davis-Foster Date: Wed, 21 May 2025 15:53:00 +0100 Subject: [PATCH 16/17] Add check for alphabetical order. (#36) * Add check for alphabetical order. * Allow __all__ to be tuple (which brings slight benefits) * Use CliRunner from consolekit * Lint --- doc-source/usage.rst | 15 +++ flake8_dunder_all/__init__.py | 119 +++++++++++++++++-- formate.toml | 1 + requirements.txt | 1 + tests/__init__.py | 0 tests/test_flake8_dunder_all.py | 197 ++++++++++++++++++++++++++++++-- tests/test_main.py | 10 +- 7 files changed, 314 insertions(+), 29 deletions(-) create mode 100644 tests/__init__.py diff --git a/doc-source/usage.rst b/doc-source/usage.rst index 617c19d..203febb 100644 --- a/doc-source/usage.rst +++ b/doc-source/usage.rst @@ -12,6 +12,21 @@ Flake8 codes .. flake8-codes:: flake8_dunder_all DALL000 + DALL001 + DALL002 + + +For the ``DALL001`` option there exists a configuration option (``dunder-all-alphabetical``) +which controls the alphabetical grouping expected of ``__all__``. +The options are: + +* ``ignore`` -- ``__all__`` should be sorted alphabetically ignoring case, e.g. ``['bar', 'Baz', 'foo']`` +* ``lower`` -- group lowercase names first, then uppercase names, e.g. ``['bar', 'foo', 'Baz']`` +* ``upper`` -- group uppercase names first, then uppercase names, e.g. ``['Baz', 'Foo', 'bar']`` + +If the ``dunder-all-alphabetical`` option is omitted the ``DALL001`` check is disabled. + +.. versionchanged:: 0.5.0 Added the ``DALL001`` and ``DALL002`` checks. .. note:: diff --git a/flake8_dunder_all/__init__.py b/flake8_dunder_all/__init__.py index f9a0d95..ee73b72 100644 --- a/flake8_dunder_all/__init__.py +++ b/flake8_dunder_all/__init__.py @@ -32,26 +32,56 @@ # stdlib import ast import sys -from typing import Any, Generator, Iterator, List, Set, Tuple, Type, Union +from enum import Enum +from typing import TYPE_CHECKING, Any, Generator, Iterator, List, Optional, Sequence, Set, Tuple, Type, Union, cast # 3rd party +import natsort from consolekit.terminal_colours import Fore from domdf_python_tools.paths import PathPlus from domdf_python_tools.typing import PathLike from domdf_python_tools.utils import stderr_writer +from flake8.options.manager import OptionManager # type: ignore[import] # this package from flake8_dunder_all.utils import find_noqa, get_docstring_lineno, mark_text_ranges +if TYPE_CHECKING: + # stdlib + from argparse import Namespace + __author__: str = "Dominic Davis-Foster" __copyright__: str = "2020 Dominic Davis-Foster" __license__: str = "MIT" __version__: str = "0.4.1" __email__: str = "dominic@davis-foster.co.uk" -__all__ = ("Visitor", "Plugin", "check_and_add_all", "DALL000") +__all__ = ( + "check_and_add_all", + "AlphabeticalOptions", + "DALL000", + "DALL001", + "DALL002", + "Plugin", + "Visitor", + ) DALL000 = "DALL000 Module lacks __all__." +DALL001 = "DALL001 __all__ not sorted alphabetically" +DALL002 = "DALL002 __all__ not a list or tuple of strings." + + +class AlphabeticalOptions(Enum): + """ + Enum of possible values for the ``--dunder-all-alphabetical`` option. + + .. versionadded:: 0.5.0 + """ + + UPPER = "upper" + LOWER = "lower" + IGNORE = "ignore" + NONE = "none" class Visitor(ast.NodeVisitor): @@ -61,30 +91,56 @@ class Visitor(ast.NodeVisitor): :param use_endlineno: Flag to indicate whether the end_lineno functionality is available. This functionality is available on Python 3.8 and above, or when the tree has been passed through :func:`flake8_dunder_all.utils.mark_text_ranges``. + + .. versionchanged:: 0.5.0 + + Added the ``sorted_upper_first``, ``sorted_lower_first`` and ``all_lineno`` attributes. """ found_all: bool #: Flag to indicate a ``__all__`` declaration has been found in the AST. last_import: int #: The lineno of the last top-level or conditional import members: Set[str] #: List of functions and classed defined in the AST use_endlineno: bool + all_members: Optional[Sequence[str]] #: The value of ``__all__``. + all_lineno: int #: The line number where ``__all__`` is defined. def __init__(self, use_endlineno: bool = False) -> None: self.found_all = False self.members = set() self.last_import = 0 self.use_endlineno = use_endlineno + self.all_members = None + self.all_lineno = -1 - def visit_Name(self, node: ast.Name) -> None: - """ - Visit a variable. - - :param node: The node being visited. - """ + def visit_Assign(self, node: ast.Assign) -> None: # noqa: D102 + targets = [] + for t in node.targets: + if isinstance(t, ast.Name): + targets.append(t.id) - if node.id == "__all__": + if "__all__" in targets: self.found_all = True - else: - self.generic_visit(node) + self.all_lineno = node.lineno + self.all_members = self._parse_all(cast(ast.List, node.value)) + + def visit_AnnAssign(self, node: ast.AnnAssign) -> None: # noqa: D102 + if isinstance(node.target, ast.Name): + if node.target.id == "__all__": + self.all_lineno = node.lineno + self.found_all = True + self.all_members = self._parse_all(cast(ast.List, node.value)) + + @staticmethod + def _parse_all(all_node: ast.List) -> Optional[Sequence[str]]: + try: + all_ = ast.literal_eval(all_node) + except ValueError: + return None + + if not isinstance(all_, Sequence): + return None + + return all_ def handle_def(self, node: Union[ast.FunctionDef, ast.AsyncFunctionDef, ast.ClassDef]) -> None: """ @@ -252,6 +308,7 @@ class Plugin: name: str = __name__ version: str = __version__ #: The plugin version + dunder_all_alphabetical: AlphabeticalOptions = AlphabeticalOptions.NONE def __init__(self, tree: ast.AST): self._tree = tree @@ -272,12 +329,50 @@ def run(self) -> Generator[Tuple[int, int, str, Type[Any]], None, None]: visitor.visit(self._tree) if visitor.found_all: - return + if visitor.all_members is None: + yield visitor.all_lineno, 0, DALL002, type(self) + + elif self.dunder_all_alphabetical == AlphabeticalOptions.IGNORE: + # Alphabetical, upper or lower don't matter + sorted_alphabetical = natsort.natsorted(visitor.all_members, key=str.lower) + if list(visitor.all_members) != sorted_alphabetical: + yield visitor.all_lineno, 0, f"{DALL001}.", type(self) + elif self.dunder_all_alphabetical == AlphabeticalOptions.UPPER: + # Alphabetical, uppercase grouped first + sorted_alphabetical = natsort.natsorted(visitor.all_members) + if list(visitor.all_members) != sorted_alphabetical: + yield visitor.all_lineno, 0, f"{DALL001} (uppercase first).", type(self) + elif self.dunder_all_alphabetical == AlphabeticalOptions.LOWER: + # Alphabetical, lowercase grouped first + sorted_alphabetical = natsort.natsorted(visitor.all_members, alg=natsort.ns.LOWERCASEFIRST) + if list(visitor.all_members) != sorted_alphabetical: + yield visitor.all_lineno, 0, f"{DALL001} (lowercase first).", type(self) + elif not visitor.members: return + else: yield 1, 0, DALL000, type(self) + @classmethod + def add_options(cls, option_manager: OptionManager) -> None: # noqa: D102 # pragma: no cover + + option_manager.add_option( + "--dunder-all-alphabetical", + choices=[member.value for member in AlphabeticalOptions], + parse_from_config=True, + default=AlphabeticalOptions.NONE.value, + help=( + "Require entries in '__all__' to be alphabetical ([upper] or [lower]case first)." + "(Default: %(default)s)" + ), + ) + + @classmethod + def parse_options(cls, options: "Namespace") -> None: # noqa: D102 # pragma: no cover + # note: this sets the option on the class and not the instance + cls.dunder_all_alphabetical = AlphabeticalOptions(options.dunder_all_alphabetical) + def check_and_add_all(filename: PathLike, quote_type: str = '"', use_tuple: bool = False) -> int: """ diff --git a/formate.toml b/formate.toml index 82a7136..f127306 100644 --- a/formate.toml +++ b/formate.toml @@ -38,6 +38,7 @@ known_third_party = [ "flake8", "github", "importlib_metadata", + "natsort", "pytest", "pytest_cov", "pytest_randomly", diff --git a/requirements.txt b/requirements.txt index ac873e6..6bd2469 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,3 +3,4 @@ click>=7.1.2 consolekit>=0.8.1 domdf-python-tools>=2.6.0 flake8>=3.7 +natsort>=8.0.2 diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_flake8_dunder_all.py b/tests/test_flake8_dunder_all.py index d1c35dd..a7ede9d 100644 --- a/tests/test_flake8_dunder_all.py +++ b/tests/test_flake8_dunder_all.py @@ -7,7 +7,13 @@ # 3rd party import pytest from coincidence.regressions import AdvancedFileRegressionFixture -from common import ( +from consolekit.terminal_colours import Fore +from domdf_python_tools.paths import PathPlus + +# this package +from flake8_dunder_all import AlphabeticalOptions, Plugin, Visitor, check_and_add_all +from flake8_dunder_all.utils import mark_text_ranges +from tests.common import ( if_type_checking_else_source, if_type_checking_source, if_type_checking_try_finally_source, @@ -32,12 +38,6 @@ testing_source_m, testing_source_n ) -from consolekit.terminal_colours import Fore -from domdf_python_tools.paths import PathPlus - -# this package -from flake8_dunder_all import Visitor, check_and_add_all -from flake8_dunder_all.utils import mark_text_ranges @pytest.mark.parametrize( @@ -49,13 +49,16 @@ pytest.param(testing_source_b, {"1:0: DALL000 Module lacks __all__."}, id="function no __all__"), pytest.param(testing_source_c, {"1:0: DALL000 Module lacks __all__."}, id="class no __all__"), pytest.param( - testing_source_d, {"1:0: DALL000 Module lacks __all__."}, - id="function and class no __all__" + testing_source_d, + {"1:0: DALL000 Module lacks __all__."}, + id="function and class no __all__.", ), - pytest.param(testing_source_e, set(), id="function and class with __all__"), - pytest.param(testing_source_f, set(), id="function and class with __all__ and extra variable"), + pytest.param(testing_source_e, set(), id="function and class with __all__."), + pytest.param(testing_source_f, set(), id="function and class with __all__. and extra variable"), pytest.param( - testing_source_g, {"1:0: DALL000 Module lacks __all__."}, id="async function no __all__" + testing_source_g, + {"1:0: DALL000 Module lacks __all__."}, + id="async function no __all__", ), pytest.param(testing_source_h, set(), id="from import"), pytest.param(testing_source_i, {"1:0: DALL000 Module lacks __all__."}, id="lots of lines"), @@ -66,6 +69,176 @@ def test_plugin(source: str, expects: Set[str]): assert results(source) == expects +@pytest.mark.parametrize( + "source, dunder_all_alphabetical, expects", + [ + pytest.param( + "__all__ = ['foo', 'bar', 'Baz']", + AlphabeticalOptions.NONE, + set(), + id="NONE_wrong_order", + ), + pytest.param( + "__all__ = ['bar', 'Baz', 'foo']", + AlphabeticalOptions.NONE, + set(), + id="NONE_right_order_1", + ), + pytest.param( + "__all__ = ['Bar', 'baz', 'foo']", + AlphabeticalOptions.NONE, + set(), + id="NONE_right_order_2", + ), + pytest.param( + "__all__ = ['foo', 'bar', 'Baz']", + AlphabeticalOptions.IGNORE, + {"1:0: DALL001 __all__ not sorted alphabetically."}, + id="IGNORE_wrong_order", + ), + pytest.param( + "__all__ = ['bar', 'Baz', 'foo']", + AlphabeticalOptions.IGNORE, + set(), + id="IGNORE_right_order", + ), + pytest.param( + "__all__ = ['Baz', 'bar', 'foo']", + AlphabeticalOptions.LOWER, + {"1:0: DALL001 __all__ not sorted alphabetically (lowercase first)."}, + id="LOWER_wrong_order", + ), + pytest.param( + "__all__ = ['bar', 'foo', 'Baz']", + AlphabeticalOptions.LOWER, + set(), + id="LOWER_right_order", + ), + pytest.param( + "__all__ = ['bar', 'Baz', 'foo']", + AlphabeticalOptions.UPPER, + {"1:0: DALL001 __all__ not sorted alphabetically (uppercase first)."}, + id="UPPER_wrong_order", + ), + pytest.param( + "__all__ = ['Baz', 'bar', 'foo']", + AlphabeticalOptions.UPPER, + set(), + id="UPPER_right_order_1", + ), + pytest.param( + "__all__ = ['Baz', 'Foo', 'bar']", + AlphabeticalOptions.UPPER, + set(), + id="UPPER_right_order_2", + ), + ] + ) +def test_plugin_alphabetical(source: str, expects: Set[str], dunder_all_alphabetical: AlphabeticalOptions): + plugin = Plugin(ast.parse(source)) + plugin.dunder_all_alphabetical = dunder_all_alphabetical + assert {"{}:{}: {}".format(*r) for r in plugin.run()} == expects + + +@pytest.mark.parametrize( + "source, dunder_all_alphabetical, expects", + [ + pytest.param( + "__all__: List[str] = ['foo', 'bar', 'Baz']", + AlphabeticalOptions.NONE, + set(), + id="NONE_wrong_order", + ), + pytest.param( + "__all__: List[str] = ['bar', 'Baz', 'foo']", + AlphabeticalOptions.NONE, + set(), + id="NONE_right_order_1", + ), + pytest.param( + "__all__: List[str] = ['Bar', 'baz', 'foo']", + AlphabeticalOptions.NONE, + set(), + id="NONE_right_order_1", + ), + pytest.param( + "__all__: List[str] = ['foo', 'bar', 'Baz']", + AlphabeticalOptions.IGNORE, + {"1:0: DALL001 __all__ not sorted alphabetically."}, + id="IGNORE_wrong_order", + ), + pytest.param( + "__all__: List[str] = ['bar', 'Baz', 'foo']", + AlphabeticalOptions.IGNORE, + set(), + id="IGNORE_right_order", + ), + pytest.param( + "__all__: List[str] = ['Baz', 'bar', 'foo']", + AlphabeticalOptions.LOWER, + {"1:0: DALL001 __all__ not sorted alphabetically (lowercase first)."}, + id="LOWER_wrong_order", + ), + pytest.param( + "__all__: List[str] = ['bar', 'foo', 'Baz']", + AlphabeticalOptions.LOWER, + set(), + id="LOWER_right_order", + ), + pytest.param( + "__all__: List[str] = ['bar', 'Baz', 'foo']", + AlphabeticalOptions.UPPER, + {"1:0: DALL001 __all__ not sorted alphabetically (uppercase first)."}, + id="UPPER_wrong_order", + ), + pytest.param( + "__all__: List[str] = ['Baz', 'bar', 'foo']", + AlphabeticalOptions.UPPER, + set(), + id="UPPER_right_order_1", + ), + pytest.param( + "__all__: List[str] = ['Baz', 'Foo', 'bar']", + AlphabeticalOptions.UPPER, + set(), + id="UPPER_right_order_2", + ), + ] + ) +def test_plugin_alphabetical_ann_assign( + source: str, expects: Set[str], dunder_all_alphabetical: AlphabeticalOptions + ): + plugin = Plugin(ast.parse(source)) + plugin.dunder_all_alphabetical = dunder_all_alphabetical + assert {"{}:{}: {}".format(*r) for r in plugin.run()} == expects + + +@pytest.mark.parametrize( + "source, dunder_all_alphabetical", + [ + pytest.param("__all__ = 12345", AlphabeticalOptions.IGNORE, id="IGNORE_123"), + pytest.param("__all__ = 12345", AlphabeticalOptions.LOWER, id="LOWER_123"), + pytest.param("__all__ = 12345", AlphabeticalOptions.NONE, id="NONE_123"), + pytest.param("__all__ = 12345", AlphabeticalOptions.UPPER, id="UPPER_123"), + pytest.param("__all__ = abc", AlphabeticalOptions.IGNORE, id="IGNORE_abc"), + pytest.param("__all__ = abc", AlphabeticalOptions.LOWER, id="LOWER_abc"), + pytest.param("__all__ = abc", AlphabeticalOptions.NONE, id="NONE_abc"), + pytest.param("__all__ = abc", AlphabeticalOptions.UPPER, id="UPPER_abc"), + ] + ) +def test_plugin_alphabetical_not_list(source: str, dunder_all_alphabetical: AlphabeticalOptions): + plugin = Plugin(ast.parse(source)) + plugin.dunder_all_alphabetical = dunder_all_alphabetical + msg = "1:0: DALL002 __all__ not a list or tuple of strings." + assert {"{}:{}: {}".format(*r) for r in plugin.run()} == {msg} + + +def test_plugin_alphabetical_tuple(): + plugin = Plugin(ast.parse("__all__ = ('bar',\n'foo')")) + plugin.dunder_all_alphabetical = AlphabeticalOptions.IGNORE + assert {"{}:{}: {}".format(*r) for r in plugin.run()} == set() + + @pytest.mark.parametrize( "source, members, found_all, last_import", [ diff --git a/tests/test_main.py b/tests/test_main.py index fdd55ff..e9383a9 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -4,11 +4,14 @@ # 3rd party import pytest -from click.testing import CliRunner, Result from coincidence.regressions import AdvancedFileRegressionFixture from consolekit.terminal_colours import Fore +from consolekit.testing import CliRunner, Result from domdf_python_tools.paths import PathPlus -from test_flake8_dunder_all import ( + +# this package +from flake8_dunder_all.__main__ import main +from tests.test_flake8_dunder_all import ( mangled_source, testing_source_a, testing_source_b, @@ -25,9 +28,6 @@ testing_source_l ) -# this package -from flake8_dunder_all.__main__ import main - @pytest.mark.parametrize( "source, members, ret", From dcb6c9cedcd0ad49581a2ab69a8dd42bb8c214d6 Mon Sep 17 00:00:00 2001 From: Dominic Davis-Foster Date: Wed, 21 May 2025 17:17:48 +0100 Subject: [PATCH 17/17] Bump version v0.4.1 -> v0.5.0 --- .bumpversion.cfg | 2 +- .github/workflows/conda_ci.yml | 2 +- README.rst | 4 ++-- doc-source/index.rst | 2 +- doc-source/usage.rst | 6 +++--- flake8_dunder_all/__init__.py | 2 +- pyproject.toml | 2 +- repo_helper.yml | 2 +- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index e5e9e27..3a47b4c 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.4.1 +current_version = 0.5.0 commit = True tag = True diff --git a/.github/workflows/conda_ci.yml b/.github/workflows/conda_ci.yml index 90b5198..a020b4d 100644 --- a/.github/workflows/conda_ci.yml +++ b/.github/workflows/conda_ci.yml @@ -58,7 +58,7 @@ jobs: - name: "Install package" run: | - $CONDA/bin/conda install -c file://$(pwd)/conda-bld flake8-dunder-all=0.4.1=py_1 -y || exit 1 + $CONDA/bin/conda install -c file://$(pwd)/conda-bld flake8-dunder-all=0.5.0=py_1 -y || exit 1 - name: "Run Tests" run: | diff --git a/README.rst b/README.rst index 2c9f069..5ee13e9 100644 --- a/README.rst +++ b/README.rst @@ -101,7 +101,7 @@ flake8-dunder-all .. |language| image:: https://img.shields.io/github/languages/top/python-formate/flake8-dunder-all :alt: GitHub top language -.. |commits-since| image:: https://img.shields.io/github/commits-since/python-formate/flake8-dunder-all/v0.4.1 +.. |commits-since| image:: https://img.shields.io/github/commits-since/python-formate/flake8-dunder-all/v0.5.0 :target: https://github.com/python-formate/flake8-dunder-all/pulse :alt: GitHub commits since tagged version @@ -173,7 +173,7 @@ Sample ``.pre-commit-config.yaml``: rev: 3.8.1 hooks: - id: flake8 - additional_dependencies: [flake8-dunder-all==0.4.1] + additional_dependencies: [flake8-dunder-all==0.5.0] ``ensure-dunder-all`` script diff --git a/doc-source/index.rst b/doc-source/index.rst index 63aeeff..68427b1 100644 --- a/doc-source/index.rst +++ b/doc-source/index.rst @@ -107,7 +107,7 @@ flake8-dunder-all :alt: GitHub top language .. |commits-since| github-shield:: - :commits-since: v0.4.1 + :commits-since: v0.5.0 :alt: GitHub commits since tagged version .. |commits-latest| github-shield:: diff --git a/doc-source/usage.rst b/doc-source/usage.rst index 203febb..e1b2ebd 100644 --- a/doc-source/usage.rst +++ b/doc-source/usage.rst @@ -30,7 +30,7 @@ If the ``dunder-all-alphabetical`` option is omitted the ``DALL001`` check is di .. note:: - In version ``0.4.1`` the entry point changed from ``DALL`` to ``DAL``, due to changes in flake8 itself. + In version ``0.5.0`` the entry point changed from ``DALL`` to ``DAL``, due to changes in flake8 itself. However, the codes remain ``DALLXXX`` and should continue to work as normal. @@ -55,7 +55,7 @@ See `pre-commit `_ for instructions Sample ``.pre-commit-config.yaml``: -.. pre-commit:flake8:: 0.4.1 +.. pre-commit:flake8:: 0.5.0 Using the script as a pre-commit hook @@ -68,4 +68,4 @@ See `pre-commit `_ for instructions. Sample ``.pre-commit-config.yaml``: .. pre-commit:: - :rev: v0.4.1 + :rev: v0.5.0 diff --git a/flake8_dunder_all/__init__.py b/flake8_dunder_all/__init__.py index ee73b72..6c9f804 100644 --- a/flake8_dunder_all/__init__.py +++ b/flake8_dunder_all/__init__.py @@ -53,7 +53,7 @@ __author__: str = "Dominic Davis-Foster" __copyright__: str = "2020 Dominic Davis-Foster" __license__: str = "MIT" -__version__: str = "0.4.1" +__version__: str = "0.5.0" __email__: str = "dominic@davis-foster.co.uk" __all__ = ( diff --git a/pyproject.toml b/pyproject.toml index e1b0cb8..d2ad517 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "whey" [project] name = "flake8-dunder-all" -version = "0.4.1" +version = "0.5.0" description = "A Flake8 plugin and pre-commit hook which checks to ensure modules have defined '__all__'." readme = "README.rst" keywords = [ "flake8",] diff --git a/repo_helper.yml b/repo_helper.yml index 3ea5752..3570785 100644 --- a/repo_helper.yml +++ b/repo_helper.yml @@ -4,7 +4,7 @@ modname: flake8-dunder-all copyright_years: "2020-2022" author: "Dominic Davis-Foster" email: "dominic@davis-foster.co.uk" -version: "0.4.1" +version: "0.5.0" username: "python-formate" assignee: "domdfcoding" license: 'MIT'