Skip to content

Commit bdf50b5

Browse files
modified black configuration (#58)
Co-authored-by: Mathieu Kniewallner <[email protected]>
1 parent 8d80628 commit bdf50b5

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

hooks/post_gen_project.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ def remove_dir(filepath: str) -> None:
1414

1515

1616
if __name__ == "__main__":
17-
1817
if "{{cookiecutter.include_github_actions}}" != "y":
1918
remove_dir(".github")
2019

pyproject.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,8 @@ build-backend = "poetry.core.masonry.api"
3636

3737
[tool.black]
3838
line-length = 120
39-
include = '\.pyi?$'
40-
target-version = ['py39']
41-
fast = true
42-
39+
target-version = ['py37']
40+
preview = true
4341

4442
[tool.isort]
4543
profile = "black"

tests/test_cookiecutter.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ def file_contains_text(file: str, text: str) -> bool:
1919

2020

2121
def test_bake_project(cookies):
22-
2322
result = cookies.bake(extra_context={"project_name": "my-project"})
2423

2524
assert result.exit_code == 0
@@ -30,7 +29,6 @@ def test_bake_project(cookies):
3029

3130
def test_using_pytest(cookies, tmp_path):
3231
with run_within_dir(tmp_path):
33-
3432
result = cookies.bake()
3533

3634
# Assert that project was created.

{{cookiecutter.project_name}}/pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@ build-backend = "poetry.core.masonry.api"
3636

3737
[tool.black]
3838
line-length = 120
39-
include = '\.pyi?$'
40-
target-version = ['py39']
41-
fast = true
39+
target-version = ['py37']
40+
preview = true
4241

4342
[tool.isort]
4443
profile = "black"

0 commit comments

Comments
 (0)