-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to repo-config #488
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've just have a few cosmetics to check for, LGTM
Updated, it also fixes the CI (isort) issues |
Many files were updated from the generated files by repo-config. There are some changes that need some clarification: GitHub workflow: - The explicit cache is not needed because the Python action supports caching natively. - The announcement discussion for new release is not created anymore as it was mainly noise, nobody ever used it. pyproject.toml: - We ping build dependencies, as they don't affect users. - pytest-cov dependency is removed because we are not actually producing coverage reports. Signed-off-by: Leandro Lucarella <[email protected]>
Signed-off-by: Leandro Lucarella <[email protected]>
We add inventories for all the dependencies we can find an inventory for. Signed-off-by: Leandro Lucarella <[email protected]>
Since we require Python 3.11 or later, we can use the built-in tomllib module instead. Signed-off-by: Leandro Lucarella <[email protected]>
These errors went unnoticed in the past because the file wasn't being checked by `mypy`. We also need to ignore type-checking for sybil, as it doesn't have typing information. Signed-off-by: Leandro Lucarella <[email protected]>
There is very little gain in making the import of the `microgrid` module to happen automatically and it makes the `conftest.py` script not generic enough to be shared by different projects (which is something we eventually want to do). Signed-off-by: Leandro Lucarella <[email protected]>
Signed-off-by: Leandro Lucarella <[email protected]>
This is for running `mypy`. For some unknown reason before migrating to repo-config this dependency was pulled automatically (probably by the `--install-types` `mypy` option) but now it isn't anymore. Without this, `mypy` crashes with this error: ``` nox > mypy --install-types --namespace-packages --non-interactive --explicit-package-bases --strict -p frequenz.sdk -p benchmarks -p docs -p examples -p noxfile -p tests -p src Traceback (most recent call last): File "/home/luca/devel/sdk/.nox/mypy/bin/mypy", line 8, in <module> sys.exit(console_entry()) ^^^^^^^^^^^^^^^ File "/home/luca/devel/sdk/.nox/mypy/lib/python3.11/site-packages/mypy/__main__.py", line 15, in console_entry main() File "mypy/main.py", line 95, in main File "mypy/main.py", line 174, in run_build File "mypy/build.py", line 197, in build File "mypy/build.py", line 270, in _build File "mypy/build.py", line 2927, in dispatch File "mypy/build.py", line 3325, in process_graph File "mypy/build.py", line 3441, in process_stale_scc File "mypy/build.py", line 2586, in generate_unused_ignore_notes File "mypy/errors.py", line 672, in generate_unused_ignore_errors File "mypy/errors.py", line 439, in _add_error_info AssertionError ``` Signed-off-by: Leandro Lucarella <[email protected]>
daniel-zullo-frequenz
approved these changes
Jul 7, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
part:actor
Affects an actor ot the actors utilities (decorator, etc.)
part:config
Affects the configuration management
part:data-pipeline
Affects the data pipeline
part:docs
Affects the documentation
part:tests
Affects the unit, integration and performance (benchmarks) tests
part:tooling
Affects the development tooling (CI, deployment, dependency management, etc.)
type:tech-debt
Improves the project without visible changes for users
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
repo-config
pydantic.parse_raw_as
toml
packageimport
in a code examplesrc/conftest.py
types-protobuf