From 28535164bf379baf4a8282025ddebf06823fb244 Mon Sep 17 00:00:00 2001 From: John Sharples Date: Wed, 25 Oct 2023 14:21:22 +1100 Subject: [PATCH] 73: add pre-commit action --- docs/conf.py | 21 +++++++++++---------- pyproject.toml | 3 +++ tests/stats/test_diebold_mariano.py | 2 -- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index b6e5f331..d7033daf 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -6,23 +6,24 @@ # -- Project information ----------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information -project = "scores" -copyright = "2023, Australian Bureau of Meteorology" -author = "Australian Bureau of Meteorology" -release = "0.4" +project = 'scores' +copyright = '2023, Australian Bureau of Meteorology' +author = 'Australian Bureau of Meteorology' +release = '0.4' # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration -extensions = ["myst_parser", "sphinx.ext.autodoc", "sphinx.ext.autosummary", "sphinx.ext.napoleon"] -source_suffix = [".rst", ".md"] +extensions = ["myst_parser", 'sphinx.ext.autodoc', 'sphinx.ext.autosummary', 'sphinx.ext.napoleon'] +source_suffix = ['.rst', '.md'] + +templates_path = ['_templates'] +exclude_patterns = [] -templates_path = ["_templates"] -# exclude_patterns = [] # -- Options for HTML output ------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output -html_static_path = ["_static"] -html_theme = "sphinx_book_theme" +html_static_path = ['_static'] +html_theme = "sphinx_book_theme" \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 63a58895..29e1d5e0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -93,6 +93,9 @@ addopts = [ [tool.pylint.master] # https://github.com/PyCQA/pylint/issues/4081#issuecomment-778242554 init-hook = 'import sys; sys.setrecursionlimit(3 * sys.getrecursionlimit())' +ignore-paths = [ + 'docs/' +] [tool.pylint.FORMAT] max_line_length=120 diff --git a/tests/stats/test_diebold_mariano.py b/tests/stats/test_diebold_mariano.py index de8abc2f..369f45b3 100644 --- a/tests/stats/test_diebold_mariano.py +++ b/tests/stats/test_diebold_mariano.py @@ -1,8 +1,6 @@ """ This module contains unit tests for scores.stats.tests.diebold_mariano_impl """ -import warnings - import numpy as np import pytest import xarray as xr