From 93226544e433b87b43dd7a3df1249111abeee620 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20K=C5=82oczko?= Date: Tue, 21 May 2024 17:24:33 +0000 Subject: [PATCH 1/2] filter all code over `pyupgrade --py38-plus` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tomasz Kłoczko --- docs/conf.py | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index ff09ce3..acd3766 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # From 2622099a4c3791902ea30b4815b8a03341015bf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20K=C5=82oczko?= Date: Tue, 21 May 2024 17:25:36 +0000 Subject: [PATCH 2/2] filter all code over ruff MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tomasz Kłoczko --- tests/test_urls.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_urls.py b/tests/test_urls.py index cfe6477..7c20796 100644 --- a/tests/test_urls.py +++ b/tests/test_urls.py @@ -3,7 +3,6 @@ import sphinx import shutil import subprocess -import warnings from utils import _get_css_html_link_tag, _get_js_html_link_tag @@ -328,7 +327,7 @@ def test_image_looks_like_absolute_url(app, status, warning): def test_image_absolute_url(app, status, warning): app.build() path = app.outdir / '404.html' - assert path.exists() == True + assert path.exists() is True content = open(path).read() chunks = [