From d19515f8a72c36686ff927391088c5afa390e348 Mon Sep 17 00:00:00 2001 From: Clemens Brunner Date: Sun, 11 Feb 2024 17:23:44 +0100 Subject: [PATCH] Do not exclude docs --- docs/conf.py | 2 +- docs/sphinxext/gh_substitutions.py | 6 +++++- pyproject.toml | 3 --- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index d83387b..d3db897 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -45,7 +45,7 @@ # General information about the project. project = "pybv" -copyright = f"2018-{date.today().year}, pybv developers" +copyright = f"2018-{date.today().year}, pybv developers" # noqa:A001 author = "pybv developers" version = pybv.__version__ release = version diff --git a/docs/sphinxext/gh_substitutions.py b/docs/sphinxext/gh_substitutions.py index bc60766..02b0054 100644 --- a/docs/sphinxext/gh_substitutions.py +++ b/docs/sphinxext/gh_substitutions.py @@ -10,8 +10,12 @@ from docutils.parsers.rst.roles import set_classes -def gh_role(name, rawtext, text, lineno, inliner, options={}, content=[]): +def gh_role(name, rawtext, text, lineno, inliner, options=None, content=None): """Link to a GitHub issue.""" + if content is None: + content = [] + if options is None: + options = {} try: # issue/PR mode (issues/PR-num will redirect to pull/PR-num) int(text) diff --git a/pyproject.toml b/pyproject.toml index 54c3ef2..3d4d4d8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,3 @@ -[tool.ruff] -exclude = ["docs"] - [tool.ruff.lint] select = ["A", "B006", "D", "E", "F", "I", "W", "UP"] ignore = ["A002", "D203", "D213"]