Skip to content

Commit e09790f

Browse files
committed
cleaned flake
1 parent b4d54c1 commit e09790f

3 files changed

Lines changed: 16 additions & 20 deletions

File tree

.flake8

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
[flake8]
2-
max-line-length = 120
3-
extend-ignore = E203, W503, E501
2+
ignore = E501, E203, E121, E123, E126, W503, W504
43
exclude =
54
.git,
6-
__pycache__,
7-
docs/source/conf.py,
8-
old,
9-
build,
10-
dist,
11-
venv,
12-
env,
135
.venv,
14-
./venv-docs,
6+
__pycache__,
7+
api/Archive,
8+
data,
159
docs,
16-
.env
10+
instance,
11+
output,
12+
venv

tests/models/test_efp_dynamic.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
if ROOT_DIR not in sys.path:
1515
sys.path.insert(0, ROOT_DIR)
1616

17-
from sqlalchemy import inspect
18-
from api import app
19-
from api.models.efp_dynamic import SIMPLE_EFP_SAMPLE_MODELS
20-
from api.models.efp_schemas import SIMPLE_EFP_DATABASE_SCHEMAS
17+
from sqlalchemy import inspect # noqa: E402
18+
from api import app # noqa: E402
19+
from api.models.efp_dynamic import SIMPLE_EFP_SAMPLE_MODELS # noqa: E402
20+
from api.models.efp_schemas import SIMPLE_EFP_DATABASE_SCHEMAS # noqa: E402
2121

2222

2323
class TestDynamicModelColumns(TestCase):

tests/models/test_efp_schemas.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
if ROOT_DIR not in sys.path:
1818
sys.path.insert(0, ROOT_DIR)
1919

20-
from api import app
21-
from api.models.efp_schemas import SIMPLE_EFP_DATABASE_SCHEMAS, EfpSchemaBuilder
22-
from api.models.efp_dynamic import SIMPLE_EFP_SAMPLE_MODELS
20+
from api import app # noqa: E402
21+
from api.models.efp_schemas import SIMPLE_EFP_DATABASE_SCHEMAS, EfpSchemaBuilder # noqa: E402
22+
from api.models.efp_dynamic import SIMPLE_EFP_SAMPLE_MODELS # noqa: E402
2323

2424

2525
class TestEfpSchemaDefinitions(TestCase):
@@ -310,7 +310,7 @@ def test_oat_has_extra_genome_columns(self):
310310
extra_columns = {'genome', 'genome_id', 'orthogroup', 'version'}
311311
self.assertTrue(
312312
extra_columns.issubset(column_names),
313-
f"oat missing expected extra columns"
313+
"oat missing expected extra columns"
314314
)
315315

316316
def test_oat_has_utf8mb4_charset(self):
@@ -348,7 +348,7 @@ def test_schema_with_qa_columns_adds_three_columns(self):
348348

349349
self.assertTrue(
350350
qa_columns.issubset(column_names),
351-
f"QA schema missing QA columns"
351+
"QA schema missing QA columns"
352352
)
353353

354354
def test_build_schema_handles_extra_columns(self):

0 commit comments

Comments
 (0)