Skip to content

pylint pre-commit #48759

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Sep 29, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,17 @@ repos:
- flake8==5.0.4
- flake8-bugbear==22.7.1
- pandas-dev-flaker==0.5.0
# Added pylint, at the moment it is excluding a lot of messages
- repo: https://github.com/pycqa/pylint
rev: v2.15.3
hooks:
- id: pylint
types: [python]
args:
[
"-rn",
"-d=C,R,W,import-error,no-member,no-name-in-module,unsubscriptable-object,invalid-unary-operand-type,unexpected-keyword-arg,not-an-iterable,unsupported-assignment-operation,unsupported-membership-test,no-value-for-parameter,unpacking-non-sequence,bad-super-call,access-member-before-definition,used-before-assignment,too-many-fucntion-args,abstract-class-instantiated,not-callable,too-many-fucntion-args,invalid-repr-returned"
]
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
Expand Down Expand Up @@ -277,3 +288,4 @@ repos:
- autotyping==22.9.0
- black==22.6.0
- libcst==0.4.7

1 change: 1 addition & 0 deletions pandas/tests/groupby/test_groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ def func(dataf):
def func(dataf):
return dataf["val2"] - dataf["val2"].mean()


with tm.assert_produces_warning(FutureWarning):
result = df2.groupby("val1", squeeze=True).apply(func)
assert isinstance(result, Series)
Expand Down