From 37b61bae85710753523e66657a880b684ace5d17 Mon Sep 17 00:00:00 2001 From: Ilya Nekhay Date: Fri, 21 Apr 2023 11:48:27 -0500 Subject: [PATCH] fix: pyproject_no_poetry.toml.jinja template can be used to configure black and isort (closes #750) --- .../templates/pyproject.toml.jinja | 17 +---------------- .../templates/pyproject_no_poetry.toml.jinja | 2 +- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/openapi_python_client/templates/pyproject.toml.jinja b/openapi_python_client/templates/pyproject.toml.jinja index 647c4cbb6..bbcd5c3f6 100644 --- a/openapi_python_client/templates/pyproject.toml.jinja +++ b/openapi_python_client/templates/pyproject.toml.jinja @@ -23,19 +23,4 @@ requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api" {% endif %} -[tool.black] -line-length = 120 -target_version = ['py37', 'py38', 'py39'] -exclude = ''' -( - /( - | \.git - | \.venv - | \.mypy_cache - )/ -) -''' - -[tool.isort] -line_length = 120 -profile = "black" +{% include "pyproject_no_poetry.toml.jinja" %} diff --git a/openapi_python_client/templates/pyproject_no_poetry.toml.jinja b/openapi_python_client/templates/pyproject_no_poetry.toml.jinja index 2d0685348..3a693ff8e 100644 --- a/openapi_python_client/templates/pyproject_no_poetry.toml.jinja +++ b/openapi_python_client/templates/pyproject_no_poetry.toml.jinja @@ -1,6 +1,6 @@ [tool.black] line-length = 120 -target_version = ['py36', 'py37', 'py38'] +target_version = ['py37', 'py38', 'py39'] exclude = ''' ( /(