Skip to content

Commit 02e9e0d

Browse files
committed
Add the golden files
Add the generated golden files that will be used by the golden tests. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 99e0672 commit 02e9e0d

File tree

171 files changed

+7021
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

171 files changed

+7021
-0
lines changed

tests_golden/integration/test_cookiecutter_generation/actor/cookiecutter-stderr.txt

Whitespace-only changes.
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
./.github/ISSUE_TEMPLATE/bug.yml: # TODO(cookiecutter): Add other parts
2+
./.github/ISSUE_TEMPLATE/config.yml: # TODO(cookiecutter): Make sure the GitHub repository has a discussion category "Support"
3+
./.github/keylabeler.yml: # TODO(cookiecutter): Add other parts
4+
./.github/labeler.yml:# TODO(cookiecutter): Add different parts of the source
5+
./CODEOWNERS:# TODO(cookiecutter): Add more specific code-owners, check if the default is correct
6+
./CODEOWNERS:* TODO(cookiecutter): Add codeowners (like @{github_org}/some-team)# Temporary, should probably change
7+
./README.md:TODO(cookiecutter): Improve the README file
8+
./mkdocs.yml: # TODO(cookiecutter): You might want to add other external references here
9+
./mkdocs.yml: # TODO(cookiecutter): You might want to change the logo, the file is located in "docs/"
10+
./mkdocs.yml: social: # TODO(cookiecutter): You probably want to update the links
11+
./mkdocs.yml:# TODO(cookiecutter): "main" is the GitHub repo default branch, you might want to update it
12+
./pyproject.toml:[project.optional-dependencies] # TODO(cookiecutter): Remove and add more if appropriate
13+
./pyproject.toml:classifiers = [ # TODO(cookiecutter): Remove and add more if appropriate
14+
./pyproject.toml:dependencies = [ # TODO(cookiecutter): Remove and add more if appropriate
15+
./src/frequenz/actor/test/__init__.py:# TODO(cookiecutter): Remove this function
16+
./src/frequenz/actor/test/__init__.py:TODO(cookiecutter): Add a more descriptive module description.
17+
./tests/test_test.py:def test_test_fails() -> None: # TODO(cookiecutter): Remove
18+
./tests/test_test.py:def test_test_succeeds() -> None: # TODO(cookiecutter): Remove
19+
20+
--------------------------------------------------------------------------------
21+
22+
Your 🍪 frequenz-actor-test has been cut!
23+
24+
Here is a list of things that should be reviewed and FIXED:
25+
26+
Make sure to (create and) configure your GitHub repository too: https://github.com/frequenz-floss/frequenz-repo-config-python/wiki/Configuring-a-new-GitHub-repository
27+
28+
After completing it you can amend the previous commit using `git commit --amend` or create a new commit for the changes using `git commit`.
29+
30+
You can make sure linting and tests pass by creating a virtual environment, installing the development dependencies and running `nox`:
31+
32+
cd frequenz-actor-test
33+
# Requires at least python version 3.11
34+
python3 -m venv .venv
35+
. .venv/bin/activate
36+
pip install .[dev-noxfile]
37+
nox
38+
39+
To generate and serve the documentation:
40+
pip install .[dev-mkdocs]
41+
mkdocs serve
42+
43+
To initialize the GitHub pages website:
44+
mike deploy --update-aliases next latest
45+
mike set-default latest
46+
git push upstream gh-pages # or origin if you haven't forked the repo
47+
48+
Make sure that GitHub pages is enabled in your repository settings:
49+
https://github.com/frequenz-floss/frequenz-actor-test/settings/pages
50+
If all went well, your new website should be available soon at:
51+
https://frequenz-floss.github.io/frequenz-actor-test/
52+
53+
If you had any issues or find any errors in the generated files, please report them!
54+
https://github.com/frequenz-floss/frequenz-repo-config-python/issues/new/choose
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"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).\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",
4+
"type": "actor",
5+
"name": "test",
6+
"description": "Test description",
7+
"title": "Frequenz Test Actor",
8+
"keywords": "(comma separated: 'frequenz', <type> and <name> are included automatically)",
9+
"github_org": "frequenz-floss",
10+
"license": "MIT",
11+
"author_name": "Frequenz Energy-as-a-Service GmbH",
12+
"author_email": "[email protected]",
13+
"python_package": "frequenz.actor.test",
14+
"pypi_package_name": "frequenz-actor-test",
15+
"github_repo_name": "frequenz-actor-test",
16+
"default_codeowners": "(like @some-org/some-team; defaults to a team based on the repo type)",
17+
"_extensions": [
18+
"jinja2_time.TimeExtension",
19+
"local_extensions.default_codeowners",
20+
"local_extensions.github_repo_name",
21+
"local_extensions.introduction",
22+
"local_extensions.keywords",
23+
"local_extensions.pypi_package_name",
24+
"local_extensions.python_package",
25+
"local_extensions.src_path",
26+
"local_extensions.title"
27+
]
28+
}
29+
}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# GitHub issue form. For more information see:
2+
# https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-issue-forms
3+
4+
name: Report something is not working properly 🐛
5+
description:
6+
Use this if there is something that is not working properly. If you are not
7+
sure or you need help making something work, please ask a question instead.
8+
labels:
9+
- "priority:❓"
10+
- "type:bug"
11+
body:
12+
- type: markdown
13+
attributes:
14+
value:
15+
Thanks for taking the time to fill out this bug report!
16+
- type: textarea
17+
id: what-happened
18+
attributes:
19+
label: What happened?
20+
description: Please tell us what happened that shouldn't have.
21+
placeholder: What happened that shouldn't have.
22+
validations:
23+
required: true
24+
- type: textarea
25+
id: what-expected
26+
attributes:
27+
label: What did you expect instead?
28+
description: Please tell us what did you expect to happen.
29+
placeholder: What did you expect to happen.
30+
validations:
31+
required: true
32+
- type: input
33+
id: version
34+
attributes:
35+
label: Affected version(s)
36+
description:
37+
Please add a comma-separated list of the versions affected by this
38+
issue.
39+
placeholder: 'Example: v0.11.0, v0.12.0'
40+
- type: dropdown
41+
id: part
42+
attributes:
43+
label: Affected part(s)
44+
description:
45+
Which parts of the repo are affected by this issue? Select all that
46+
apply.
47+
multiple: true
48+
options:
49+
- I don't know (part:❓)
50+
- Documentation (part:docs)
51+
- Unit, integration and performance tests (part:tests)
52+
- 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.
56+
validations:
57+
required: true
58+
- type: textarea
59+
id: extra
60+
attributes:
61+
label: Extra information
62+
description:
63+
Please write here any extra information you think it might be relevant,
64+
e.g., if this didn't happen before, or if you suspect where the problem
65+
might be.
66+
placeholder: Any extra information you think it might be relevant.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# GitHub issue template chooser. For more information see:
2+
# https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository#configuring-the-template-chooser
3+
4+
blank_issues_enabled: true
5+
contact_links:
6+
- name: Ask a question ❓
7+
url: https://github.com/frequenz-floss/frequenz-actor-test/discussions/new?category=support
8+
# TODO(cookiecutter): Make sure the GitHub repository has a discussion category "Support"
9+
# Rename the "Q&A" category to "Support" and change the emoji to 🆘 (SOS)
10+
about: Use this if you are not sure how to do something, have installation problems, etc.
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# GitHub issue form. For more information see:
2+
# https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-issue-forms
3+
4+
name: Request a feature or enhancement ✨
5+
description: Use this if something is missing or could be done better or more easily.
6+
labels:
7+
- "part:❓"
8+
- "priority:❓"
9+
- "type:enhancement"
10+
body:
11+
- type: markdown
12+
attributes:
13+
value:
14+
Thanks for taking the time to fill out this feature or enhancement
15+
request!
16+
- type: textarea
17+
id: whats-needed
18+
attributes:
19+
label: What's needed?
20+
description:
21+
Please tell us what's missing or what could be done better or more easily.
22+
placeholder: What's missing or what could be done better or more easily.
23+
validations:
24+
required: true
25+
- type: textarea
26+
id: solution
27+
attributes:
28+
label: Proposed solution
29+
description:
30+
Please tell us how you think the needs above can be fulfilled. Only
31+
fill this field if it wasn't described above.
32+
placeholder:
33+
How do you think the needs above can be fulfilled. Only fill this field
34+
if it wasn't described above.
35+
- type: textarea
36+
id: use-cases
37+
attributes:
38+
label: Use cases
39+
description:
40+
Please tell us about the main use cases you see for this new feature or
41+
enhancement to help us understand more.
42+
placeholder:
43+
The main use cases you see for this new feature or enhancement to help
44+
us understand more.
45+
- type: textarea
46+
id: alternatives
47+
attributes:
48+
label: Alternatives and workarounds
49+
description:
50+
Please tell us if you tried any alternatives or workarounds for these
51+
use cases and how (un)useful they were.
52+
placeholder:
53+
Any alternatives or workarounds for these use cases and how (un)useful
54+
they were.
55+
- type: textarea
56+
id: additional-context
57+
attributes:
58+
label: Additional context
59+
description:
60+
Please add any additional information here - screenshots, diagrams, etc.
61+
placeholder: Any additional information here - screenshots, diagrams, etc.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Frequenz Test Actor Release Notes
2+
3+
## Summary
4+
5+
<!-- Here goes a general summary of what this release is about -->
6+
7+
## Upgrading
8+
9+
<!-- Here goes notes on how to upgrade from previous versions, including deprecations and what they should be replaced with -->
10+
11+
## New Features
12+
13+
<!-- Here goes the main new features and examples or instructions on how to use them -->
14+
15+
## Bug Fixes
16+
17+
<!-- Here goes notable bug fixes that are worth a special mention or explanation -->
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "pip"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
time: "07:00"
8+
labels:
9+
- "part:tooling"
10+
- "type:tech-debt"
11+
# Default versioning-strategy. For other versioning-strategy see:
12+
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#versioning-strategy
13+
versioning-strategy: auto
14+
# Allow up to 10 open pull requests for updates to dependency versions
15+
open-pull-requests-limit: 10
16+
17+
- package-ecosystem: "github-actions"
18+
directory: "/"
19+
schedule:
20+
interval: "daily"
21+
time: "06:00"
22+
labels:
23+
- "part:tooling"
24+
- "type:tech-debt"
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# KeywordLabeler app configuration. For more information check:
2+
# https://github.com/ZeWaka/KeywordLabeler#readme
3+
4+
# Determines if we search the title (optional). Defaults to true.
5+
matchTitle: true
6+
7+
# Determines if we search the body (optional). Defaults to true.
8+
matchBody: true
9+
10+
# Determines if label matching is case sensitive (optional). Defaults to true.
11+
caseSensitive: true
12+
13+
# Explicit keyword mappings to labels. Form of match:label. Required.
14+
labelMappings:
15+
"part:docs": "part:docs"
16+
"part:tests": "part:tests"
17+
"part:tooling": "part:tooling"
18+
"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.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Configuration for the Labeler GitHub action, executed by
2+
# .github/workflows/labeler.yml.
3+
#
4+
# The basic syntax is [label]: [path patterns].
5+
#
6+
# For more details on the configuration please see:
7+
# https://github.com/marketplace/actions/labeler
8+
9+
# TODO(cookiecutter): Add different parts of the source
10+
# For example:
11+
#
12+
# "part:module":
13+
# - "src/frequenz/actor/test/module/**"
14+
#
15+
# "part:other":
16+
# - "src/frequenz/actor/test/other/**"
17+
#
18+
# # For excluding some files (in this example, label "part:complicated"
19+
# # everything inside src/ with a .py suffix, except for src/__init__.py)
20+
# "part:complicated":
21+
# - any:
22+
# - "src/**/*.py"
23+
# - all:
24+
# - "!src/__init__.py"
25+
#
26+
# Please have in mind that that the part:xxx labels need to
27+
# be created in the GitHub repository.
28+
29+
"part:docs":
30+
- "**/*.md"
31+
- "docs/**"
32+
- "examples/**"
33+
- LICENSE
34+
35+
"part:tests":
36+
- "tests/**"
37+
38+
"part:tooling":
39+
- "**/*.ini"
40+
- "**/*.toml"
41+
- "**/*.yaml"
42+
- "**/*.yml"
43+
- ".git*"
44+
- ".git*/**"
45+
- "docs/*.py"
46+
- CODEOWNERS
47+
- MANIFEST.in
48+
- noxfile.py

0 commit comments

Comments
 (0)