Skip to content

Commit 2cbc99c

Browse files
committed
Enable mypy strict mode
This commit will enable mypy strict mode, and update code accordingly. Type annotations are not used at runtime. The standard library `typing` module includes a `TYPE_CHECKING` constant that is `False` at runtime, but `True` when conducting static type checking prior to runtime. Type imports will be included under `if TYPE_CHECKING:` conditions. These conditions will be ignored when calculating test coverage. https://docs.python.org/3/library/typing.html The Python standard library `logging.config` module uses type stubs. The typeshed types for the `logging.config` module are used solely for type-checking usage of the `logging.config` module itself. They cannot be imported and used to type annotate other modules. For this reason, dict config types will be vendored into a module in the inboard package. https://github.com/python/typeshed/blob/main/stdlib/logging/config.pyi The ASGI application in `inboard.app.main_base` will be updated to ASGI3 and type-annotated with `asgiref.typing`. Note that, while Uvicorn uses `asgiref.typing`, Starlette does not. The type signature expected by the Starlette/FastAPI `TestClient` therefore does not match `asgiref.typing.ASGIApplication`. A mypy `type: ignore[arg-type]` comment will be used to resolve this difference. https://asgi.readthedocs.io/en/stable/specs/main.html Also note that, while the `asgiref` package was a runtime dependency of Uvicorn 0.17.6, it was later removed from Uvicorn's runtime dependencies in 0.18.0 (Kludex/uvicorn#1305, Kludex/uvicorn#1532). However, `asgiref` is still used to type-annotate Uvicorn, so any downstream projects like inboard that type-check Uvicorn objects must also install `asgiref`. Therefore, `asgiref` will be added to inboard's development dependencies to ensure that type checking continues to work as expected. A Uvicorn options type will be added to a new inboard types module. The Uvicorn options type will be a `TypedDict` with fields corresponding to arguments to `uvicorn.run`. This type can be used to check arguments passed to `uvicorn.run`, which is how `inboard.start` runs Uvicorn. Uvicorn 0.17.6 is not fully type-annotated, and Uvicorn does not ship with a `py.typed` marker file until 0.19.0. It would be convenient to generate types dynamically with something like `getattr(uvicorn.run, "__annotations__")` (Python 3.9 or earlier) or `inspect.get_annotations(uvicorn.run)` (Python 3.10 or later). https://docs.python.org/3/howto/annotations.html It could look something like this: ```py UvicornOptions = TypedDict( # type: ignore[misc] "UvicornOptions", inspect.get_annotations(uvicorn.run), total=False, ) ``` Note the `type: ignore[misc]` comment. Mypy raises a `misc` error: `TypedDict() expects a dictionary literal as the second argument`. Unfortunately, `TypedDict` types are not intended to be generated dynamically, because they exist for the benefit of static type checking (python/mypy#3932, python/mypy#4128, python/mypy#13940). Furthermore, prior to Uvicorn 0.18.0, `uvicorn.run()` didn't enumerate keyword arguments, but instead accepted `kwargs` and passed them to `uvicorn.Config.__init__()` (Kludex/uvicorn#1423). The annotations from `uvicorn.Config.__init__()` would need to be used instead. Even after Uvicorn 0.18.0, the signatures of the two functions are not exactly the same (Kludex/uvicorn#1545), so it helps to have a static type defined. There will be some other differences from `uvicorn.run()`: - The `app` argument to `uvicorn.run()` accepts an un-parametrized `Callable` because Uvicorn tests use callables (Kludex/uvicorn#1067). It is not necessary for other packages to accept `Callable`, and it would need to be parametrized to pass mypy strict mode anyway. For these reasons, `Callable` will not be accepted in this type. - The `log_config` argument will use the new inboard dict config type instead of `dict[str, Any]` for stricter type checking.
1 parent 6893b78 commit 2cbc99c

14 files changed

Lines changed: 410 additions & 139 deletions

‎docs/contributing.md‎

Lines changed: 30 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,45 +13,53 @@
1313

1414
- _[Why use Git?](https://www.git-scm.com/about)_ Git enables creation of multiple versions of a code repository called branches, with the ability to track and undo changes in detail.
1515
- Install Git by [downloading](https://www.git-scm.com/downloads) from the website, or with a package manager like [Homebrew](https://brew.sh/).
16-
- [Configure Git to connect to GitHub with SSH](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/connecting-to-github-with-ssh).
17-
- [Fork](https://docs.github.com/en/free-pro-team@latest/github/getting-started-with-github/fork-a-repo) this repo.
16+
- [Configure Git to connect to GitHub with SSH](https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh).
17+
- [Fork](https://docs.github.com/en/get-started/quickstart/fork-a-repo) this repo.
1818
- Create a [branch](https://www.git-scm.com/book/en/v2/Git-Branching-Branches-in-a-Nutshell) in your fork.
1919
- Commit your changes with a [properly-formatted Git commit message](https://chris.beams.io/posts/git-commit/).
20-
- Create a [pull request (PR)](https://docs.github.com/en/free-pro-team@latest/github/collaborating-with-issues-and-pull-requests/about-pull-requests) to incorporate your changes into the upstream project you forked.
20+
- Create a [pull request (PR)](https://docs.github.com/en/github/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests) to incorporate your changes into the upstream project you forked.
2121

22-
## Code style
22+
## Code quality
2323

24-
- **Python code is formatted with [Black](https://black.readthedocs.io/en/stable/)**. Configuration for Black is stored in _[pyproject.toml](https://github.com/br3ndonland/inboard/blob/develop/pyproject.toml)_.
24+
### Code style
25+
26+
- **Python code is formatted with [Black](https://black.readthedocs.io/en/stable/)**. Configuration for Black is stored in _[pyproject.toml](https://github.com/br3ndonland/inboard/blob/HEAD/pyproject.toml)_.
2527
- **Python imports are organized automatically with [isort](https://pycqa.github.io/isort/)**.
2628
- The isort package organizes imports in three sections:
2729
1. Standard library
2830
2. Dependencies
2931
3. Project
3032
- Within each of those groups, `import` statements occur first, then `from` statements, in alphabetical order.
3133
- You can run isort from the command line with `poetry run isort .`.
32-
- Configuration for isort is stored in _[pyproject.toml](https://github.com/br3ndonland/inboard/blob/develop/pyproject.toml)_.
34+
- Configuration for isort is stored in _[pyproject.toml](https://github.com/br3ndonland/inboard/blob/HEAD/pyproject.toml)_.
3335
- Other web code (JSON, Markdown, YAML) is formatted with [Prettier](https://prettier.io/).
34-
- Code style is enforced with [pre-commit](https://pre-commit.com/), which runs [Git hooks](https://www.git-scm.com/book/en/v2/Customizing-Git-Git-Hooks).
3536

36-
- Configuration is stored in _[.pre-commit-config.yaml](https://github.com/br3ndonland/inboard/blob/develop/.pre-commit-config.yaml)_.
37-
- Pre-commit can run locally before each commit (hence "pre-commit"), or on different Git events like `pre-push`.
38-
- Pre-commit is installed in the Poetry environment. To use:
37+
### Static type checking
38+
39+
- To learn type annotation basics, see the [Python typing module docs](https://docs.python.org/3/library/typing.html), [Python type annotations how-to](https://docs.python.org/3/howto/annotations.html), the [Real Python type checking tutorial](https://realpython.com/python-type-checking/), and [this gist](https://gist.github.com/987bdc6263217895d4bf03d0a5ff114c).
40+
- Type annotations are not used at runtime. The standard library `typing` module includes a `TYPE_CHECKING` constant that is `False` at runtime, but `True` when conducting static type checking prior to runtime. Type imports are included under `if TYPE_CHECKING:` conditions so that they are not imported at runtime. These conditions are ignored when calculating test coverage.
41+
- Type annotations can be provided inline or in separate stub files. Much of the Python standard library is annotated with stubs. For example, the Python standard library [`logging.config` module uses type stubs](https://github.com/python/typeshed/blob/main/stdlib/logging/config.pyi). The typeshed types for the `logging.config` module are used solely for type-checking usage of the `logging.config` module itself. They cannot be imported and used to type annotate other modules.
42+
- The standard library `typing` module includes a `NoReturn` type. This would seem useful for [unreachable code](https://typing.readthedocs.io/en/stable/source/unreachable.html), including functions that do not return a value, such as test functions. Unfortunately mypy reports an error when using `NoReturn`, "Implicit return in function which does not return (misc)." To avoid headaches from the opaque "misc" category of [mypy errors](https://mypy.readthedocs.io/en/stable/error_code_list.html), these functions are annotated as returning `None`.
43+
- [Mypy](https://mypy.readthedocs.io/en/stable/) is used for type-checking. [Mypy configuration](https://mypy.readthedocs.io/en/stable/config_file.html) is included in _pyproject.toml_.
44+
- Mypy strict mode is enabled. Strict includes `--no-explicit-reexport` (`implicit_reexport = false`), which means that objects imported into a module will not be re-exported for import into other modules. Imports can be made into explicit exports with the syntax `from module import x as x` (i.e., changing from `import logging` to `import logging as logging`), or by including imports in `__all__`. This explicit import syntax can be confusing. Another option is to apply mypy overrides to any modules that need to leverage implicit exports.
3945

40-
```sh
41-
# after running `poetry install`
42-
path/to/inboard
43-
❯ poetry shell
46+
### Pre-commit
4447

45-
# install hooks that run before each commit
46-
path/to/inboard
47-
.venv ❯ pre-commit install
48+
[Pre-commit](https://pre-commit.com/) runs [Git hooks](https://www.git-scm.com/book/en/v2/Customizing-Git-Git-Hooks). Configuration is stored in _[.pre-commit-config.yaml](https://github.com/br3ndonland/inboard/blob/HEAD/.pre-commit-config.yaml)_. It can run locally before each commit (hence "pre-commit"), or on different Git events like `pre-push`. Pre-commit is installed in the Poetry environment. To use:
4849

49-
# and/or install hooks that run before each push
50-
path/to/inboard
51-
.venv ❯ pre-commit install --hook-type pre-push
52-
```
50+
```sh
51+
# after running `poetry install`
52+
path/to/inboard
53+
❯ poetry shell
5354

54-
- Pre-commit is also useful as a CI tool. The [hooks](https://github.com/br3ndonland/inboard/blob/develop/.github/workflows/hooks.yml) GitHub Actions workflow runs pre-commit hooks with [GitHub Actions](https://github.com/features/actions).
55+
# install hooks that run before each commit
56+
path/to/inboard
57+
.venv ❯ pre-commit install
58+
59+
# and/or install hooks that run before each push
60+
path/to/inboard
61+
.venv ❯ pre-commit install --hook-type pre-push
62+
```
5563

5664
## Python
5765

‎inboard/app/main_base.py‎

Lines changed: 41 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,41 +2,50 @@
22

33
import os
44
import sys
5-
from typing import Awaitable, Callable
5+
from typing import TYPE_CHECKING
66

7+
if TYPE_CHECKING:
8+
from asgiref.typing import (
9+
ASGIReceiveCallable,
10+
ASGISendCallable,
11+
HTTPResponseBodyEvent,
12+
HTTPResponseStartEvent,
13+
Scope,
14+
)
715

8-
class App:
9-
"""Define a simple ASGI interface for use with Uvicorn.
10-
---
11-
https://www.uvicorn.org/
12-
"""
1316

14-
def __init__(self, scope: dict) -> None:
15-
assert scope["type"] == "http"
16-
self.scope = scope
17+
def _compose_message() -> str:
18+
version = (
19+
f"{sys.version_info.major}.{sys.version_info.minor}"
20+
f".{sys.version_info.micro}"
21+
)
22+
process_manager = os.getenv("PROCESS_MANAGER", "gunicorn")
23+
if process_manager not in {"gunicorn", "uvicorn"}:
24+
raise NameError("Process manager needs to be either uvicorn or gunicorn.")
25+
server = "Uvicorn" if process_manager == "uvicorn" else "Uvicorn, Gunicorn,"
26+
return f"Hello World, from {server} and Python {version}!"
1727

18-
async def __call__(
19-
self, receive: dict, send: Callable[[dict], Awaitable]
20-
) -> dict[str, str]:
21-
await send(
22-
{
23-
"type": "http.response.start",
24-
"status": 200,
25-
"headers": [[b"content-type", b"text/plain"]],
26-
}
27-
)
28-
version = (
29-
f"{sys.version_info.major}.{sys.version_info.minor}"
30-
f".{sys.version_info.micro}"
31-
)
32-
process_manager = os.getenv("PROCESS_MANAGER", "gunicorn")
33-
if process_manager not in ["gunicorn", "uvicorn"]:
34-
raise NameError("Process manager needs to be either uvicorn or gunicorn.")
35-
server = "Uvicorn" if process_manager == "uvicorn" else "Uvicorn, Gunicorn,"
36-
message = f"Hello World, from {server} and Python {version}!"
37-
response: dict = {"type": "http.response.body", "body": message.encode("utf-8")}
38-
await send(response)
39-
return response
4028

29+
async def app(
30+
scope: Scope, receive: ASGIReceiveCallable, send: ASGISendCallable
31+
) -> None:
32+
"""Define a simple ASGI 3 application for use with Uvicorn.
4133
42-
app: Callable = App
34+
https://asgi.readthedocs.io/en/stable/introduction.html
35+
https://asgi.readthedocs.io/en/stable/specs/main.html#applications
36+
https://www.uvicorn.org/
37+
"""
38+
assert scope["type"] == "http"
39+
message = _compose_message()
40+
start_event: HTTPResponseStartEvent = {
41+
"type": "http.response.start",
42+
"status": 200,
43+
"headers": [(b"content-type", b"text/plain")],
44+
}
45+
body_event: HTTPResponseBodyEvent = {
46+
"type": "http.response.body",
47+
"body": message.encode("utf-8"),
48+
"more_body": False,
49+
}
50+
await send(start_event)
51+
await send(body_event)

‎inboard/logging_conf.py‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@
66
import os
77
import sys
88
from pathlib import Path
9+
from typing import TYPE_CHECKING
910

11+
if TYPE_CHECKING:
12+
from inboard.types import DictConfig
1013

11-
def find_and_load_logging_conf(logging_conf: str) -> dict:
14+
15+
def find_and_load_logging_conf(logging_conf: str) -> DictConfig:
1216
"""Find and load a logging configuration module or file."""
1317
logging_conf_path = Path(logging_conf)
1418
spec = (
@@ -23,7 +27,7 @@ def find_and_load_logging_conf(logging_conf: str) -> dict:
2327
exec_module(logging_conf_module)
2428
if not hasattr(logging_conf_module, "LOGGING_CONFIG"):
2529
raise AttributeError(f"No LOGGING_CONFIG in {logging_conf_module.__name__}")
26-
logging_conf_dict = getattr(logging_conf_module, "LOGGING_CONFIG")
30+
logging_conf_dict: DictConfig = getattr(logging_conf_module, "LOGGING_CONFIG")
2731
if not isinstance(logging_conf_dict, dict):
2832
raise TypeError("LOGGING_CONFIG is not a dictionary instance")
2933
return logging_conf_dict
@@ -32,12 +36,12 @@ def find_and_load_logging_conf(logging_conf: str) -> dict:
3236
def configure_logging(
3337
logger: logging.Logger = logging.getLogger(),
3438
logging_conf: str | None = os.getenv("LOGGING_CONF"),
35-
) -> dict:
39+
) -> DictConfig:
3640
"""Configure Python logging given the name of a logging module or file."""
3741
try:
3842
if not logging_conf:
3943
logging_conf_path = __name__
40-
logging_conf_dict = LOGGING_CONFIG
44+
logging_conf_dict: DictConfig = LOGGING_CONFIG
4145
else:
4246
logging_conf_path = logging_conf
4347
logging_conf_dict = find_and_load_logging_conf(logging_conf_path)
@@ -115,7 +119,7 @@ def set_filters(input_filters: str | None = None) -> set[str] | None:
115119
LOG_FILTERS = LogFilter.set_filters()
116120
LOG_FORMAT = str(os.getenv("LOG_FORMAT", "simple"))
117121
LOG_LEVEL = str(os.getenv("LOG_LEVEL", "info")).upper()
118-
LOGGING_CONFIG: dict = {
122+
LOGGING_CONFIG: DictConfig = {
119123
"version": 1,
120124
"disable_existing_loggers": False,
121125
"filters": {

‎inboard/start.py‎

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,15 @@
77
import os
88
import subprocess
99
from pathlib import Path
10+
from typing import TYPE_CHECKING
1011

11-
import uvicorn # type: ignore
12+
import uvicorn
1213

1314
from inboard.logging_conf import configure_logging
1415

16+
if TYPE_CHECKING:
17+
from inboard.types import DictConfig, UvicornOptions
18+
1519

1620
def run_pre_start_script(logger: logging.Logger = logging.getLogger()) -> str:
1721
"""Run a pre-start script at the provided path."""
@@ -44,7 +48,7 @@ def set_app_module(logger: logging.Logger = logging.getLogger()) -> str:
4448
raise
4549

4650

47-
def set_gunicorn_options(app_module: str) -> list:
51+
def set_gunicorn_options(app_module: str) -> list[str]:
4852
"""Set options for running the Gunicorn server."""
4953
gunicorn_conf_path = os.getenv("GUNICORN_CONF", "python:inboard.gunicorn_conf")
5054
worker_class = os.getenv("WORKER_CLASS", "uvicorn.workers.UvicornWorker")
@@ -53,64 +57,66 @@ def set_gunicorn_options(app_module: str) -> list:
5357
return ["gunicorn", "-k", worker_class, "-c", gunicorn_conf_path, app_module]
5458

5559

56-
def _split_uvicorn_option(option: str) -> list | None:
60+
def _split_uvicorn_option(option: str) -> list[str] | None:
5761
return (
5862
[option_item.strip() for option_item in str(option_value).split(sep=",")]
5963
if (option_value := os.getenv(option.upper()))
6064
else None
6165
)
6266

6367

64-
def _update_uvicorn_config_options(uvicorn_config_options: dict) -> dict:
68+
def _update_uvicorn_options(uvicorn_options: UvicornOptions) -> UvicornOptions:
6569
if uvicorn.__version__ >= "0.15.0":
6670
reload_delay = float(value) if (value := os.getenv("RELOAD_DELAY")) else None
6771
reload_excludes = _split_uvicorn_option("RELOAD_EXCLUDES")
6872
reload_includes = _split_uvicorn_option("RELOAD_INCLUDES")
69-
uvicorn_config_options_015 = dict(
73+
uvicorn_options_015: UvicornOptions = dict(
7074
reload_delay=reload_delay,
7175
reload_excludes=reload_excludes,
7276
reload_includes=reload_includes,
7377
)
74-
uvicorn_config_options.update(uvicorn_config_options_015)
78+
uvicorn_options.update(uvicorn_options_015)
7579
if value := os.getenv("UVICORN_CONFIG_OPTIONS"):
76-
uvicorn_config_options_json = json.loads(value)
77-
uvicorn_config_options.update(uvicorn_config_options_json)
78-
return uvicorn_config_options
80+
uvicorn_options_json: UvicornOptions = json.loads(value)
81+
uvicorn_options.update(uvicorn_options_json)
82+
return uvicorn_options
7983

8084

81-
def set_uvicorn_options(log_config: dict | None = None) -> dict:
85+
def set_uvicorn_options(log_config: DictConfig | None = None) -> UvicornOptions:
8286
"""Set options for running the Uvicorn server."""
8387
host = os.getenv("HOST", "0.0.0.0")
8488
port = int(os.getenv("PORT", "80"))
8589
log_level = os.getenv("LOG_LEVEL", "info")
8690
reload_dirs = _split_uvicorn_option("RELOAD_DIRS")
8791
use_reload = bool((value := os.getenv("WITH_RELOAD")) and value.lower() == "true")
88-
uvicorn_config_options = dict(
92+
uvicorn_options: UvicornOptions = dict(
8993
host=host,
9094
port=port,
9195
log_config=log_config,
9296
log_level=log_level,
9397
reload=use_reload,
9498
reload_dirs=reload_dirs,
9599
)
96-
return _update_uvicorn_config_options(uvicorn_config_options)
100+
return _update_uvicorn_options(uvicorn_options)
97101

98102

99103
def start_server(
100104
process_manager: str,
101105
app_module: str,
102106
logger: logging.Logger = logging.getLogger(),
103-
logging_conf_dict: dict | None = None,
107+
logging_conf_dict: DictConfig | None = None,
104108
) -> None:
105109
"""Start the Uvicorn or Gunicorn server."""
106110
try:
107111
if process_manager == "gunicorn":
108112
logger.debug("Running Uvicorn with Gunicorn.")
109-
gunicorn_options: list = set_gunicorn_options(app_module)
113+
gunicorn_options: list[str] = set_gunicorn_options(app_module)
110114
subprocess.run(gunicorn_options)
111115
elif process_manager == "uvicorn":
112116
logger.debug("Running Uvicorn without Gunicorn.")
113-
uvicorn_options: dict = set_uvicorn_options(log_config=logging_conf_dict)
117+
uvicorn_options: UvicornOptions = set_uvicorn_options(
118+
log_config=logging_conf_dict
119+
)
114120
uvicorn.run(app_module, **uvicorn_options)
115121
else:
116122
raise NameError("Process manager needs to be either uvicorn or gunicorn")

0 commit comments

Comments
 (0)