Skip to content
Open
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
4 changes: 2 additions & 2 deletions .github/workflows/conda_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:

steps:
- name: Checkout 🛎️
uses: "actions/checkout@v4"
uses: "actions/checkout@v6"

- name: Setup Python 🐍
uses: "actions/setup-python@v5"
uses: "actions/setup-python@v6"
with:
python-version: "3.11"

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs_test_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: "actions/checkout@v4"
uses: "actions/checkout@v6"

- name: Check for changed files
uses: dorny/paths-filter@v2
uses: dorny/paths-filter@v4
id: changes
with:
list-files: "json"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:

steps:
- name: Checkout 🛎️
uses: "actions/checkout@v4"
uses: "actions/checkout@v6"

- name: Check for changed files
uses: dorny/paths-filter@v2
uses: dorny/paths-filter@v4
id: changes
with:
list-files: "json"
Expand All @@ -32,7 +32,7 @@ jobs:

- name: Setup Python 🐍
if: steps.changes.outputs.code == 'true'
uses: "actions/setup-python@v5"
uses: "actions/setup-python@v6"
with:
python-version: "3.9"

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:

steps:
- name: Checkout 🛎️
uses: "actions/checkout@v4"
uses: "actions/checkout@v6"

- name: Check for changed files
uses: dorny/paths-filter@v2
uses: dorny/paths-filter@v4
id: changes
with:
list-files: "json"
Expand All @@ -37,7 +37,7 @@ jobs:

- name: Setup Python 🐍
if: steps.changes.outputs.code == 'true'
uses: "actions/setup-python@v5"
uses: "actions/setup-python@v6"
with:
python-version: "3.9"

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/python_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ jobs:

steps:
- name: Checkout 🛎️
uses: "actions/checkout@v4"
uses: "actions/checkout@v6"

- name: Check for changed files
if: startsWith(github.ref, 'refs/tags/') != true
uses: dorny/paths-filter@v2
uses: dorny/paths-filter@v4
id: changes
with:
list-files: "json"
Expand All @@ -54,7 +54,7 @@ jobs:
- name: Setup Python 🐍
id: setup-python
if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }}
uses: "actions/setup-python@v5"
uses: "actions/setup-python@v6"
with:
python-version: "${{ matrix.config.python-version }}"

Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/python_ci_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ jobs:

steps:
- name: Checkout 🛎️
uses: "actions/checkout@v4"
uses: "actions/checkout@v6"

- name: Check for changed files
if: startsWith(github.ref, 'refs/tags/') != true
uses: dorny/paths-filter@v2
uses: dorny/paths-filter@v4
id: changes
with:
list-files: "json"
Expand All @@ -55,7 +55,7 @@ jobs:
- name: Setup Python 🐍
id: setup-python
if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }}
uses: "actions/setup-python@v5"
uses: "actions/setup-python@v6"
with:
python-version: "${{ matrix.config.python-version }}"

Expand Down Expand Up @@ -89,10 +89,10 @@ jobs:
runs-on: "ubuntu-22.04"
steps:
- name: Checkout 🛎️
uses: "actions/checkout@v4"
uses: "actions/checkout@v6"

- name: Setup Python 🐍
uses: "actions/setup-python@v5"
uses: "actions/setup-python@v6"
with:
python-version: 3.8

Expand Down Expand Up @@ -142,11 +142,11 @@ jobs:
runs-on: "ubuntu-22.04"
steps:
- name: Checkout 🛎️
uses: "actions/checkout@v4"
uses: "actions/checkout@v6"
if: startsWith(github.ref, 'refs/tags/')

- name: Setup Python 🐍
uses: "actions/setup-python@v5"
uses: "actions/setup-python@v6"
if: startsWith(github.ref, 'refs/tags/')
with:
python-version: 3.8
Expand Down Expand Up @@ -189,10 +189,10 @@ jobs:
if: startsWith(github.ref, 'refs/tags/') || (startsWith(github.event.head_commit.message, 'Bump version') != true)
steps:
- name: Checkout 🛎️
uses: "actions/checkout@v4"
uses: "actions/checkout@v6"

- name: Setup Python 🐍
uses: "actions/setup-python@v5"
uses: "actions/setup-python@v6"
with:
python-version: 3.11

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/python_ci_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ jobs:

steps:
- name: Checkout 🛎️
uses: "actions/checkout@v4"
uses: "actions/checkout@v6"

- name: Check for changed files
if: startsWith(github.ref, 'refs/tags/') != true
uses: dorny/paths-filter@v2
uses: dorny/paths-filter@v4
id: changes
with:
list-files: "json"
Expand All @@ -54,7 +54,7 @@ jobs:
- name: Setup Python 🐍
id: setup-python
if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }}
uses: "actions/setup-python@v5"
uses: "actions/setup-python@v6"
with:
python-version: "${{ matrix.config.python-version }}"

Expand Down
17 changes: 13 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ exclude: ^$

ci:
autoupdate_schedule: quarterly
skip: [taplo-lint]

repos:
- repo: https://github.com/repo-helper/pyproject-parser
Expand All @@ -21,7 +22,6 @@ repos:
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: check-toml
- id: check-yaml
- id: check-merge-conflict
- id: check-symlinks
Expand All @@ -31,15 +31,24 @@ repos:
- id: mixed-line-ending
- id: end-of-file-fixer

- repo: https://github.com/domdfcoding/taplo-pre-commit
rev: v0.10.0
hooks:
- id: taplo-lint
args: []

- repo: https://github.com/domdfcoding/pre-commit-hooks
rev: v0.6.0
rev: v0.7.0
hooks:
- id: requirements-txt-sorter
args:
- --allow-git
- id: check-docstring-first
exclude: ^(doc-source/conf|__pkginfo__|setup|tests/.*)\.py$
- id: bind-requirements
args:
- --python-min
- '3.7'

- repo: https://github.com/python-formate/flake8-dunder-all
rev: v0.5.0
Expand All @@ -61,7 +70,7 @@ repos:
- id: rst-inline-touching-normal

- repo: https://github.com/python-formate/pyupgrade
rev: '2e49872'
rev: bbe3007
hooks:
- id: pyupgrade
args:
Expand All @@ -80,7 +89,7 @@ repos:
- id: snippet-fmt

- repo: https://github.com/python-formate/formate
rev: v1.2.0
rev: v1.2.1
hooks:
- id: formate
exclude: ^(doc-source/conf|__pkginfo__|setup)\.(_)?py$
Expand Down
5 changes: 5 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,8 @@ bare-ignore:

lint: unused-imports incomplete-defs bare-ignore
tox -n qa

uncomm:
git status -uall --ignored

# Custom commands can be added below this comment
9 changes: 1 addition & 8 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ setenv =
PYTHONDEVMODE=1
PIP_DISABLE_PIP_VERSION_CHECK=1
SETUPTOOLS_USE_DISTUTILS=stdlib
download = True
deps =
-r{toxinidir}/tests/requirements.txt
attrs21.3: attrs~=21.3.0
Expand Down Expand Up @@ -131,13 +132,11 @@ setenv =
PIP_DISABLE_PIP_VERSION_CHECK=1

[testenv:py313]
download = True
setenv =
PYTHONDEVMODE=1
PIP_DISABLE_PIP_VERSION_CHECK=1

[testenv:py312]
download = True
setenv =
PYTHONDEVMODE=1
PIP_DISABLE_PIP_VERSION_CHECK=1
Expand Down Expand Up @@ -295,37 +294,31 @@ toplevel = attr_utils
package = attr_utils

[testenv:py312-attrs{21.3,21.4,22.2,23.1,23.2,24.2,25.1,25.3,latest}]
download = True
setenv =
PYTHONDEVMODE=1
PIP_DISABLE_PIP_VERSION_CHECK=1

[testenv:py312-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

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

[testenv:py313-attrs{21.3,21.4,22.2,23.1,23.2,24.2,25.1,25.3,latest}]
download = True
setenv =
PYTHONDEVMODE=1
PIP_DISABLE_PIP_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

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