Skip to content

Commit

Permalink
Run linters on the client code (frequenz-floss#73)
Browse files Browse the repository at this point in the history
- mypy: Check also the `frequenz.client.weather` package
- Run other linters to the client code
  • Loading branch information
leandro-lucarella-frequenz authored Jan 2, 2024
2 parents 3d3aac4 + e113651 commit da1f93b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

"""Configuration file for nox."""

from frequenz.repo.config import RepositoryType, nox
from frequenz.repo.config import nox
from frequenz.repo.config.nox import default

nox.configure(RepositoryType.API)
config = default.api_config.copy()
config.source_paths = ["py/frequenz/client"]
nox.configure(config)
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ namespace_packages = true
# used but getting the original ignored error when removing the type: ignore.
# See for example: https://github.com/python/mypy/issues/2960
#no_incremental = true
packages = ["frequenz.api.weather"]
packages = ["frequenz.api.weather", "frequenz.client.weather"]
strict = true

[[tool.mypy.overrides]]
Expand Down

0 comments on commit da1f93b

Please sign in to comment.