-
Notifications
You must be signed in to change notification settings - Fork 20
Upgrade to repo-config v0.6.1 #620
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
Conversation
b926787 to
f0a7943
Compare
|
OK, this is working and only waiting for the repo-config release. It would be good to merge ASAP so new PRs don't introduce new |
|
Nice side effect: this also speeds up the CI by a minute or two. |
56e1c9f to
aefd5d3
Compare
aefd5d3 to
f714e20
Compare
|
Ready for review, updated branch protection rules for the new matrix variable, enabled auto-merge. |
Signed-off-by: Leandro Lucarella <[email protected]>
Signed-off-by: Leandro Lucarella <[email protected]>
Now `pydoclint` is used instead. Signed-off-by: Leandro Lucarella <[email protected]>
These are now installed via repo-config. Signed-off-by: Leandro Lucarella <[email protected]>
Now `flake8` is used to check docstrings, so the optional depdendencies should match that. Also add the configuration for `flake8` and the plugins it runs. Signed-off-by: Leandro Lucarella <[email protected]>
Flake8 runs much faster than pylint, so it is preferred. Signed-off-by: Leandro Lucarella <[email protected]>
Adds command-line options and also adds the stub dependencies. Signed-off-by: Leandro Lucarella <[email protected]>
Collected positional and keyword argument should be documented using also the asterisks. Signed-off-by: Leandro Lucarella <[email protected]>
Signed-off-by: Leandro Lucarella <[email protected]>
Signed-off-by: Leandro Lucarella <[email protected]>
Signed-off-by: Leandro Lucarella <[email protected]>
Signed-off-by: Leandro Lucarella <[email protected]>
Signed-off-by: Leandro Lucarella <[email protected]>
Signed-off-by: Leandro Lucarella <[email protected]>
Signed-off-by: Leandro Lucarella <[email protected]>
Signed-off-by: Leandro Lucarella <[email protected]>
Signed-off-by: Leandro Lucarella <[email protected]>
Signed-off-by: Leandro Lucarella <[email protected]>
These imports are used to break circular imports in a very convoluted set of circular dependencies. To do that some types need to be specified as strings and use `typing.TYPE_CHECKING` to conditionally add imports, and it seems like flake8 doesn't detect those strings as types being used. Signed-off-by: Leandro Lucarella <[email protected]>
`microgrid.grid.get()` returns `Grid | None`, so before accessing any attributes from `grid` we need to make sure it is not `None`. Signed-off-by: Leandro Lucarella <[email protected]>
f714e20 to
65cc73c
Compare
Signed-off-by: Leandro Lucarella <[email protected]>
65cc73c to
0aa3c8a
Compare
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 only found a few cosmetics to check for
src/frequenz/sdk/timeseries/_formula_engine/_formula_generators/_grid_power_formula.py
Show resolved
Hide resolved
src/frequenz/sdk/timeseries/_formula_engine/_formula_generators/_pv_power_formula.py
Outdated
Show resolved
Hide resolved
|
@daniel-zullo-frequenz I just replied to your comments. If it's OK with you please approve so it can be merged. |
Co-authored-by: daniel-zullo-frequenz <[email protected]> Signed-off-by: Leandro Lucarella <[email protected]>
1c93bd4 to
5e879be
Compare
The new repo-config version brings a few important changes:
darglintwithpydoclintflake8basic checksflake8basic checks in tests and benchmarksBecuase of this, this PR is very big, as it needs to fix a lot of issues detected by
pydoclintandflake8.The first commits, up to Add
mypyconfiguration topyproject.tomldeal with the upgrade of repo-config templates.The rest of the commits are documentation fixes (first from
pydoclintand then frompydocstyle) plus some otherflake8fixes, usually in that order.