-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpyproject.toml
107 lines (95 loc) · 2.83 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
[tool.poetry]
name = "apiclient-pydantic-generator"
version = "0.0.0"
description = "This code generator creates a ApiClient app from an openapi file."
authors = ["MaxST <[email protected]>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/mom1/apiclient-pydantic-generator"
repository = "https://github.com/mom1/apiclient-pydantic-generator"
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Topic :: Software Development :: Code Generators",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: Implementation :: CPython"
]
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
pattern = "^(?P<base>\\d+\\.\\d+\\.\\d+)(-?((?P<stage>[a-zA-Z]+)\\.?(?P<revision>\\d+)?))?$"
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
apiclient-codegen = 'apiclient_pydantic_generator.__main__:app'
[tool.poetry.dependencies]
python = ">=3.7,<4.0"
pydantic = "^1.5"
api-client = "^1.3"
api-client-pydantic = ">=1.2"
datamodel-code-generator = "^0.11"
typer = {version = ">=0.2.1,<0.5.0", extras = ["all"]}
stringcase = "^1.2"
Jinja2 = ">=2.11.2,<4.0.0"
yapf = "^0.31"
isort = "^5.9"
[tool.poetry.dev-dependencies]
ward = "^0.65.0-beta.0"
safety = "^1.10"
pre-commit = "^2.14"
flake8 = "^4.0"
flake8-broken-line = "^0.4"
flake8-bugbear = "^21.9"
flake8-builtins = "^1.5"
flake8-commas = "^2.1"
flake8-comprehensions = "^3.7"
flake8-eradicate = "^1.1"
flake8-quotes = "^3.3"
pep8-naming = "^0.12"
mccabe = "^0.6"
ipdb = "^0.13"
ipython = "^7.28"
gitchangelog = "^3.0"
emoji = "^1.6"
chevron = "^0.14"
coverage = "^6.0"
[tool.isort]
# isort configuration:
# https://github.com/timothycrosley/isort/wiki/isort-Settings
profile = "django"
line_length = 99
balanced_wrapping = true
indent = 4
use_parentheses = true
default_section = "FIRSTPARTY"
lines_after_imports = 2
skip_glob="**/migrations/*.py"
[tool.yapf]
# yapf configuration:
# https://github.com/google/yapf#formatting-style
based_on_style = "pep8"
column_limit = 119
i18n_comment = "noqa"
blank_lines_between_top_level_imports_and_variables = 2
[tool.coverage.run]
# Coverage configuration:
# https://coverage.readthedocs.io/en/latest/config.html
# https://coverage.readthedocs.io/en/latest/config.html#run
source = ["apiclient_pydantic_generator"]
omit = ["tests"]
[tool.coverage.report]
# https://coverage.readthedocs.io/en/latest/config.html#report
exclude_lines =[
"pragma: no cover",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
]
[tool.ward]
order = "random"
show-diff-symbols = true