| 1 | [tool.poetry] |
| 2 | name = "openapi_client" |
| 3 | version = "1.0.0" |
| 4 | description = "Continue Hub IDE API" |
| 5 | authors = ["Continue Dev Team <team@openapitools.org>"] |
| 6 | license = "NoLicense" |
| 7 | readme = "README.md" |
| 8 | repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID" |
| 9 | keywords = ["OpenAPI", "OpenAPI-Generator", "Continue Hub IDE API"] |
| 10 | include = ["openapi_client/py.typed"] |
| 11 | |
| 12 | [tool.poetry.dependencies] |
| 13 | python = "^3.8" |
| 14 | |
| 15 | urllib3 = ">= 1.25.3, < 3.0.0" |
| 16 | python-dateutil = ">= 2.8.2" |
| 17 | pydantic = ">= 2" |
| 18 | typing-extensions = ">= 4.7.1" |
| 19 | |
| 20 | [tool.poetry.dev-dependencies] |
| 21 | pytest = ">= 7.2.1" |
| 22 | pytest-cov = ">= 2.8.1" |
| 23 | tox = ">= 3.9.0" |
| 24 | flake8 = ">= 4.0.0" |
| 25 | types-python-dateutil = ">= 2.8.19.14" |
| 26 | mypy = ">= 1.5" |
| 27 | |
| 28 | |
| 29 | [build-system] |
| 30 | requires = ["setuptools"] |
| 31 | build-backend = "setuptools.build_meta" |
| 32 | |
| 33 | [tool.pylint.'MESSAGES CONTROL'] |
| 34 | extension-pkg-whitelist = "pydantic" |
| 35 | |
| 36 | [tool.mypy] |
| 37 | files = [ |
| 38 | "openapi_client", |
| 39 | #"test", # auto-generated tests |
| 40 | "tests", # hand-written tests |
| 41 | ] |
| 42 | # TODO: enable "strict" once all these individual checks are passing |
| 43 | # strict = true |
| 44 | |
| 45 | # List from: https://mypy.readthedocs.io/en/stable/existing_code.html#introduce-stricter-options |
| 46 | warn_unused_configs = true |
| 47 | warn_redundant_casts = true |
| 48 | warn_unused_ignores = true |
| 49 | |
| 50 | ## Getting these passing should be easy |
| 51 | strict_equality = true |
| 52 | extra_checks = true |
| 53 | |
| 54 | ## Strongly recommend enabling this one as soon as you can |
| 55 | check_untyped_defs = true |
| 56 | |
| 57 | ## These shouldn't be too much additional work, but may be tricky to |
| 58 | ## get passing if you use a lot of untyped libraries |
| 59 | disallow_subclassing_any = true |
| 60 | disallow_untyped_decorators = true |
| 61 | disallow_any_generics = true |
| 62 | |
| 63 | ### These next few are various gradations of forcing use of type annotations |
| 64 | #disallow_untyped_calls = true |
| 65 | #disallow_incomplete_defs = true |
| 66 | #disallow_untyped_defs = true |
| 67 | # |
| 68 | ### This one isn't too hard to get passing, but return on investment is lower |
| 69 | #no_implicit_reexport = true |
| 70 | # |
| 71 | ### This one can be tricky to get passing if you use a lot of untyped libraries |
| 72 | #warn_return_any = true |
| 73 | |
| 74 | [[tool.mypy.overrides]] |
| 75 | module = [ |
| 76 | "openapi_client.configuration", |
| 77 | ] |
| 78 | warn_unused_ignores = true |
| 79 | strict_equality = true |
| 80 | extra_checks = true |
| 81 | check_untyped_defs = true |
| 82 | disallow_subclassing_any = true |
| 83 | disallow_untyped_decorators = true |
| 84 | disallow_any_generics = true |
| 85 | disallow_untyped_calls = true |
| 86 | disallow_incomplete_defs = true |
| 87 | disallow_untyped_defs = true |
| 88 | no_implicit_reexport = true |
| 89 | warn_return_any = true |