Merge pull request #6435 from wRAR/update-tools

Update tool versions
This commit is contained in:
Adrián Chaves 2024-07-11 10:26:04 +02:00 committed by GitHub
commit 7a0a34b136
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 23 additions and 23 deletions

View File

@ -21,7 +21,7 @@ jobs:
- python-version: 3.8 - python-version: 3.8
env: env:
TOXENV: typing-tests TOXENV: typing-tests
- python-version: "3.11" # Keep in sync with .readthedocs.yml - python-version: "3.12" # Keep in sync with .readthedocs.yml
env: env:
TOXENV: docs TOXENV: docs
- python-version: "3.12" - python-version: "3.12"
@ -32,7 +32,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
@ -46,4 +46,4 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: pre-commit/action@v3.0.0 - uses: pre-commit/action@v3.0.1

View File

@ -13,13 +13,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-python@v4 - uses: actions/setup-python@v5
with: with:
python-version: 3.12 python-version: 3.12
- run: | - run: |
pip install --upgrade build twine pip install --upgrade build twine
python -m build python -m build
- name: Publish to PyPI - name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@v1.6.4 uses: pypa/gh-action-pypi-publish@v1.9.0
with: with:
password: ${{ secrets.PYPI_TOKEN }} password: ${{ secrets.PYPI_TOKEN }}

View File

@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}

View File

@ -62,7 +62,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}

View File

@ -35,7 +35,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}

View File

@ -1,11 +1,11 @@
repos: repos:
- repo: https://github.com/PyCQA/bandit - repo: https://github.com/PyCQA/bandit
rev: 1.7.7 rev: 1.7.9
hooks: hooks:
- id: bandit - id: bandit
args: [-r, -c, .bandit.yml] args: [-r, -c, .bandit.yml]
- repo: https://github.com/PyCQA/flake8 - repo: https://github.com/PyCQA/flake8
rev: 7.0.0 rev: 7.1.0
hooks: hooks:
- id: flake8 - id: flake8
additional_dependencies: additional_dependencies:
@ -16,7 +16,7 @@ repos:
- flake8-string-format - flake8-string-format
- flake8-type-checking - flake8-type-checking
- repo: https://github.com/psf/black.git - repo: https://github.com/psf/black.git
rev: 24.2.0 rev: 24.4.2
hooks: hooks:
- id: black - id: black
- repo: https://github.com/pycqa/isort - repo: https://github.com/pycqa/isort
@ -24,13 +24,13 @@ repos:
hooks: hooks:
- id: isort - id: isort
- repo: https://github.com/adamchainz/blacken-docs - repo: https://github.com/adamchainz/blacken-docs
rev: 1.16.0 rev: 1.18.0
hooks: hooks:
- id: blacken-docs - id: blacken-docs
additional_dependencies: additional_dependencies:
- black==24.2.0 - black==24.4.2
- repo: https://github.com/asottile/pyupgrade - repo: https://github.com/asottile/pyupgrade
rev: v3.15.2 rev: v3.16.0
hooks: hooks:
- id: pyupgrade - id: pyupgrade
args: [--py38-plus, --keep-runtime-typing] args: [--py38-plus, --keep-runtime-typing]

View File

@ -9,7 +9,7 @@ build:
tools: tools:
# For available versions, see: # For available versions, see:
# https://docs.readthedocs.io/en/stable/config-file/v2.html#build-tools-python # https://docs.readthedocs.io/en/stable/config-file/v2.html#build-tools-python
python: "3.11" # Keep in sync with .github/workflows/checks.yml python: "3.12" # Keep in sync with .github/workflows/checks.yml
python: python:
install: install:

16
tox.ini
View File

@ -46,14 +46,14 @@ install_command =
[testenv:typing] [testenv:typing]
basepython = python3 basepython = python3
deps = deps =
mypy==1.10.0 mypy==1.10.1
typing-extensions==4.12.1 typing-extensions==4.12.2
types-lxml==2024.4.14 types-lxml==2024.4.14
types-Pygments==2.18.0.20240506 types-Pygments==2.18.0.20240506
types-pyOpenSSL==24.1.0.20240425 types-pyOpenSSL==24.1.0.20240425
types-setuptools==70.0.0.20240524 types-setuptools==70.3.0.20240710
botocore-stubs==1.34.94 botocore-stubs==1.34.143
boto3-stubs[s3]==1.34.119 boto3-stubs[s3]==1.34.143
attrs >= 18.2.0 attrs >= 18.2.0
Pillow >= 10.3.0 Pillow >= 10.3.0
pytest >= 8.2.0 pytest >= 8.2.0
@ -81,15 +81,15 @@ commands =
basepython = python3 basepython = python3
deps = deps =
{[testenv:extra-deps]deps} {[testenv:extra-deps]deps}
pylint==3.1.0 pylint==3.2.5
commands = commands =
pylint conftest.py docs extras scrapy setup.py tests pylint conftest.py docs extras scrapy setup.py tests
[testenv:twinecheck] [testenv:twinecheck]
basepython = python3 basepython = python3
deps = deps =
twine==5.0.0 twine==5.1.1
build==1.0.3 build==1.2.1
commands = commands =
python -m build --sdist python -m build --sdist
twine check dist/* twine check dist/*