Skip to content

Commit

Permalink
Mypy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
xfenix committed Oct 18, 2021
1 parent 8ecb933 commit 14f2249
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ jobs:
run: |
pip install poetry
poetry install
- name: Check code base via pylint
- name: Run linting
run: |
poetry run pylint --fail-under 10.0 **/*.py
poetry run mypy .
- name: Build package and check installation process is ok
run: |
poetry build
Expand Down
3 changes: 2 additions & 1 deletion envcast/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class GenericEnvironmentProcessor:
"""Main class for the app."""

BOOLEAN_VALUES: tuple[str] = ("1", "y", "yes", "true", "ok", "okay", "on", "enabled")
BOOLEAN_VALUES: tuple[str, ...] = ("1", "y", "yes", "true", "ok", "okay", "on", "enabled")
SEPARATORS_FOR_LIST_TYPE: set[str] = {"|", ",", " "}

@abc.abstractmethod
Expand Down Expand Up @@ -103,6 +103,7 @@ def set_dotenv_path(
if not self._path_for_dotenv.is_file() or not self._path_for_dotenv.exists():
raise exceptions.IncorrectDotenvPath(str(self._path_for_dotenv))
self._path_for_dotenv = pathlib.Path(full_path).resolve()
return self

@functools.lru_cache(maxsize=None)
def _load_dotenv_file(self) -> dict:
Expand Down

0 comments on commit 14f2249

Please sign in to comment.