File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
sphinxcontrib/confluencebuilder Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff 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 += '/'
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ commands = {envpython} -m sphinx -M latexpdf . _build -E -a
5858[testenv:pylint]
5959deps =
6060 {[testenv]deps}
61- pylint: pylint ==3.3.1
61+ pylint: pylint ==3.3.3
6262commands =
6363 pylint \
6464 sphinxcontrib \
@@ -67,7 +67,7 @@ commands =
6767[testenv:ruff]
6868deps =
6969 {[testenv]deps}
70- ruff: ruff ==0.8.1
70+ ruff: ruff ==0.9.2
7171setenv =
7272 {[testenv]setenv}
7373 RUFF_CACHE_DIR ={toxworkdir}/.ruff_cache
@@ -82,7 +82,7 @@ commands =
8282deps =
8383 {[testenv]deps}
8484 -r{toxinidir}/requirements_types.txt
85- mypy
85+ mypy: mypy ==1.14.1
8686commands =
8787 mypy \
8888 --explicit-package-bases \
You can’t perform that action at this time.
0 commit comments