Skip to content

Commit 5342ef9

Browse files
committed
Fix formatting missed in previous work
1 parent 7acf038 commit 5342ef9

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

doc/_static/idioms/context_manager.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def chdir(path):
1313

1414
def initialize(directory):
1515
with chdir(directory) as _working_dir:
16-
with open('some-file.txt', 'w') as f:
16+
with open("some-file.txt", "w") as f:
1717
f.write("Some content")
1818

1919

@@ -23,7 +23,7 @@ def initialize(directory):
2323

2424
def initialize(directory):
2525
with chdir(directory) as _working_dir:
26-
with open('some-file.txt', 'w') as f:
26+
with open("some-file.txt", "w") as f:
2727
f.write("Some content")
2828

2929

@@ -35,6 +35,6 @@ def initialize(directory):
3535
old_dir = os.getcwd()
3636
os.chdir(directory)
3737
os.chdir(old_dir)
38-
with open('some-file.txt', 'w') as f:
38+
with open("some-file.txt", "w") as f:
3939
f.write("Some content")
4040
os.chdir(old_dir)

project-template/{{cookiecutter.repo_name}}/noxconfig.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,18 @@
22

33
from dataclasses import dataclass
44
from pathlib import Path
5-
from typing import (
6-
Iterable,
7-
)
5+
from typing import Iterable
86

97

108
@dataclass(frozen=True)
119
class Config:
1210
root: Path = Path(__file__).parent
1311
doc: Path = Path(__file__).parent / "doc"
1412
version_file: Path = (
15-
Path(__file__).parent / "exasol" / "{{cookiecutter.package_name}}" / "version.py"
13+
Path(__file__).parent
14+
/ "exasol"
15+
/ "{{cookiecutter.package_name}}"
16+
/ "version.py"
1617
)
1718
path_filters: Iterable[str] = (
1819
"dist",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {{ cookiecutter.import_package }}
22

3+
34
def test_unit_smoke_test():
45
assert True

0 commit comments

Comments
 (0)