Skip to content

Commit 5ba1d2c

Browse files
committed
Add Black config to generated pyproject.toml
1 parent 88070ed commit 5ba1d2c

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

openapi_python_client/templates/pyproject.toml

+13
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,16 @@ include = ["CHANGELOG.md", "{{ package_name }}/py.typed"]
1515
[tool.poetry.dependencies]
1616
python = "^3.8"
1717
httpx = "^0.12.1"
18+
19+
[tool.black]
20+
line-length = 120
21+
target_version = ['py38']
22+
exclude = '''
23+
(
24+
/(
25+
| \.git
26+
| \.venv
27+
| \.mypy_cache
28+
)/
29+
)
30+
'''

tests/test_end_to_end/golden-master/pyproject.toml

+14-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,17 @@ include = ["CHANGELOG.md", "my_test_api_client/py.typed"]
1414

1515
[tool.poetry.dependencies]
1616
python = "^3.8"
17-
httpx = "^0.12.1"
17+
httpx = "^0.12.1"
18+
19+
[tool.black]
20+
line-length = 120
21+
target_version = ['py38']
22+
exclude = '''
23+
(
24+
/(
25+
| \.git
26+
| \.venv
27+
| \.mypy_cache
28+
)/
29+
)
30+
'''

0 commit comments

Comments
 (0)