From 9edf7d75afef90509bb568926b1ea8589b8889d5 Mon Sep 17 00:00:00 2001 From: Aleksei Rubashev Date: Tue, 23 Jul 2024 20:04:46 +0300 Subject: [PATCH] ! tox --- docs/source/conf.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index e12327a..ab1a0de 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -19,7 +19,6 @@ # import sys import toml -import os from pathlib import Path _root_path = Path(__file__).parent.parent.parent @@ -66,11 +65,11 @@ # for |version| and |release|, also used in various other places throughout # the built documents. -pyproject_path = Path(__file__).parent.parent.parent / 'pyproject.toml' +pyproject_path = Path(__file__).parent.parent.parent / "pyproject.toml" # The short X.Y version. try: pyproject_data = toml.load(pyproject_path) - version = pyproject_data['tool']['poetry']['version'] + version = pyproject_data["tool"]["poetry"]["version"] release = version except Exception as e: print(f"Warning: Could not read version from {pyproject_path}. Error: {e}")