Skip to content

Commit 78896ea

Browse files
committed
chore: Fix type checking
1 parent 60a5f94 commit 78896ea

File tree

26 files changed

+74
-31
lines changed

26 files changed

+74
-31
lines changed

.github/workflows/code-style.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,9 @@ jobs:
113113
114114
- name: Check typing with MyPy
115115
run: |
116-
mypy --install-types --ignore-missing-imports \
117-
--check-untyped-defs --non-interactive \
116+
mypy --install-types \
117+
--check-untyped-defs \
118+
--non-interactive \
118119
packages/*/dsw
119120
120121
# Consistency of version tagging

packages/dsw-command-queue/dsw/command_queue/command_queue.py

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

9-
import func_timeout
9+
import func_timeout # type: ignore
1010
import psycopg
1111
import psycopg.generators
1212
import tenacity

packages/dsw-command-queue/dsw/command_queue/py.typed

Whitespace-only changes.

packages/dsw-command-queue/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,8 @@ zip-safe = false
4040
[tool.setuptools.packages.find]
4141
include = ['dsw*']
4242

43+
[tool.setuptools.package-data]
44+
'dsw.command_queue' = ['py.typed']
45+
4346
[tool.distutils.bdist_wheel]
4447
universal = true

packages/dsw-config/dsw/config/py.typed

Whitespace-only changes.

packages/dsw-config/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,8 @@ zip-safe = false
3838
[tool.setuptools.packages.find]
3939
include = ['dsw*']
4040

41+
[tool.setuptools.package-data]
42+
'dsw.config' = ['py.typed']
43+
4144
[tool.distutils.bdist_wheel]
4245
universal = true

packages/dsw-data-seeder/dsw/data_seeder/py.typed

Whitespace-only changes.

packages/dsw-data-seeder/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ zip-safe = false
4949
[tool.setuptools.packages.find]
5050
include = ['dsw*']
5151

52+
[tool.setuptools.package-data]
53+
'dsw.data_seeder' = ['py.typed']
54+
5255
[tool.distutils.bdist_wheel]
5356
universal = true
5457

packages/dsw-database/dsw/database/py.typed

Whitespace-only changes.

packages/dsw-database/pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ zip-safe = false
3939

4040
[tool.setuptools.packages.find]
4141
include = ['dsw*']
42+
namespaces = true
43+
44+
[tool.setuptools.package-data]
45+
'dsw.database' = ['py.typed']
4246

4347
[tool.distutils.bdist_wheel]
44-
universal = true
48+
universal = true

0 commit comments

Comments
 (0)