Skip to content

Commit fd04aa9

Browse files
authored
Fix tests namespace pollution from entsoe and remove tests/init (#201)
See EnergieID/entsoe-py#447 for details. Example of the problem: ``` nox > mypy docs noxfile.py tests Success: no issues found in 8 source files nox > pylint src docs noxfile.py tests ************* Module tests tests/__init__.py:1:0: F0010: error while code parsing: Unable to load file tests/__init__.py: [Errno 2] No such file or directory: 'tests/__init__.py' (parse-error) ``` THis also removes the init file, as described in frequenz-io/rnd#170
2 parents c148173 + 6d87d56 commit fd04aa9

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ requires-python = ">= 3.11, < 4"
3939
# TODO(cookiecutter): Remove and add more dependencies if appropriate
4040
dependencies = [
4141
"click >= 8.1.8, < 9",
42-
"entsoe-py >= 0.6.16, < 0.8.0",
42+
# Stick to a version without a polluting `tests` package: https://github.com/EnergieID/entsoe-py/pull/447
43+
"entsoe-py >= 0.6.16, < 0.7.1",
4344
"frequenz-api-common >= 0.6.5, < 0.9.0",
4445
"grpcio >= 1.72.1, < 2",
4546
"frequenz-channels >= 1.6.1, < 2",

src/frequenz/client/electricity_trading/cli/day_ahead.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from datetime import datetime
77

88
import pandas as pd
9-
from entsoe import EntsoePandasClient # type: ignore[attr-defined]
9+
from entsoe import EntsoePandasClient
1010

1111

1212
def list_day_ahead_prices(

tests/__init__.py

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)