Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,22 @@ repos:
- id: poetry-check
- id: poetry-lock

# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v1.15.0
# hooks:
# - id: mypy
# pass_filenames: false
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.15.0
hooks:
- id: mypy
pass_filenames: false
args: ["src/"]
additional_dependencies:
- types-six
- types-python-dateutil
- types-requests
- types-deprecated
- pydantic
- aiohttp
- aiohttp-retry
- httpx
- astor

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.3
Expand Down
87 changes: 86 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

57 changes: 57 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ setuptools = "^80.9.0"
pytest = "^8.4.1"
pytest-mock = "^3.14.1"
pytest-asyncio = "^1.1.0"
mypy = "^1.18.2"

[tool.ruff]
target-version = "py39"
Expand Down Expand Up @@ -205,3 +206,59 @@ markers = [
"v5_2_6: mark test to run for version 5.2.6",
"v3_21_16: mark test to run for version 3.21.16"
]

[tool.mypy]
python_version = "3.9"
follow_imports = "silent"

plugins = [
"pydantic.mypy"
]
disable_error_code = [
"no-redef",
"return-value",
"var-annotated",
"assignment",
"call-arg",
"arg-type",
"override",
"dict-item",
"index",
"operator",
"call-overload",
"misc",
"attr-defined",
"union-attr",
"name-defined",
]

[[tool.mypy.overrides]]
module = [
"conductor.client.http.*",
"conductor.client.codegen.*",
"conductor.client.orkes.api.*",
"conductor.asyncio_client.http.*"
]
ignore_errors = true

[[tool.mypy.overrides]]
module = [
"tests.*",
"examples.*"
]
disable_error_code = [
"attr-defined",
"no-untyped-def"
]

[[tool.mypy.overrides]]
module = [
"prometheus_client.*",
"shortuuid",
"dacite.*",
"aiohttp.*",
"aiohttp_retry.*",
"httpx.*",
"astor.*"
]
ignore_missing_imports = true
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import setuptools
import os

import setuptools

version = os.environ["CONDUCTOR_PYTHON_VERSION"]
if version is None:
version = "0.0.0-SNAPSHOT"
Expand Down
Loading