Skip to content

Commit 60fdf38

Browse files
committed
Remove cookiecutter todos
Signed-off-by: Mathias L. Baumann <[email protected]>
1 parent 709568f commit 60fdf38

File tree

11 files changed

+5
-59
lines changed

11 files changed

+5
-59
lines changed

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ body:
5050
- Documentation (part:docs)
5151
- Unit, integration and performance tests (part:tests)
5252
- Build script, CI, dependencies, etc. (part:tooling)
53-
# TODO(cookiecutter): Add other parts
54-
# Please have in mind that that the part:xxx labels need to
55-
# be created in the GitHub repository.
5653
validations:
5754
required: true
5855
- type: textarea

.github/keylabeler.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,3 @@ labelMappings:
1616
"part:tests": "part:tests"
1717
"part:tooling": "part:tooling"
1818
"part:❓": "part:❓"
19-
# TODO(cookiecutter): Add other parts
20-
# Please have in mind that that the part:xxx labels need to
21-
# be created in the GitHub repository.

.github/labeler.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
# For more details on the configuration please see:
77
# https://github.com/marketplace/actions/labeler
88

9-
# TODO(cookiecutter): Add different parts of the source
109
# For example:
1110
#
1211
# "part:module":

.github/workflows/release-notes-check.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ jobs:
2222
if: github.event_name == 'pull_request'
2323
uses: brettcannon/check-for-changed-files@4170644959a21843b31f1181f2a1761d65ef4791 # v1.2.0
2424
with:
25-
# TODO(cookiecutter): Uncomment the following line for private repositories, otherwise remove it and remove it
26-
# token: ${{ secrets.github_token }}
2725
file-pattern: "RELEASE_NOTES.md"
2826
prereq-pattern: "src/**"
2927
skip-label: "cmd:skip-release-notes"

CODEOWNERS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44
# Fallback owner.
55
# These are the default owners for everything in the repo, unless a later match
66
# takes precedence.
7-
# TODO(cookiecutter): Add more specific code-owners, check if the default is correct
87
* @frequenz-floss/api-dispatch-team

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88

99
Dispatch API client for Python
1010

11-
TODO(cookiecutter): Improve the README file
12-
1311
## Supported Platforms
1412

1513
The following platforms are officially supported (tested):

docs/_scripts/macros.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,5 @@ def define_env(env: macros.MacrosPlugin) -> None:
7777
# https://squidfunk.github.io/mkdocs-material/reference/code-blocks/#adding-annotations
7878
env.variables["code_annotation_marker"] = _CODE_ANNOTATION_MARKER
7979

80-
# TODO(cookiecutter): Add any other macros, variables and filters here.
81-
8280
# This hook needs to be done at the end of the `define_env` function.
8381
_hook_macros_plugin(env)

mkdocs.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,12 @@ site_author: "Frequenz Energy-as-a-Service GmbH"
88
copyright: "Copyright © 2024 Frequenz Energy-as-a-Service GmbH"
99
repo_name: "frequenz-client-dispatch-python"
1010
repo_url: "https://github.com/frequenz-floss/frequenz-client-dispatch-python"
11-
# TODO(cookiecutter): "main" is the GitHub repo default branch, you might want to update it
12-
# if the project uses a different default branch.
13-
edit_uri: "edit/main/docs/"
11+
edit_uri: "edit/v0.x.x/docs/"
1412
strict: true # Treat warnings as errors
1513

1614
# Build directories
1715
theme:
1816
name: "material"
19-
# TODO(cookiecutter): You might want to change the logo, the file is located in "docs/"
2017
logo: _img/logo.png
2118
favicon: _img/logo.png
2219
language: en
@@ -51,7 +48,6 @@ theme:
5148
name: Switch to light mode
5249

5350
extra:
54-
# TODO(cookiecutter): You probably want to update the social links
5551
social:
5652
- icon: fontawesome/brands/github
5753
link: https://github.com/frequenz-floss
@@ -116,10 +112,9 @@ plugins:
116112
show_source: true
117113
signature_crossrefs: true
118114
import:
119-
# TODO(cookiecutter): You might want to add other external references here
120-
# See https://mkdocstrings.github.io/python/usage/#import for details
121115
- https://docs.python.org/3/objects.inv
122116
- https://typing-extensions.readthedocs.io/en/stable/objects.inv
117+
- https://frequenz-floss.github.io/frequenz-api-dispatch/v0.12/objects.inv
123118
# Note this plugin must be loaded after mkdocstrings to be able to use macros
124119
# inside docstrings. See the comment in `docs/_scripts/macros.py` for more
125120
# details

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ description = "Dispatch API client for Python"
1515
readme = "README.md"
1616
license = { text = "MIT" }
1717
keywords = ["frequenz", "python", "lib", "library", "dispatch-client", "dispatch", "client", "api", "python"]
18-
# TODO(cookiecutter): Remove and add more classifiers if appropriate
1918
classifiers = [
2019
"Development Status :: 3 - Alpha",
2120
"Intended Audience :: Developers",
@@ -26,17 +25,17 @@ classifiers = [
2625
"Typing :: Typed",
2726
]
2827
requires-python = ">= 3.11, < 4"
29-
# TODO(cookiecutter): Remove and add more dependencies if appropriate
3028
dependencies = [
3129
"typing-extensions >= 4.5.0, < 5",
30+
"frequenz-api-dispatch >= 0.12.0, < 0.13",
31+
"frequenz-client-base >= 0.1.0, < 0.2",
3232
]
3333
dynamic = ["version"]
3434

3535
[[project.authors]]
3636
name = "Frequenz Energy-as-a-Service GmbH"
3737
3838

39-
# TODO(cookiecutter): Remove and add more optional dependencies if appropriate
4039
[project.optional-dependencies]
4140
dev-flake8 = [
4241
"flake8 == 6.1.0",
Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,4 @@
11
# License: MIT
22
# Copyright © 2024 Frequenz Energy-as-a-Service GmbH
33

4-
"""Dispatch API client for Python.
5-
6-
TODO(cookiecutter): Add a more descriptive module description.
7-
"""
8-
9-
10-
# TODO(cookiecutter): Remove this function
11-
def delete_me(*, blow_up: bool = False) -> bool:
12-
"""Do stuff for demonstration purposes.
13-
14-
Args:
15-
blow_up: If True, raise an exception.
16-
17-
Returns:
18-
True if no exception was raised.
19-
20-
Raises:
21-
RuntimeError: if blow_up is True.
22-
"""
23-
if blow_up:
24-
raise RuntimeError("This function should be removed!")
25-
return True
4+
"""Dispatch API client for Python."""

tests/test_dispatch_client.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,3 @@
33

44
"""Tests for the frequenz.client.dispatch package."""
55
import pytest
6-
7-
from frequenz.client.dispatch import delete_me
8-
9-
10-
def test_dispatch_client_succeeds() -> None: # TODO(cookiecutter): Remove
11-
"""Test that the delete_me function succeeds."""
12-
assert delete_me() is True
13-
14-
15-
def test_dispatch_client_fails() -> None: # TODO(cookiecutter): Remove
16-
"""Test that the delete_me function fails."""
17-
with pytest.raises(RuntimeError, match="This function should be removed!"):
18-
delete_me(blow_up=True)

0 commit comments

Comments
 (0)