Skip to content

Commit 00e4d85

Browse files
committed
add mypy and pytest
1 parent 7a2e44b commit 00e4d85

File tree

3 files changed

+116
-7
lines changed

3 files changed

+116
-7
lines changed

.github/workflows/python-package.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ jobs:
3333
- name: Lint with ruff
3434
run: |
3535
poetry run ruff check .
36-
# - name: Check types with mypy
37-
# run: |
38-
# mypy pymodbus_repl
39-
# - name: Pytest
40-
# run: |
41-
# pytest
36+
- name: Check types with mypy
37+
run: |
38+
poetry run mypy pymodbus_repl
39+
- name: Pytest
40+
run: |
41+
poetry run pytest

poetry.lock

Lines changed: 107 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ coverage = "^7.4.1"
3434
pytest-xdist = "^3.5.0"
3535
pytest-cov = "^4.1.0"
3636
twine = "^5.0.0"
37+
mypy = "^1.11.1"
38+
types-pygments = "^2.18.0.20240506"
39+
types-tabulate = "^0.9.0.20240106"
3740

3841
[build-system]
3942
requires = ["poetry-core"]

0 commit comments

Comments
 (0)