Skip to content

Commit

Permalink
! tox
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksei Rubashev committed Jul 23, 2024
1 parent 0139060 commit 9edf7d7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#
import sys
import toml
import os
from pathlib import Path

_root_path = Path(__file__).parent.parent.parent
Expand Down Expand Up @@ -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}")
Expand Down

0 comments on commit 9edf7d7

Please sign in to comment.