diff --git a/docs/conf.py b/docs/conf.py index 8319c1e..d83387b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -45,7 +45,7 @@ # General information about the project. project = "pybv" -copyright = "2018-{}, pybv developers".format(date.today().year) +copyright = f"2018-{date.today().year}, pybv developers" author = "pybv developers" version = pybv.__version__ release = version diff --git a/pyproject.toml b/pyproject.toml index 3d4d4d8..54c3ef2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,6 @@ +[tool.ruff] +exclude = ["docs"] + [tool.ruff.lint] select = ["A", "B006", "D", "E", "F", "I", "W", "UP"] ignore = ["A002", "D203", "D213"] diff --git a/setup.py b/setup.py index ec5a1af..0803ccc 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ # get the version version = None -with open(os.path.join("pybv", "__init__.py"), "r") as fid: +with open(os.path.join("pybv", "__init__.py")) as fid: for line in (line.strip() for line in fid): if line.startswith("__version__"): version_str = line.split("=")[1].strip()