Skip to content

Commit

Permalink
Appease mypy and flake8 (somewhat)
Browse files Browse the repository at this point in the history
  • Loading branch information
dotboris committed Dec 7, 2023
1 parent a0ab81c commit 882b13a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion coveo_stew/ci/mypy_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def _mypy_config_path(self) -> Optional[Path]:
atexit.register(stack.close)
config_ref = importlib_resources.files("coveo_stew") / "package_resources/mypy.ini"
config_path = stack.enter_context(importlib_resources.as_file(config_ref))
return config_path
return Path(config_path) # Redundant by mypy is confused

assert isinstance(self.set_config, str) # mypy
return self._pyproject.project_path / self.set_config
Expand Down
2 changes: 1 addition & 1 deletion coveo_stew/ci/runner_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ class RunnerStatus(Enum):
Error = auto()

def __str__(self) -> str:
return self.name
return str(self.name) # conversion is redundant, but mypy is confused
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ black = true


[tool.stew.ci.custom-runners]
flake8 = { check-args = "--ignore=E501,W503" }
flake8 = { check-args = "--ignore=E501,W503,E203" }

[tool.stew.ci.custom-runners.isort]
check-args = ["--check", "--profile", "black", "."]
Expand Down

0 comments on commit 882b13a

Please sign in to comment.