Skip to content

Commit 3f2b5ee

Browse files
committed
Update to repo-config v0.4.0
Signed-off-by: Leandro Lucarella <[email protected]>
1 parent bb9fcfb commit 3f2b5ee

File tree

4 files changed

+46
-11
lines changed

4 files changed

+46
-11
lines changed

.cookiecutter-replay.json

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"cookiecutter": {
3+
"Introduction": "]\n\nWelcome to repo-config Cookiecutter template!\n\nThis template will help you to create a new repository for your project. You will be asked to provide some information about your project.\n\nHere is an explanation of what each variable is for and will be used for:\n\n* `type`: The type of repository. It must be chosen from the list.\n\n* `name`: The name of the project. This will be used to build defaults for\n other inputs, such as `title`, `python_package`, etc. It should be one word,\n using only alphanumeric characters (and starting with a letter). It can\n include also `_` and `-` which will be handled differently when building\n other variables from it (replaced by spaces in titles for example).\n\n* `description`: A short description of the project. It will be used as the\n description in the `README.md`, `pyproject.toml`, `mkdocs.yml`, etc.\n\n* `title`: A human-readable name or title for the project. It will be used in\n the `README.md`, `CONTRIBUTING.md`, and other files to refer to the project,\n as well as the site title in `mkdocs.yml`.\n\n* `keywords`: A comma-separated list of keywords that will be used in the\n `pyproject.toml` file. If left untouched, it will use only some predefined\n keywords. If anything else is entered, it will be **added** to the default\n keywords.\n\n* `github_org`: The GitHub handle of the organization where the project will\n reside. This will be used to generate links to the project on GitHub.\n\n* `license`: Currently, only two options are provided: `MIT`, which should be\n used for open-source projects, and `Proprietary`, which should be used for\n closed-source projects. This will be added to file headers and used as the\n license in `pyproject.toml`.\n\n* `author_name`, `author_email`: The name and email address of the author of\n the project. They will be used in the copyright notice in file headers and\n as the author in `pyproject.toml`.\n\n* `python_package`: The Python package in which this project will reside. All\n files provided by this project should be located in this package. This needs\n to be a list of valid Python identifiers separated by dots. The source file\n structure will be derived from this. For example, `frequenz.actor.example`\n will generate files in `src/frequenz/actor/example`.\n\n* `pypi_package_name`: The name of the PyPI/wheel/distribution package. This\n should be consistent with the `python_package`, usually replacing `.` with\n `-`. For example, `frequenz-actor-example`.\n\n* `github_repo_name`: The handle of the GitHub repository where the project\n will reside. This will be used to generate links to the project on GitHub and\n as the top-level directory name.\n\n* `default_codeowners`: A space-separated list of GitHub teams (`@org/team`) or\n users (`@user`) that will be the default code owners for this project. This\n will be used to build the `CODEOWNERS` file. Please refer to the [code owners\n documentation] for more details on the valid syntax.\n\n[code owners documentation]: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners\n\n\n[Please press any key to continue",
34
"type": "lib",
45
"name": "sdk",
56
"description": "A development kit to interact with the Frequenz development platform",
@@ -15,14 +16,41 @@
1516
"default_codeowners": "@frequenz-floss/python-sdk-team",
1617
"_extensions": [
1718
"jinja2_time.TimeExtension",
19+
"local_extensions.as_identifier",
1820
"local_extensions.default_codeowners",
1921
"local_extensions.github_repo_name",
22+
"local_extensions.introduction",
2023
"local_extensions.keywords",
2124
"local_extensions.pypi_package_name",
2225
"local_extensions.python_package",
2326
"local_extensions.src_path",
2427
"local_extensions.title"
2528
],
26-
"_template": "gh:frequenz-floss/frequenz-repo-config-python"
29+
"_template": "gh:frequenz-floss/frequenz-repo-config-python",
30+
},
31+
"_cookiecutter": {
32+
"Introduction": "{{cookiecutter | introduction}}",
33+
"type": [
34+
"actor",
35+
"api",
36+
"app",
37+
"lib",
38+
"model"
39+
],
40+
"name": null,
41+
"description": null,
42+
"title": "{{cookiecutter | title}}",
43+
"keywords": "(comma separated: 'frequenz', <type> and <name> are included automatically)",
44+
"github_org": "frequenz-floss",
45+
"license": [
46+
"MIT",
47+
"Proprietary"
48+
],
49+
"author_name": "Frequenz Energy-as-a-Service GmbH",
50+
"author_email": "[email protected]",
51+
"python_package": "{{cookiecutter | python_package}}",
52+
"pypi_package_name": "{{cookiecutter | pypi_package_name}}",
53+
"github_repo_name": "{{cookiecutter | github_repo_name}}",
54+
"default_codeowners": "(like @some-org/some-team; defaults to a team based on the repo type)"
2755
}
28-
}
56+
}

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
python -m pip install -e .[dev-noxfile]
5151
5252
- name: Run nox
53-
# To speed things up a bit we use the speciall ci_checks_max session
53+
# To speed things up a bit we use the special ci_checks_max session
5454
# that uses the same venv to run multiple linting sessions
5555
run: nox -e ci_checks_max pytest_min
5656
timeout-minutes: 10

mkdocs.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ theme:
2222
repo: fontawesome/brands/github
2323
custom_dir: docs/overrides
2424
features:
25+
- content.code.annotate
26+
- content.code.copy
2527
- navigation.instant
2628
- navigation.tabs
2729
- navigation.top
@@ -62,16 +64,20 @@ markdown_extensions:
6264
- admonition
6365
- attr_list
6466
- pymdownx.details
65-
- pymdownx.superfences
66-
- pymdownx.tasklist
67-
- pymdownx.tabbed
67+
- pymdownx.highlight:
68+
anchor_linenums: true
69+
line_spans: __span
70+
pygments_lang_class: true
71+
- pymdownx.keys
6872
- pymdownx.snippets:
6973
check_paths: true
7074
- pymdownx.superfences:
7175
custom_fences:
7276
- name: mermaid
7377
class: mermaid
7478
format: "!!python/name:pymdownx.superfences.fence_code_format"
79+
- pymdownx.tabbed
80+
- pymdownx.tasklist
7581
- toc:
7682
permalink: "¤"
7783

@@ -97,6 +103,7 @@ plugins:
97103
show_root_members_full_path: true
98104
show_source: true
99105
import:
106+
# See https://mkdocstrings.github.io/python/usage/#import for details
100107
- https://docs.python.org/3/objects.inv
101108
- https://frequenz-floss.github.io/frequenz-channels-python/v0.14/objects.inv
102109
- https://grpc.github.io/grpc/python/objects.inv

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
requires = [
66
"setuptools == 67.7.2",
77
"setuptools_scm[toml] == 7.1.0",
8-
"frequenz-repo-config[lib] == 0.3.0",
8+
"frequenz-repo-config[lib] == 0.4.0",
99
]
1010
build-backend = "setuptools.build_meta"
1111

@@ -14,7 +14,7 @@ name = "frequenz-sdk"
1414
description = "A development kit to interact with the Frequenz development platform"
1515
readme = "README.md"
1616
license = { text = "MIT" }
17-
keywords = ["frequenz", "sdk", "microgrid", "actor"]
17+
keywords = ["frequenz", "python", "lib", "library", "sdk", "microgrid"]
1818
classifiers = [
1919
"Development Status :: 3 - Alpha",
2020
"Intended Audience :: Developers",
@@ -63,7 +63,7 @@ dev-mkdocs = [
6363
"mkdocs-material == 9.1.19",
6464
"mkdocs-section-index == 0.3.5",
6565
"mkdocstrings[python] == 0.22.0",
66-
"frequenz-repo-config[lib] == 0.3.0",
66+
"frequenz-repo-config[lib] == 0.4.0",
6767
]
6868
dev-mypy = [
6969
"mypy == 1.4.1",
@@ -72,7 +72,7 @@ dev-mypy = [
7272
# For checking the noxfile, docs/ script, and tests
7373
"frequenz-sdk[dev-mkdocs,dev-noxfile,dev-pytest]",
7474
]
75-
dev-noxfile = ["nox == 2023.4.22", "frequenz-repo-config[lib] == 0.3.0"]
75+
dev-noxfile = ["nox == 2023.4.22", "frequenz-repo-config[lib] == 0.4.0"]
7676
dev-pylint = [
7777
"pylint == 2.17.5",
7878
# For checking the noxfile, docs/ script, and tests
@@ -107,7 +107,7 @@ include = '\.pyi?$'
107107
[tool.isort]
108108
profile = "black"
109109
line_length = 88
110-
src_paths = ["src", "examples", "tests"]
110+
src_paths = ["benchmarks", "examples", "src", "tests"]
111111

112112
[tool.pylint.similarities]
113113
ignore-comments = ['yes']

0 commit comments

Comments
 (0)