Skip to content

Commit

Permalink
Merge pull request #1074 from sphinx-contrib/lint-updates
Browse files Browse the repository at this point in the history
Lint updates
  • Loading branch information
jdknight authored Jan 18, 2025
2 parents ac65dcb + 054f809 commit 575d127
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions sphinxcontrib/confluencebuilder/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ def normalize_base_url(url):
if url:
# removing any trailing forward slash user provided
if url.endswith('/'):
url = url[:-1]
url = url.removesuffix('/')
# check for rest api prefix; strip and return if found
if url.endswith(API_REST_V1):
url = url[:-len(API_REST_V1)]
url = url.removesuffix(API_REST_V1)
if url.endswith(API_REST_V2):
url = url[:-len(API_REST_V2)]
url = url.removesuffix(API_REST_V2)
# restore trailing forward flash
elif not url.endswith('/'):
url += '/'
Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ commands = {envpython} -m sphinx -M latexpdf . _build -E -a
[testenv:pylint]
deps =
{[testenv]deps}
pylint: pylint==3.3.1
pylint: pylint==3.3.3
commands =
pylint \
sphinxcontrib \
Expand All @@ -67,7 +67,7 @@ commands =
[testenv:ruff]
deps =
{[testenv]deps}
ruff: ruff==0.8.1
ruff: ruff==0.9.2
setenv =
{[testenv]setenv}
RUFF_CACHE_DIR={toxworkdir}/.ruff_cache
Expand All @@ -82,7 +82,7 @@ commands =
deps =
{[testenv]deps}
-r{toxinidir}/requirements_types.txt
mypy
mypy: mypy==1.14.1
commands =
mypy \
--explicit-package-bases \
Expand Down

0 comments on commit 575d127

Please sign in to comment.