Skip to content

Commit f6fe173

Browse files
authored
chore: update project structure to b3922b91
1 parent b8b03cf commit f6fe173

File tree

6 files changed

+37
-4
lines changed

6 files changed

+37
-4
lines changed

.cruft.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"template": "https://github.com/woltapp/wolt-python-package-cookiecutter",
3-
"commit": "91196cd478cac71bcfd1f5037ee8d6d215b62bd6",
3+
"commit": "b3922b9192d45e8637b097a3c73d575acc7554d6",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ repos:
3030
entry: poetry run black
3131
language: system
3232
types: [python]
33+
- id: pyupgrade
34+
name: pyupgrade
35+
entry: pyupgrade --py37-plus
36+
language: system
37+
types: [python]
3338
- id: mypy
3439
name: mypy
3540
entry: poetry run mypy .

poetry.lock

Lines changed: 28 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ pymdown-extensions = "*"
5454
pytest = "*"
5555
pytest-cov = "*"
5656
python-kacl = "*"
57+
pyupgrade = "*"
5758
tryceratops = "*"
5859

5960
[build-system]

src/pytest_split/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def __init__(self, config: "Config") -> None:
124124
self.writer = create_terminal_writer(self.config)
125125

126126
try:
127-
with open(config.option.durations_path, "r") as f:
127+
with open(config.option.durations_path) as f:
128128
self.cached_durations = json.loads(f.read())
129129
except FileNotFoundError:
130130
self.cached_durations = {}

tests/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def durations_file(tmpdir):
1515
durations = {f"test_{i}": float(i) for i in range(1, 11)}
1616
with open(durations_path, "w") as f:
1717
json.dump(durations, f)
18-
with open(durations_path, "r") as f:
18+
with open(durations_path) as f:
1919
yield f
2020

2121

0 commit comments

Comments
 (0)