Skip to content

Commit 36abb12

Browse files
committed
prefix
1 parent 932cc6d commit 36abb12

3 files changed

Lines changed: 36 additions & 14 deletions

File tree

docs/conf.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,38 +17,36 @@
1717

1818
# -- Project information -----------------------------------------------------
1919

20-
project = 'GitHub Activity'
21-
copyright = '2020, Chris Holdgraf'
22-
author = 'Chris Holdgraf'
20+
project = "GitHub Activity"
21+
copyright = "2020, Chris Holdgraf"
22+
author = "Chris Holdgraf"
2323

2424

2525
# -- General configuration ---------------------------------------------------
2626

2727
# Add any Sphinx extension module names here, as strings. They can be
2828
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
2929
# ones.
30-
extensions = [
31-
"myst_parser"
32-
]
30+
extensions = ["myst_parser"]
3331

3432
# Add any paths that contain templates here, relative to this directory.
35-
templates_path = ['_templates']
33+
templates_path = ["_templates"]
3634

3735
# List of patterns, relative to source directory, that match files and
3836
# directories to ignore when looking for source files.
3937
# This pattern also affects html_static_path and html_extra_path.
40-
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
38+
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
4139

4240

4341
# -- Options for HTML output -------------------------------------------------
4442

4543
# The theme to use for HTML and HTML Help pages. See the documentation for
4644
# a list of builtin themes.
4745
#
48-
html_theme = 'sphinx_book_theme'
46+
html_theme = "sphinx_book_theme"
4947
html_theme_options = {"single_page": True}
5048

5149
# Add any paths that contain custom static files (such as style sheets) here,
5250
# relative to this directory. They are copied after the builtin static files,
5351
# so a file named "default.css" will overwrite the builtin "default.css".
54-
html_static_path = ['_static']
52+
html_static_path = ["_static"]

github_activity/github_activity.py

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,41 @@
1414

1515
# The tags and description to use in creating subsets of PRs
1616
TAGS_METADATA_BASE = {
17+
"new": {
18+
"tags": ["feature", "new"],
19+
"pre": ["NEW"],
20+
"description": "New features added",
21+
},
1722
"enhancement": {
1823
"tags": ["enhancement", "feature", "enhancements"],
24+
"pre": ["NEW", "ENH"],
1925
"description": "Enhancements made",
2026
},
21-
"bug": {"tags": ["bug", "bugfix", "bugs"], "description": "Bugs fixed",},
27+
"bug": {
28+
"tags": ["bug", "bugfix", "bugs"],
29+
"pre": ["FIX", "BUG"],
30+
"description": "Bugs fixed",
31+
},
2232
"maintenance": {
2333
"tags": ["maintenance", "maint"],
34+
"pre": ["MAINT"],
2435
"description": "Maintenance and upkeep improvements",
2536
},
2637
"documentation": {
2738
"tags": ["documentation", "docs", "doc"],
39+
"pre": ["DOC", "DOCS"],
2840
"description": "Documentation improvements",
2941
},
30-
"api_change": {"tags": ["api-change", "apichange"], "description": "API Changes",},
42+
"api_change": {
43+
"tags": ["api-change", "apichange"],
44+
"tags": ["BREAK", "BREAKING", "UPGRADE"],
45+
"description": "API and Breaking Changes",
46+
},
47+
"deprecate": {
48+
"tags": ["deprecation", "deprecate"],
49+
"tags": ["DEPRECATE", "DEPRECATION"],
50+
"description": "Deprecated features",
51+
},
3152
}
3253

3354

setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from glob import glob
55
from pathlib import Path
66

7-
init = Path().joinpath('github_activity', '__init__.py')
7+
init = Path().joinpath("github_activity", "__init__.py")
88
for line in init.read_text().split("\n"):
99
if line.startswith("__version__ ="):
1010
version = line.split(" = ")[-1].strip('"')
@@ -33,5 +33,8 @@
3333
use_package_data=True,
3434
entry_points={"console_scripts": ["github-activity = github_activity.cli:main",]},
3535
install_requires=install_packages,
36-
extras_require={"testing": ["pytest", "pytest-regressions"], "sphinx": ["sphinx", "myst_parser", "sphinx_book_theme"]},
36+
extras_require={
37+
"testing": ["pytest", "pytest-regressions"],
38+
"sphinx": ["sphinx", "myst_parser", "sphinx_book_theme"],
39+
},
3740
)

0 commit comments

Comments
 (0)