forked from openapi-generators/openapi-python-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
83 lines (74 loc) · 1.82 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
[tool.poetry]
name = "openapi-python-client"
version = "0.4.1"
description = "Generate modern Python clients from OpenAPI"
repository = "https://github.com./triaxtec/openapi-python-client"
license = "MIT"
keywords=["OpenAPI", "Client", "Generator"]
authors = ["Dylan Anthony <[email protected]>"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: Software Development :: Code Generators",
"Typing :: Typed",
]
readme = "README.md"
packages = [
{include = "openapi_python_client"},
]
include = ["CHANGELOG.md", "openapi_python_client/py.typed"]
[tool.poetry.dependencies]
python = "^3.7"
jinja2 = "^2.11.1"
stringcase = "^1.2.0"
typer = ">=0.1,<0.3"
colorama = {version = "^0.4.3", markers = "sys_platform == 'win32'"}
shellingham = "^1.3.2"
httpx = "^0.13.0"
black = "^19.10b0"
isort = "^4.3.21"
pyyaml = "^5.3.1"
importlib_metadata = {version = "^1.6.0", python = "==3.7"}
[tool.poetry.scripts]
openapi-python-client = "openapi_python_client.cli:app"
[tool.poetry.dev-dependencies]
pytest = "*"
pytest-mock = "*"
mypy = "*"
taskipy = "*"
safety = "*"
pytest-cov = "*"
fastapi = "*"
uvicorn = "*"
python-multipart = "*"
[tool.taskipy.tasks]
check = """
isort --recursive --apply\
&& black .\
&& safety check\
&& mypy openapi_python_client\
&& pytest --cov openapi_python_client tests\
"""
gm = "python -m end_to_end_tests.regen_golden_master"
e2e = "pytest --cov openapi_python_client end_to_end_tests"
[tool.black]
line-length = 120
target_version = ['py36']
exclude = '''
(
/(
| \.git
| \.venv
| \.mypy_cache
| openapi_python_client/templates
| tests/test_templates
)/
)
'''
[tool.isort]
line_length = 120
multi_line_output = 3
include_trailing_comma = true
skip = ["tests/test_templates"]
[tool.coverage.run]
omit = ["openapi_python_client/templates/*"]