Skip to content

Commit

Permalink
Fix code quality
Browse files Browse the repository at this point in the history
  • Loading branch information
Anatoliy057 committed Oct 16, 2024
1 parent 0da962e commit 37b8ece
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
import os
import importlib.metadata
import os
import sys

package_root = os.path.abspath("../..")
Expand Down
13 changes: 6 additions & 7 deletions setup_bdist_msi.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# NOTE: isort must not change this import order:
# isort: skip_file

import os
import re
import sys

Expand All @@ -15,8 +14,8 @@
# Check for Windows MSI Setup
if "bdist_msi" not in sys.argv: # or len(sys.argv) != 2:
raise RuntimeError(
"This setup.py variant is only for creating 'bdist_msi' targets: {}\n"
"Example `{} bdist_msi`".format(sys.argv, sys.argv[0])
f"This setup.py variant is only for creating 'bdist_msi' targets: {sys.argv}\n"
f"Example `{sys.argv[0]} bdist_msi`"
)

org_version = __version__
Expand Down Expand Up @@ -54,12 +53,12 @@
patch = int(patch)
alpha = 0

version = "{}.{}.{}.{}".format(major, minor, patch, alpha)
print("Version {}, using {}".format(org_version, version))
version = f"{major}.{minor}.{patch}.{alpha}"
print(f"Version {org_version}, using {version}")

try:
readme = open("README.md", "rt").read()
except IOError:
readme = open("README.md").read()
except OSError:
readme = "(readme not found. Running from tox/setup.py test?)"

# These dependencies are for plain WsgiDAV:
Expand Down
3 changes: 2 additions & 1 deletion tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
import logging.handlers
import sys
import unittest
from lxml import etree
from io import StringIO

from lxml import etree

from wsgidav import xml_tools
from wsgidav.util import (
BASE_LOGGER_NAME,
Expand Down

0 comments on commit 37b8ece

Please sign in to comment.