Skip to content

Commit ec74fac

Browse files
Bump pycodestyle from 2.5.0 to 2.6.0 (#267)
* Bump pycodestyle from 2.5.0 to 2.6.0 Bumps [pycodestyle](https://github.com/PyCQA/pycodestyle) from 2.5.0 to 2.6.0. - [Release notes](https://github.com/PyCQA/pycodestyle/releases) - [Changelog](https://github.com/PyCQA/pycodestyle/blob/master/CHANGES.txt) - [Commits](PyCQA/pycodestyle@2.5.0...2.6.0) Signed-off-by: dependabot-preview[bot] <[email protected]> * Uprev pycodestyle Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: tomhamiltonstubber <[email protected]>
1 parent 9bd003a commit ec74fac

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

tcsocket/app/processing.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ async def _set_labels(conn, company_id, labels):
8282
return
8383
async with conn.begin():
8484
stmt = pg_insert(sa_labels).values([
85-
{'company': company_id, 'machine_name': l.machine_name, 'name': l.name}
86-
for l in labels
85+
{'company': company_id, 'machine_name': label.machine_name, 'name': label.name}
86+
for label in labels
8787
])
8888
await conn.execute(
8989
stmt
@@ -145,7 +145,7 @@ async def contractor_set(
145145
town=contractor.town,
146146
country=contractor.country,
147147
last_updated=contractor.last_updated,
148-
labels=[l.machine_name for l in contractor.labels],
148+
labels=[label.machine_name for label in contractor.labels],
149149
)
150150
if contractor.location:
151151
data.update(contractor.location.dict())

tcsocket/app/views/contractor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ async def contractor_get(request):
221221
)
222222
con = await curr.first()
223223
if not con:
224-
return HTTPNotFoundJson()
224+
raise HTTPNotFoundJson()
225225
options = request['company'].options or {}
226226
return json_response(
227227
request,

tcsocket/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def resetdb(no_input):
134134
]
135135
EXEC_LINES += (
136136
['print("\\n Python {v.major}.{v.minor}.{v.micro}\\n".format(v=sys.version_info))'] +
137-
[f'print(" {l}")' for l in EXEC_LINES]
137+
[f'print(" {line}")' for line in EXEC_LINES]
138138
)
139139

140140

tests/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ attrs==19.3.0
22
coverage==5.1
33
flake8==3.8.2
44
isort==4.3.21
5-
pycodestyle==2.5.0
5+
pycodestyle==2.6.0
66
pyflakes==2.2.0
77
pytest==5.4.2
88
pytest-aiohttp==0.3.0

0 commit comments

Comments
 (0)