Skip to content

Commit 05c4e93

Browse files
author
Asaf Cohen
committed
fix precommit errors
1 parent 8c17d5c commit 05c4e93

5 files changed

Lines changed: 12 additions & 12 deletions

File tree

.dockerignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
helm/
33
.venv/
44
.github/
5-
lib/
5+
lib/

lib/permit-datafilter/MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
include *.md requirements.txt
1+
include *.md requirements.txt

lib/permit-datafilter/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ clean:
88
publish:
99
$(MAKE) clean
1010
python setup.py sdist bdist_wheel
11-
python -m twine upload dist/*
11+
python -m twine upload dist/*

lib/permit-datafilter/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ fastapi>=0.109.1,<1
44
loguru
55
pydantic[email]>=1.9.1,<2
66
pytest
7-
SQLAlchemy==1.4.46
7+
SQLAlchemy==1.4.46

lib/permit-datafilter/tests/test_data_filtering_usage.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,16 @@ class Task(Base):
7979
str_query = query_to_string(sa_query)
8080

8181
assert striplines(str_query) == striplines(
82-
"""SELECT task.id, task.created_at, task.updated_at, task.description, task.tenant_id
83-
FROM task
82+
"""SELECT task.id, task.created_at, task.updated_at, task.description, task.tenant_id
83+
FROM task
8484
WHERE task.tenant_id = '082f6978-6424-4e05-a706-1ab6f26c3768'"""
8585
)
8686

8787
str_query_only_columns = query_to_string(sa_query.with_only_columns(Task.id))
8888

8989
assert striplines(str_query_only_columns) == striplines(
90-
"""SELECT task.id
91-
FROM task
90+
"""SELECT task.id
91+
FROM task
9292
WHERE task.tenant_id = '082f6978-6424-4e05-a706-1ab6f26c3768'"""
9393
)
9494

@@ -141,8 +141,8 @@ class TaskJoined(Base):
141141
str_query = query_to_string(sa_query)
142142

143143
assert striplines(str_query) == striplines(
144-
"""SELECT task_joined.id, task_joined.created_at, task_joined.updated_at, task_joined.description, task_joined.tenant_id_joined
145-
FROM task_joined JOIN tenant ON task_joined.tenant_id_joined = tenant.id
144+
"""SELECT task_joined.id, task_joined.created_at, task_joined.updated_at, task_joined.description, task_joined.tenant_id_joined
145+
FROM task_joined JOIN tenant ON task_joined.tenant_id_joined = tenant.id
146146
WHERE tenant.key = '082f6978-6424-4e05-a706-1ab6f26c3768'"""
147147
)
148148

@@ -170,7 +170,7 @@ class Tasks(Base):
170170

171171
str_query = query_to_string(sa_query)
172172
assert striplines(str_query) == striplines(
173-
"""SELECT tasks.id, tasks.created_at, tasks.updated_at, tasks.description, tasks.tenant_id
173+
"""SELECT tasks.id, tasks.created_at, tasks.updated_at, tasks.description, tasks.tenant_id
174174
FROM tasks"""
175175
) # this query would always return all rows from the tasks table
176176

@@ -187,7 +187,7 @@ class Tasks(Base):
187187

188188
str_query = query_to_string(sa_query)
189189
assert striplines(str_query) == striplines(
190-
"""SELECT tasks.id, tasks.created_at, tasks.updated_at, tasks.description, tasks.tenant_id
190+
"""SELECT tasks.id, tasks.created_at, tasks.updated_at, tasks.description, tasks.tenant_id
191191
FROM tasks
192192
WHERE false"""
193193
) # this query would never have any results

0 commit comments

Comments
 (0)