Skip to content

Commit

Permalink
73: add pre-commit action
Browse files Browse the repository at this point in the history
  • Loading branch information
John-Sharples committed Oct 25, 2023
1 parent ec1f1ab commit 2853516
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
21 changes: 11 additions & 10 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 0 additions & 2 deletions tests/stats/test_diebold_mariano.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 2853516

Please sign in to comment.