Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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: 11 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
[flake8]
min_python_version = 3.7.0
max-line-length = 88
ignore = E501, E203, W503, ANN101, ANN102, SIM106
ban-relative-imports = True
enable-extensions = TC, TC1
type-checking-exempt-modules = typing, typing-extensions
format-greedy = 1
extend-ignore =
# E203: Whitespace before ':' (pycqa/pycodestyle#373)
E203,
# E501: Line too long
E501,
# SIM106: Handle error-cases first
SIM106,
# ANN101: Missing type annotation for self in method
ANN101,
# ANN102: Missing type annotation for cls in classmethod
ANN102,
per-file-ignores =
__init__.py:F401
tests/test_*:ANN201
Expand Down
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ repos:
hooks:
- id: yesqa
additional_dependencies: &flake8_deps
- flake8-annotations==2.7.0
- flake8-bugbear==22.1.11
- flake8-comprehensions==3.8.0
- flake8-eradicate==1.2.0
- flake8-simplify==0.15.1
- flake8-tidy-imports==4.6.0
- flake8-type-checking==1.3.3
- flake8-annotations==2.9.0
- flake8-bugbear==22.4.25
- flake8-comprehensions==3.10.0
- flake8-eradicate==1.2.1
- flake8-simplify==0.19.2
- flake8-tidy-imports==4.8.0
- flake8-type-checking==1.5.0
- flake8-use-fstring==1.3

- repo: https://github.com/asottile/pyupgrade
Expand Down
2 changes: 1 addition & 1 deletion tests/packages/test_file_dependency.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def test_default_hash() -> None:
try:
from hashlib import algorithms_guaranteed as ALGORITHMS_GUARANTEED
except ImportError:
ALGORITHMS_GUARANTEED = set("md5,sha1,sha224,sha256,sha384,sha512".split(","))
ALGORITHMS_GUARANTEED = {"md5", "sha1", "sha224", "sha256", "sha384", "sha512"}


@pytest.mark.parametrize(
Expand Down