Require black and isort for contributions (#3329)

* Add explanation to CONTRIBUTNG.md
* Add sample pre-commit script
* Check for correctly formatted files in CI

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
Sebastian Rittau
2020-06-29 00:28:28 +02:00
committed by GitHub
parent 5d553c9584
commit 4586ed9adc
6 changed files with 48 additions and 12 deletions

View File

@@ -57,10 +57,7 @@ class SequenceMatcher(Generic[_T]):
# mypy thinks the signatures of the overloads overlap, but the types still work fine
@overload
def get_close_matches( # type: ignore
word: AnyStr,
possibilities: Iterable[AnyStr],
n: int = ...,
cutoff: float = ...,
word: AnyStr, possibilities: Iterable[AnyStr], n: int = ..., cutoff: float = ...,
) -> List[AnyStr]: ...
@overload
def get_close_matches(