Skip to content

Commit

Permalink
chore: remove flake8 block in setup file
Browse files Browse the repository at this point in the history
  • Loading branch information
CaselIT committed Jul 11, 2024
1 parent f3c0019 commit 9fc9bcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
12 changes: 0 additions & 12 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,3 @@ tag_build = dev1

[aliases]
test=pytest

[flake8]
max-complexity = 15
exclude = .ecosystem,.eggs,.git,.tox,.venv,build,dist,docs,examples,falcon/bench/nuts
extend-ignore = F403,W504,E203,I202
max-line-length = 88
import-order-style = google
application-import-names = falcon,examples
builtins = ignore,attr,defined
per-file-ignores =
**/__init__.py:F401,E402
falcon/uri.py:F401
10 changes: 2 additions & 8 deletions tests/test_validators.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import typing # NOQA: F401

try:
import jsonschema as _jsonschema # NOQA
import jsonschema
except ImportError:
pass
jsonschema = None # NOQA
import pytest

import falcon
Expand All @@ -13,12 +13,6 @@
from _util import create_app, disable_asgi_non_coroutine_wrapping # NOQA


# NOTE(kgriffs): Default to None if missing. We do it like this, here, instead
# of in the body of the except statement, above, to avoid flake8 import
# ordering errors.
jsonschema = globals().get('_jsonschema')


_VALID_MEDIA = {'message': 'something'}
_INVALID_MEDIA = {} # type: typing.Dict[str, str]

Expand Down

0 comments on commit 9fc9bcc

Please sign in to comment.