Skip to content
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
2 changes: 1 addition & 1 deletion .github/workflows/docs_test_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- '!tests/**'

- name: Install and Build πŸ”§
uses: sphinx-toolbox/sphinx-action@sphinx-3.3.1
uses: sphinx-toolbox/sphinx-action@sphinx-3.3.1-py39
if: steps.changes.outputs.code == 'true'
with:
pre-build-command: python -m pip install tox
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
if: steps.changes.outputs.code == 'true'
uses: "actions/setup-python@v5"
with:
python-version: "3.8"
python-version: "3.9"

- name: Install dependencies πŸ”§
if: steps.changes.outputs.code == 'true'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

strategy:
matrix:
os: ['ubuntu-22.04', 'windows-2019']
os: ['ubuntu-22.04', 'windows-2022']
fail-fast: false

steps:
Expand All @@ -40,7 +40,7 @@ jobs:
if: steps.changes.outputs.code == 'true'
uses: "actions/setup-python@v5"
with:
python-version: "3.8"
python-version: "3.9"

- name: Install dependencies πŸ”§
run: |
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/octocheese.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
schedule:
- cron: 0 12 * * *

permissions:
contents: write

jobs:
Run:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ permissions:

jobs:
tests:
name: "windows-2019 / Python ${{ matrix.config.python-version }}"
runs-on: "windows-2019"
name: "windows-2022 / Python ${{ matrix.config.python-version }}"
runs-on: "windows-2022"
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'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python_ci_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- {python-version: "3.13", testenvs: "py313-attrs{21.3,21.4,22.2,23.1,23.2,24.2,25.1,25.3,latest},py313-mypy{1.0.1,1.2.0,1.4.1,1.6.1,latest},py313-sphinx{6,7},build", experimental: False}
- {python-version: "pypy-3.7", testenvs: "pypy37-attrs{21.3,21.4,22.2,23.1,23.2,24.2,latest},pypy37-sphinx{4,5},build", experimental: False}
- {python-version: "pypy-3.8", testenvs: "pypy38-attrs{21.3,21.4,22.2,23.1,23.2,24.2,latest},pypy38-sphinx{4,5,6,7},build", experimental: True}
- {python-version: "pypy-3.9", testenvs: "pypy39-attrs{21.3,21.4,22.2,23.1,23.2,24.2,25.1,25.3,latest},pypy39-sphinx{4,5,6,7},build", experimental: True}
- {python-version: "pypy-3.9", testenvs: "pypy39-attrs{21.3,21.4,22.2,23.1,23.2,24.2,latest},pypy39-sphinx{4,5,6,7},build", experimental: True}

steps:
- name: Checkout πŸ›ŽοΈ
Expand Down Expand Up @@ -161,7 +161,7 @@ jobs:

- name: Upload distribution to PyPI πŸš€
if: startsWith(github.ref, 'refs/tags/')
uses: pypa/gh-action-pypi-publish@v1.4.2
uses: pypa/gh-action-pypi-publish@v1.13.0
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python_ci_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ jobs:
fail-fast: False
matrix:
config:
- {python-version: "3.7", os-ver: "13", testenvs: "py37-attrs{21.3,21.4,22.2,23.1,23.2,24.2,latest},py37-mypy{0.900,0.910,0.921,0.931,1.0.1,1.2.0,1.4.1},py37-sphinx{4,5},build", experimental: False}
- {python-version: "3.7", os-ver: "15-intel", testenvs: "py37-attrs{21.3,21.4,22.2,23.1,23.2,24.2,latest},py37-mypy{0.900,0.910,0.921,0.931,1.0.1,1.2.0,1.4.1},py37-sphinx{4,5},build", experimental: False}
- {python-version: "3.8", os-ver: "14", testenvs: "py38-attrs{21.3,21.4,22.2,23.1,23.2,24.2,25.1,25.3,latest},py38-mypy{0.900,0.910,0.921,0.931,1.0.1,1.2.0,1.4.1,1.6.1,latest},py38-sphinx{4,5,6,7},build", experimental: False}
- {python-version: "3.9", os-ver: "14", testenvs: "py39-attrs{21.3,21.4,22.2,23.1,23.2,24.2,25.1,25.3,latest},py39-mypy{0.900,0.910,0.921,0.931,1.0.1,1.2.0,1.4.1,1.6.1,latest},py39-sphinx{4,5,6,7},build", experimental: False}
- {python-version: "3.10", os-ver: "14", testenvs: "py310-attrs{21.3,21.4,22.2,23.1,23.2,24.2,25.1,25.3,latest},py310-mypy{0.900,0.910,0.921,0.931,1.0.1,1.2.0,1.4.1,1.6.1,latest},py310-sphinx{4,5,6,7},build", experimental: False}
- {python-version: "3.11", os-ver: "14", testenvs: "py311-attrs{21.3,21.4,22.2,23.1,23.2,24.2,25.1,25.3,latest},py311-mypy{0.900,0.910,0.921,0.931,1.0.1,1.2.0,1.4.1,1.6.1,latest},py311-sphinx{4,5,6,7},build", experimental: False}
- {python-version: "3.12", os-ver: "14", testenvs: "py312-attrs{21.3,21.4,22.2,23.1,23.2,24.2,25.1,25.3,latest},py312-mypy{1.0.1,1.2.0,1.4.1,1.6.1,latest},py312-sphinx{4,5,6,7},build", experimental: True}
- {python-version: "3.13", os-ver: "14", testenvs: "py313-attrs{21.3,21.4,22.2,23.1,23.2,24.2,25.1,25.3,latest},py313-mypy{1.0.1,1.2.0,1.4.1,1.6.1,latest},py313-sphinx{6,7},build", experimental: False}
- {python-version: "pypy-3.7", os-ver: "13", testenvs: "pypy37-attrs{21.3,21.4,22.2,23.1,23.2,24.2,latest},pypy37-sphinx{4,5},build", experimental: False}
- {python-version: "pypy-3.7", os-ver: "15-intel", testenvs: "pypy37-attrs{21.3,21.4,22.2,23.1,23.2,24.2,latest},pypy37-sphinx{4,5},build", experimental: False}
- {python-version: "pypy-3.8", os-ver: "14", testenvs: "pypy38-attrs{21.3,21.4,22.2,23.1,23.2,24.2,latest},pypy38-sphinx{4,5,6,7},build", experimental: True}
- {python-version: "pypy-3.9", os-ver: "14", testenvs: "pypy39-attrs{21.3,21.4,22.2,23.1,23.2,24.2,latest},pypy39-sphinx{4,5,6,7},build", experimental: True}

Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ repos:
- id: bind-requirements

- repo: https://github.com/python-formate/flake8-dunder-all
rev: v0.4.1
rev: v0.5.0
hooks:
- id: ensure-dunder-all
files: ^attr_utils/.*\.py$
Expand All @@ -62,11 +62,11 @@ repos:
- id: rst-inline-touching-normal

- repo: https://github.com/asottile/pyupgrade
rev: v2.12.0
rev: v3.3.0
hooks:
- id: pyupgrade
args:
- --py36-plus
- --py37-plus
- --keep-runtime-typing

- repo: https://github.com/Lucas-C/pre-commit-hooks
Expand Down
2 changes: 2 additions & 0 deletions doc-source/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
git+https://github.com/sphinx-toolbox/sphinx-toolbox-experimental
default-values>=0.6.0
docutils<0.22
domdf-sphinx-theme>=0.3.0
extras-require>=0.5.0
html-section>=0.3.0
mypy>=0.782
pyyaml>=5.3.1
roman>=4.0
seed-intersphinx-mapping>=1.2.2
sphinx>=3.0.3
sphinx-copybutton>=0.2.12
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ platforms = [ "Windows", "macOS", "Linux",]
license-key = "MIT"

[tool.mypy]
python_version = "3.8"
python_version = "3.9"
namespace_packages = true
check_untyped_defs = true
warn_unused_ignores = true
Expand Down
21 changes: 9 additions & 12 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ test =
pypy38-sphinx{4,5,6,7}
pypy39-sphinx{4,5,6,7}
qa = mypy, lint
cov = py38-attrs21.3, coverage
cov = py39-attrs21.3, coverage

[testenv]
setenv =
Expand Down Expand Up @@ -135,7 +135,6 @@ download = True
setenv =
PYTHONDEVMODE=1
PIP_DISABLE_PIP_VERSION_CHECK=1
UNSAFE_PYO3_SKIP_VERSION_CHECK=1

[testenv:py312]
download = True
Expand All @@ -146,7 +145,7 @@ setenv =
[testenv:docs]
setenv = SHOW_TODOS = 1
passenv = SPHINX_BUILDER
basepython = python3.8
basepython = python3.9
changedir = {toxinidir}/doc-source
extras = all
deps = -r{toxinidir}/doc-source/requirements.txt
Expand All @@ -171,7 +170,7 @@ commands =
check-wheel-contents dist/

[testenv:lint]
basepython = python3.8
basepython = python3.9
changedir = {toxinidir}
ignore_errors = True
skip_install = True
Expand All @@ -191,25 +190,26 @@ deps =
flake8-sphinx-links>=0.0.4
flake8-strftime>=0.1.1
flake8-typing-imports>=1.10.0
git+https://github.com/domdfcoding/restructuredtext-lint.git@fix-deprecations
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git
git+https://github.com/domdfcoding/flake8-rst-docstrings.git
git+https://github.com/python-formate/flake8-unused-arguments.git@magic-methods
git+https://github.com/python-formate/flake8-missing-annotations.git
pydocstyle>=6.0.0
git+https://github.com/domdfcoding/pydocstyle.git@stub-functions
pygments>=2.7.1
importlib_metadata<4.5.0; python_version<'3.8'
commands = python3 -m flake8_rst_docstrings_sphinx attr_utils tests --allow-toolbox {posargs}

[testenv:perflint]
basepython = python3.8
basepython = python3.9
changedir = {toxinidir}
ignore_errors = True
skip_install = True
deps = perflint
commands = python3 -m perflint attr_utils {posargs}

[testenv:mypy]
basepython = python3.8
basepython = python3.9
ignore_errors = True
changedir = {toxinidir}
extras = all
Expand All @@ -219,7 +219,7 @@ deps =
commands = mypy attr_utils tests {posargs}

[testenv:pyup]
basepython = python3.8
basepython = python3.9
skip_install = True
ignore_errors = True
changedir = {toxinidir}
Expand All @@ -228,7 +228,7 @@ extras = all
commands = pyup_dirs attr_utils tests --py36-plus --recursive

[testenv:coverage]
basepython = python3.8
basepython = python3.9
skip_install = True
ignore_errors = True
whitelist_externals = /bin/bash
Expand Down Expand Up @@ -315,21 +315,18 @@ download = True
setenv =
PYTHONDEVMODE=1
PIP_DISABLE_PIP_VERSION_CHECK=1
UNSAFE_PYO3_SKIP_VERSION_CHECK=1

[testenv:py313-mypy{0.900,0.910,0.921,0.931,1.0.1,1.2.0,1.4.1,1.6.1,latest}]
download = True
setenv =
PYTHONDEVMODE=1
PIP_DISABLE_PIP_VERSION_CHECK=1
UNSAFE_PYO3_SKIP_VERSION_CHECK=1

[testenv:py313-sphinx{4,5,6,7}]
download = True
setenv =
PYTHONDEVMODE=1
PIP_DISABLE_PIP_VERSION_CHECK=1
UNSAFE_PYO3_SKIP_VERSION_CHECK=1

[testenv:py{37,38,39,310,311}-mypy{0.900,0.910,0.921,0.931}]
setenv =
Expand Down
Loading