Skip to content

Commit 37b61ba

Browse files
committed
fix: pyproject_no_poetry.toml.jinja template can be used to configure black and isort (closes openapi-generators#750)
1 parent c8e93a9 commit 37b61ba

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

openapi_python_client/templates/pyproject.toml.jinja

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,4 @@ requires = ["poetry-core>=1.0.0"]
2323
build-backend = "poetry.core.masonry.api"
2424

2525
{% endif %}
26-
[tool.black]
27-
line-length = 120
28-
target_version = ['py37', 'py38', 'py39']
29-
exclude = '''
30-
(
31-
/(
32-
| \.git
33-
| \.venv
34-
| \.mypy_cache
35-
)/
36-
)
37-
'''
38-
39-
[tool.isort]
40-
line_length = 120
41-
profile = "black"
26+
{% include "pyproject_no_poetry.toml.jinja" %}

openapi_python_client/templates/pyproject_no_poetry.toml.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.black]
22
line-length = 120
3-
target_version = ['py36', 'py37', 'py38']
3+
target_version = ['py37', 'py38', 'py39']
44
exclude = '''
55
(
66
/(

0 commit comments

Comments
 (0)