From fcbe8f7fb144f3e65cbf00a464433558c80badec Mon Sep 17 00:00:00 2001 From: Will Kahn-Greene Date: Mon, 15 Apr 2024 11:04:32 -0400 Subject: [PATCH] Update dev dependencies This updates dev dependencies, fixes the lint make rule, and fixes a formatting issue in tests/test_unicode.py. --- Makefile | 2 +- requirements-dev.txt | 14 +++++++------- tests/test_unicode.py | 5 ++++- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index a36082a7..b2c8abeb 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ docs: ## Build docs .PHONY: lint lint: ## Lint files - black --target-version=py37 --exclude=_vendor setup.py bleach/ tests/ tests_website/ + tox exec -e py39-format-check -- black --target-version=py38 --exclude=_vendor setup.py bleach/ tests/ tests_website/ tox -e py39-lint tox -e py39-format-check diff --git a/requirements-dev.txt b/requirements-dev.txt index 849c9e0d..3c525678 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,13 +1,13 @@ -e . -black==23.9.1; implementation_name == 'cpython' -build==1.0.3 +black==24.4.0; implementation_name == 'cpython' +build==1.2.1 mypy==1.5.1; implementation_name =='cpython' pytest==7.4.2 -setuptools==68.2.2 -tox==4.11.3 -tox-gh-actions==3.1.3 -twine==4.0.2 -wheel==0.41.2 +setuptools==69.5.1 +tox==4.14.2 +tox-gh-actions==3.2.0 +twine==5.0.0 +wheel==0.43.0 Sphinx==7.2.6; python_version > "3.8" diff --git a/tests/test_unicode.py b/tests/test_unicode.py index c8e552ab..6c947573 100644 --- a/tests/test_unicode.py +++ b/tests/test_unicode.py @@ -10,7 +10,10 @@ def test_japanese_safe_simple(): def test_japanese_strip(): assert clean("ヘルプとチュートリアル") == "ヘルプとチュートリアル" - assert clean("ヘルプとチュートリアル") == "<span>ヘルプとチュートリアル</span>" + assert ( + clean("ヘルプとチュートリアル") + == "<span>ヘルプとチュートリアル</span>" + ) def test_russian_simple():