Skip to content

Commit 4452917

Browse files
[pre-commit.ci] pre-commit autoupdate (#1150)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black: 22.6.0 → 22.8.0](psf/black@22.6.0...22.8.0) - [github.com/PyCQA/flake8: 4.0.1 → 5.0.4](PyCQA/flake8@4.0.1...5.0.4) * style: fix ci linting errors Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Jeremy Goh <[email protected]>
1 parent 1914eb5 commit 4452917

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repos:
99
- id: check-yaml
1010
- id: check-added-large-files
1111
- repo: https://github.com/psf/black
12-
rev: 22.6.0
12+
rev: 22.8.0
1313
hooks:
1414
- id: black
1515
args: [--config, pyproject.toml]
@@ -24,7 +24,7 @@ repos:
2424
- id: darglint
2525
args: [-v 2] # this config makes the error messages a bit less cryptic.
2626
- repo: https://github.com/PyCQA/flake8
27-
rev: 4.0.1
27+
rev: 5.0.4
2828
hooks:
2929
- id: flake8
3030
args: [--exclude, nbconvert_config.py]

janitor/functions/expand_column.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def expand_column(
7373
the original dataframe (`concat=True`), or to return it standalone
7474
(`concat=False`).
7575
:returns: A pandas DataFrame with an expanded column.
76-
"""
76+
""" # noqa: E501
7777
expanded_df = df[column_name].str.get_dummies(sep=sep)
7878
if concat:
7979
df = df.join(expanded_df)

tests/functions/test_count_cumulative_unique.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
@pytest.mark.functions
77
def test_column_name_not_exists(dataframe):
8-
"""Checks that an error is raised if the column to be counted does not exist
9-
in df.
8+
"""Checks that an error is raised if the column to be counted does not
9+
exist in df.
1010
"""
1111
with pytest.raises(
1212
ValueError,
@@ -21,8 +21,8 @@ def test_column_name_not_exists(dataframe):
2121
@pytest.mark.functions
2222
@pytest.mark.parametrize("case_sensitive", [True, False])
2323
def test_original_column_values_not_altered(dataframe, case_sensitive):
24-
"""Checks that the column to be counted is not altered by the case-switching
25-
logic implemented by `count_cumulative_unique`.
24+
"""Checks that the column to be counted is not altered by the case-
25+
switching logic implemented by `count_cumulative_unique`.
2626
"""
2727
before = np.array(["a", "b", "c", "A", "B", "C", "a", "b", "c"])
2828
dataframe["ccu"] = before

0 commit comments

Comments
 (0)