Skip to content

Commit f521668

Browse files
Flake8: Change error codes for flake8 to ignore(#2230)
1 parent 343089d commit f521668

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[flake8]
2-
ignore = E203, E266, E501, W503, F403, F401, F405, C901, F601
2+
ignore = E501, F403, C901, F601, W503
33
max-line-length = 79
44
max-complexity = 18
55
select = B,C,E,F,W,T4,B9

settings/dev.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
"default": {
1414
"ENGINE": "django.db.backends.postgresql_psycopg2",
1515
"NAME": os.environ.get("POSTGRES_NAME", "evalai"), # noqa: ignore=F405
16-
"USER": os.environ.get(
16+
"USER": os.environ.get( # noqa: ignore=F405
1717
"POSTGRES_USER", "postgres"
1818
), # noqa: ignore=F405
19-
"PASSWORD": os.environ.get(
19+
"PASSWORD": os.environ.get( # noqa: ignore=F405
2020
"POSTGRES_PASSWORD", "postgres"
2121
), # noqa: ignore=F405
22-
"HOST": os.environ.get(
22+
"HOST": os.environ.get( # noqa: ignore=F405
2323
"POSTGRES_HOST", "localhost"
2424
), # noqa: ignore=F405
2525
"PORT": os.environ.get("POSTGRES_PORT", 5432), # noqa: ignore=F405

settings/prod.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
REST_FRAMEWORK_DOCS = {"HIDE_DOCS": True}
7777

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

settings/test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
"default": {
77
"ENGINE": "django.db.backends.postgresql_psycopg2",
88
"NAME": os.environ.get("POSTGRES_NAME", "evalai"), # noqa: ignore=F405
9-
"USER": os.environ.get(
9+
"USER": os.environ.get( # noqa: ignore=F405
1010
"POSTGRES_USER", "postgres"
1111
), # noqa: ignore=F405
12-
"PASSWORD": os.environ.get(
12+
"PASSWORD": os.environ.get( # noqa: ignore=F405
1313
"POSTGRES_PASSWORD", "postgres"
1414
), # noqa: ignore=F405
15-
"HOST": os.environ.get(
15+
"HOST": os.environ.get( # noqa: ignore=F405
1616
"POSTGRES_HOST", "localhost"
1717
), # noqa: ignore=F405
1818
"PORT": os.environ.get("POSTGRES_PORT", 5432), # noqa: ignore=F405

0 commit comments

Comments
 (0)