Skip to content

Commit 99dcf8e

Browse files
author
Tom Softreck
committed
update structure
1 parent a8a7863 commit 99dcf8e

2 files changed

Lines changed: 152 additions & 0 deletions

File tree

codecov.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
codecov:
2+
require_ci_to_pass: yes
3+
notify:
4+
after_n_builds: 3
5+
status:
6+
project:
7+
default:
8+
target: auto
9+
threshold: 1%
10+
base: auto
11+
patch:
12+
default:
13+
target: auto
14+
threshold: 1%
15+
base: auto
16+
17+
comment:
18+
layout: "reach,diff,flags,files,footer"
19+
behavior: default
20+
require_changes: no
21+
require_base: no
22+
require_head: yes
23+
branches: null
24+
25+
coverage:
26+
precision: 2
27+
round: down
28+
range: "70...100"
29+
status:
30+
project:
31+
default:
32+
target: auto
33+
threshold: 1%
34+
base: auto
35+
patch:
36+
default:
37+
target: auto
38+
threshold: 1%
39+
base: auto
40+
41+
ignore:
42+
- "**/__pycache__"
43+
- "**/tests"
44+
- "**/test_*.py"
45+
- "**/conftest.py"
46+
- "**/setup.py"
47+
- "**/docs"
48+
- "**/.github"
49+
- "**/.git"
50+
- "**/.tox"
51+
- "**/.pytest_cache"
52+
- "**/.mypy_cache"
53+
- "**/.coverage"

docs/conf.py

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
# Configuration file for the Sphinx documentation builder.
2+
#
3+
# This file only contains a selection of the most common options. For a full
4+
# list see the documentation:
5+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
6+
7+
# -- Path setup --------------------------------------------------------------
8+
9+
import os
10+
import sys
11+
from datetime import datetime
12+
13+
# Add the project root to the Python path
14+
sys.path.insert(0, os.path.abspath('..'))
15+
16+
# -- Project information -----------------------------------------------------
17+
18+
project = 'TaskProvision'
19+
copyright = f'{datetime.now().year}, TaskProvision Team'
20+
author = 'TaskProvision Team'
21+
22+
# The full version, including alpha/beta/rc tags
23+
release = '0.1.0'
24+
25+
# -- General configuration ---------------------------------------------------
26+
27+
extensions = [
28+
'sphinx.ext.autodoc',
29+
'sphinx.ext.napoleon',
30+
'sphinx.ext.viewcode',
31+
'sphinx.ext.intersphinx',
32+
'sphinx.ext.coverage',
33+
'sphinx.ext.doctest',
34+
'sphinx.ext.todo',
35+
'sphinx.ext.ifconfig',
36+
'sphinx.ext.githubpages',
37+
'myst_parser',
38+
]
39+
40+
# Add any paths that contain templates here, relative to this directory.
41+
templates_path = ['_templates']
42+
43+
# List of patterns, relative to source directory, that match files and
44+
# directories to ignore when looking for source files.
45+
# This pattern also affects html_static_path and html_extra_path.
46+
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
47+
48+
# -- Options for HTML output -------------------------------------------------
49+
50+
# The theme to use for HTML and HTML Help pages.
51+
html_theme = 'sphinx_rtd_theme'
52+
53+
# Add any paths that contain custom static files (such as style sheets) here,
54+
# relative to this directory. They are copied after the builtin static files,
55+
# so a file named "default.css" will overwrite the builtin "default.css".
56+
html_static_path = ['_static']
57+
58+
# -- Extension configuration -------------------------------------------------
59+
60+
# Autodoc settings
61+
autodoc_default_options = {
62+
'members': True,
63+
'member-order': 'bysource',
64+
'special-members': '__init__',
65+
'undoc-members': True,
66+
'exclude-members': '__weakref__'
67+
}
68+
69+
# Intersphinx mapping
70+
intersphinx_mapping = {
71+
'python': ('https://docs.python.org/3', None),
72+
'sphinx': ('https://www.sphinx-doc.org/en/master/', None),
73+
}
74+
75+
# Napoleon settings
76+
napoleon_google_docstring = True
77+
napoleon_numpy_docstring = False
78+
napoleon_include_init_with_doc = True
79+
napoleon_include_private_with_doc = False
80+
napoleon_include_special_with_doc = True
81+
napoleon_use_admonition_for_examples = False
82+
napoleon_use_admonition_for_notes = False
83+
napoleon_use_admonition_for_references = False
84+
napoleon_use_ivar = False
85+
napoleon_use_param = True
86+
napoleon_use_rtype = True
87+
88+
# MyST settings
89+
myst_enable_extensions = [
90+
"colon_fence",
91+
"deflist",
92+
"dollarmath",
93+
"html_admonition",
94+
"html_image",
95+
"replacements",
96+
"smartquotes",
97+
"substitution",
98+
"tasklist",
99+
]

0 commit comments

Comments
 (0)