Skip to content

Commit

Permalink
Merge 862eea1 into 1a698ac
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Aug 8, 2022
2 parents 1a698ac + 862eea1 commit 9cc5592
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ repos:
exclude: tests/testdata|setup.py
types: [python]
- repo: https://github.com/asottile/pyupgrade
rev: v2.37.2
rev: v2.37.3
hooks:
- id: pyupgrade
exclude: tests/testdata
Expand All @@ -39,7 +39,7 @@ repos:
- id: isort
exclude: tests/testdata
- repo: https://github.com/Pierre-Sassoulas/black-disable-checker/
rev: v1.1.0
rev: v1.1.1
hooks:
- id: black-disable-checker
exclude: tests/unittest_nodes_lineno.py
Expand All @@ -50,7 +50,7 @@ repos:
args: [--safe, --quiet]
exclude: tests/testdata
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
rev: 5.0.3
hooks:
- id: flake8
additional_dependencies:
Expand Down
10 changes: 9 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,15 @@ include_trailing_comma = True
skip_glob = tests/testdata

[flake8]
extend-ignore = E203,E266,E501,C901,F401
extend-ignore =
C901, # Function complexity checker
F401, # Unused imports
E203, # Incompatible with black see https://github.com/psf/black/issues/315
W503, # Incompatible with black
E501, # Line too long
B950, # Line too long
B901 # Combine yield and return statements in one function
max-line-length=88
max-complexity = 20
select = B,C,E,F,W,T4,B9
# Required for flake8-typing-imports (v1.12.0)
Expand Down
2 changes: 1 addition & 1 deletion tests/unittest_lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class A(A):
name = next(cls2.nodes_of_class(nodes.Name))
self.assertEqual(next(name.infer()), cls1)

### backport those test to inline code
# backport those test to inline code
def test_method(self) -> None:
method = self.module["YOUPI"]["method"]
my_dict = next(method.ilookup("MY_DICT"))
Expand Down

0 comments on commit 9cc5592

Please sign in to comment.