Skip to content

Commit 575d127

Browse files
authored
Merge pull request #1074 from sphinx-contrib/lint-updates
Lint updates
2 parents ac65dcb + 054f809 commit 575d127

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

sphinxcontrib/confluencebuilder/util.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ def normalize_base_url(url):
7979
if url:
8080
# removing any trailing forward slash user provided
8181
if url.endswith('/'):
82-
url = url[:-1]
82+
url = url.removesuffix('/')
8383
# check for rest api prefix; strip and return if found
8484
if url.endswith(API_REST_V1):
85-
url = url[:-len(API_REST_V1)]
85+
url = url.removesuffix(API_REST_V1)
8686
if url.endswith(API_REST_V2):
87-
url = url[:-len(API_REST_V2)]
87+
url = url.removesuffix(API_REST_V2)
8888
# restore trailing forward flash
8989
elif not url.endswith('/'):
9090
url += '/'

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ commands = {envpython} -m sphinx -M latexpdf . _build -E -a
5858
[testenv:pylint]
5959
deps =
6060
{[testenv]deps}
61-
pylint: pylint==3.3.1
61+
pylint: pylint==3.3.3
6262
commands =
6363
pylint \
6464
sphinxcontrib \
@@ -67,7 +67,7 @@ commands =
6767
[testenv:ruff]
6868
deps =
6969
{[testenv]deps}
70-
ruff: ruff==0.8.1
70+
ruff: ruff==0.9.2
7171
setenv =
7272
{[testenv]setenv}
7373
RUFF_CACHE_DIR={toxworkdir}/.ruff_cache
@@ -82,7 +82,7 @@ commands =
8282
deps =
8383
{[testenv]deps}
8484
-r{toxinidir}/requirements_types.txt
85-
mypy
85+
mypy: mypy==1.14.1
8686
commands =
8787
mypy \
8888
--explicit-package-bases \

0 commit comments

Comments
 (0)