Skip to content

Commit

Permalink
enforce rule F821 for flake8 (undefined name)
Browse files Browse the repository at this point in the history
  • Loading branch information
BluThaitanium committed Jul 7, 2022
1 parent a2f1d0f commit 0c80b67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ lint_python: venv ## Check Python code style compliance
@which flake8 > /dev/null || pip install flake8 || pip3 install flake8
@flake8 . --show-source --statistics \
--select=E9,E2,E3,E5,F63,F7,F82,F4,F841,W291,W292 \
--per-file-ignores ./*:F841,F821 \
--per-file-ignores ./*:F841 \
--exclude .git,__pycache__,docs/source/conf.py,old,build,dist,venv \
--max-line-length=140
@echo "$@: OK"
Expand Down
4 changes: 2 additions & 2 deletions api/client/swagger_client/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ def request(
timeout = None
if _request_timeout:
if isinstance(
_request_timeout, (int,) if six.PY3 else (int, long)
): # noqa: E501,F821
_request_timeout, (int,) if six.PY3 else (int, long) # noqa: E501,F821
):
timeout = urllib3.Timeout(total=_request_timeout)
elif isinstance(_request_timeout, tuple) and len(_request_timeout) == 2:
timeout = urllib3.Timeout(
Expand Down

0 comments on commit 0c80b67

Please sign in to comment.