Skip to content

Commit e4033f7

Browse files
committed
Get precommit working
1 parent 95e7664 commit e4033f7

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,16 @@ repos:
5353

5454
- id: mypy
5555
name: mypy-tests
56-
entry: mypy -p integration_testsg
56+
entry: "mypy"
57+
exclude: "clients/"
5758
language: system
5859
types: [python]
5960
require_serial: true
6061

6162
- id: mypy
6263
name: mypy-client
63-
entry: mypy -p taskbroker_client
64+
entry: "mypy"
65+
exclude: "integration_tests/"
6466
language: system
6567
types: [python]
6668
require_serial: true

clients/python/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ dev = [
2929
"isort>=5.13.2",
3030
"mypy>=1.17.1",
3131
"time-machine>=2.16.0",
32+
""
3233
]
3334
[project.optional-dependencies]
3435
examples = [
@@ -72,7 +73,7 @@ disallow_untyped_defs = true
7273
[[tool.mypy.overrides]]
7374
module = [
7475
".conftest",
75-
"redis",
76+
"redis.*",
7677
"rediscluster.*",
7778
"confluent_kafka.*",
7879
]

clients/python/src/examples/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
@click.group()
1515
def main() -> None:
16-
pass
16+
click.echo("Example application")
1717

1818

1919
@main.command()

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ default = true
3636
members = ["integration_tests", "clients/python"]
3737

3838
[tool.mypy]
39-
mypy_path = "integration_tests,clients/python"
39+
mypy_path = "integration_tests,clients/python/src"
4040
explicit_package_bases = true
4141
# minimal strictness settings
4242
check_untyped_defs = true

0 commit comments

Comments
 (0)