Enable flake8-bugbear, but disable most checks. (#9499)

* Adds B00 to ignored checks.
* Fixes remaining issues.
This commit is contained in:
Jonathan de Jong 2021-03-16 19:19:27 +01:00 committed by GitHub
parent dd5e5dc1d6
commit 27d2820c33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 29 additions and 10 deletions

View file

@ -176,7 +176,9 @@ class ContentRepositoryConfig(Config):
check_requirements("url_preview")
except DependencyException as e:
raise ConfigError(e.message)
raise ConfigError(
e.message # noqa: B306, DependencyException.message is a property
)
if "url_preview_ip_range_blacklist" not in config:
raise ConfigError(