Skip to content

Commit 69694f4

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c653d45 commit 69694f4

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

src/_pytask/console.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,10 @@ def format_strings_as_flat_tree(
169169

170170

171171
def create_url_style_for_task(
172-
task_function: Callable[..., Any], edtior_url_scheme: str
172+
task_function: Callable[..., Any], editor_url_scheme: str
173173
) -> Style:
174174
"""Create the style to add a link to a task id."""
175-
url_scheme = _EDITOR_URL_SCHEMES.get(edtior_url_scheme, edtior_url_scheme)
175+
url_scheme = _EDITOR_URL_SCHEMES.get(editor_url_scheme, editor_url_scheme)
176176

177177
if not url_scheme:
178178
return Style()
@@ -190,9 +190,9 @@ def create_url_style_for_task(
190190
return style
191191

192192

193-
def create_url_style_for_path(path: Path, edtior_url_scheme: str) -> Style:
193+
def create_url_style_for_path(path: Path, editor_url_scheme: str) -> Style:
194194
"""Create the style to add a link to a task id."""
195-
url_scheme = _EDITOR_URL_SCHEMES.get(edtior_url_scheme, edtior_url_scheme)
195+
url_scheme = _EDITOR_URL_SCHEMES.get(editor_url_scheme, editor_url_scheme)
196196
return (
197197
Style()
198198
if not url_scheme

tests/test_console.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def task_func(): ...
3434

3535

3636
@pytest.mark.parametrize(
37-
("edtior_url_scheme", "expected"),
37+
("editor_url_scheme", "expected"),
3838
[
3939
("no_link", ""),
4040
("file", "link file://{path}"),
@@ -46,14 +46,14 @@ def task_func(): ...
4646
),
4747
],
4848
)
49-
def test_create_url_style_for_task(edtior_url_scheme, expected):
49+
def test_create_url_style_for_task(editor_url_scheme, expected):
5050
path = Path(__file__)
51-
style = create_url_style_for_task(task_func, edtior_url_scheme)
51+
style = create_url_style_for_task(task_func, editor_url_scheme)
5252
assert style == Style.parse(expected.format(path=path))
5353

5454

5555
@pytest.mark.parametrize(
56-
("edtior_url_scheme", "expected"),
56+
("editor_url_scheme", "expected"),
5757
[
5858
("no_link", ""),
5959
("file", "link file://{path}"),
@@ -65,9 +65,9 @@ def test_create_url_style_for_task(edtior_url_scheme, expected):
6565
),
6666
],
6767
)
68-
def test_create_url_style_for_path(edtior_url_scheme, expected):
68+
def test_create_url_style_for_path(editor_url_scheme, expected):
6969
path = Path(__file__)
70-
style = create_url_style_for_path(path, edtior_url_scheme)
70+
style = create_url_style_for_path(path, editor_url_scheme)
7171
assert style == Style.parse(expected.format(path=path))
7272

7373

tests/test_mark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ def task_write_text(): ...
356356

357357

358358
@pytest.mark.parametrize("name", ["parametrize", "depends_on", "produces", "task"])
359-
def test_error_with_depreacated_markers(runner, tmp_path, name):
359+
def test_error_with_deprecated_markers(runner, tmp_path, name):
360360
source = f"""
361361
from pytask import mark
362362

0 commit comments

Comments
 (0)