Skip to content

Commit

Permalink
Linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Jan 26, 2021
1 parent c7aa930 commit 82ce56a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions tests/test_config.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# this package
from formate import Hook, parse_hooks
from formate.config import parse_global_config
from formate.imports import rewrite_collections_abc_imports
from formate.classes import Hook
from formate.config import parse_global_config, parse_hooks
from formate.ellipses import ellipsis_reformat
from formate.imports import rewrite_collections_abc_imports


def test_parse_hooks():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_dynamic_quotes.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@
(value_1, expected_1),
]
)
def test_quotes(value, expects):
def test_quotes(value: str, expects: str):
assert dynamic_quotes(value) == expects
2 changes: 1 addition & 1 deletion tests/test_ellipses.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ async def foo(): ...
),
]
)
def test_ellipsis_reformat(code, expected):
def test_ellipsis_reformat(code: str, expected: str):
assert ellipsis_reformat(code) == expected

assert ellipsis_reformat(expected) == expected
Expand Down
6 changes: 3 additions & 3 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def demo_environment(tmp_pathplus):


def test_integration(
tmp_pathplus,
tmp_pathplus: PathPlus,
file_regression: FileRegressionFixture,
capsys,
advanced_data_regression: AdvancedDataRegressionFixture,
Expand Down Expand Up @@ -68,7 +68,7 @@ def test_integration(


def test_reformatter_class(
tmp_pathplus,
tmp_pathplus: PathPlus,
file_regression: FileRegressionFixture,
capsys,
advanced_data_regression: AdvancedDataRegressionFixture,
Expand Down Expand Up @@ -106,7 +106,7 @@ def test_reformatter_class(


def test_cli(
tmp_pathplus,
tmp_pathplus: PathPlus,
file_regression: FileRegressionFixture,
capsys,
advanced_data_regression: AdvancedDataRegressionFixture,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
("foo_bar-baz", "foo-bar-baz"),
]
)
def test_normalize(value, expects):
def test_normalize(value: str, expects: str):
assert normalize(value) == expects


Expand Down

0 comments on commit 82ce56a

Please sign in to comment.