Skip to content

Commit c19765d

Browse files
committed
exclude build from MyPy, adapt ci
1 parent 1721743 commit c19765d

3 files changed

Lines changed: 9 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -291,26 +291,24 @@ jobs:
291291

292292
defaults:
293293
run:
294-
working-directory: ./server
294+
working-directory: ./app
295295
steps:
296296
- uses: actions/checkout@v4
297-
with:
298-
fetch-depth: 0
299297
- name: Set up Python ${{ env.X_PYTHON_MIN_VERSION }}
300298
uses: actions/setup-python@v5
301299
with:
302300
python-version: ${{ env.X_PYTHON_MIN_VERSION }}
303301
- name: Install Python dependencies
304302
run: |
305303
python -m pip install --upgrade pip
306-
pip install ../sdk
307-
pip install ./app[dev]
304+
pip install ../../sdk
305+
pip install .[dev]
308306
- name: Check typing with MyPy
309307
run: |
310-
mypy app
308+
mypy .
311309
- name: Check code style with PyCodestyle
312310
run: |
313-
pycodestyle --count --max-line-length 120 app
311+
pycodestyle --count --max-line-length 120 .
314312
315313
server-package:
316314
# This job checks if we can build our server package

server/app/interfaces/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ def json_list(cls, data: Union[str, bytes], expect_type: Type[T], stripped: bool
327327
model.Qualifier: decoder._construct_qualifier,
328328
}
329329

330-
constructor: Optional[Callable[..., T]] = mapping.get(expect_type) # type: ignore[assignment]
330+
constructor: Optional[Callable[..., T]] = mapping.get(expect_type) # type: ignore[assignment]
331331
args = []
332332
if expect_type is model.ModelReference:
333333
args.append(model.Submodel)

server/app/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,6 @@ packages = { find = { exclude = ["test*"] } }
5858

5959
[tool.setuptools.package-data]
6060
app = ["py.typed"]
61+
62+
[tool.mypy]
63+
exclude = "build/"

0 commit comments

Comments
 (0)