Skip to content

Commit

Permalink
Flake8: Change error codes for flake8 to ignore(Cloud-CV#2230)
Browse files Browse the repository at this point in the history
  • Loading branch information
RishabhJain2018 authored Mar 25, 2019
1 parent 343089d commit f521668
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[flake8]
ignore = E203, E266, E501, W503, F403, F401, F405, C901, F601
ignore = E501, F403, C901, F601, W503
max-line-length = 79
max-complexity = 18
select = B,C,E,F,W,T4,B9
6 changes: 3 additions & 3 deletions settings/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
"default": {
"ENGINE": "django.db.backends.postgresql_psycopg2",
"NAME": os.environ.get("POSTGRES_NAME", "evalai"), # noqa: ignore=F405
"USER": os.environ.get(
"USER": os.environ.get( # noqa: ignore=F405
"POSTGRES_USER", "postgres"
), # noqa: ignore=F405
"PASSWORD": os.environ.get(
"PASSWORD": os.environ.get( # noqa: ignore=F405
"POSTGRES_PASSWORD", "postgres"
), # noqa: ignore=F405
"HOST": os.environ.get(
"HOST": os.environ.get( # noqa: ignore=F405
"POSTGRES_HOST", "localhost"
), # noqa: ignore=F405
"PORT": os.environ.get("POSTGRES_PORT", 5432), # noqa: ignore=F405
Expand Down
2 changes: 1 addition & 1 deletion settings/prod.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
REST_FRAMEWORK_DOCS = {"HIDE_DOCS": True}

# Port number for the python-memcached cache backend.
CACHES["default"]["LOCATION"] = os.environ.get(
CACHES["default"]["LOCATION"] = os.environ.get( # noqa: ignore=F405
"MEMCACHED_LOCATION"
) # noqa: ignore=F405

Expand Down
6 changes: 3 additions & 3 deletions settings/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
"default": {
"ENGINE": "django.db.backends.postgresql_psycopg2",
"NAME": os.environ.get("POSTGRES_NAME", "evalai"), # noqa: ignore=F405
"USER": os.environ.get(
"USER": os.environ.get( # noqa: ignore=F405
"POSTGRES_USER", "postgres"
), # noqa: ignore=F405
"PASSWORD": os.environ.get(
"PASSWORD": os.environ.get( # noqa: ignore=F405
"POSTGRES_PASSWORD", "postgres"
), # noqa: ignore=F405
"HOST": os.environ.get(
"HOST": os.environ.get( # noqa: ignore=F405
"POSTGRES_HOST", "localhost"
), # noqa: ignore=F405
"PORT": os.environ.get("POSTGRES_PORT", 5432), # noqa: ignore=F405
Expand Down

0 comments on commit f521668

Please sign in to comment.