Skip to content

Commit

Permalink
Python reformattings not catched in 19f9240
Browse files Browse the repository at this point in the history
* added python requirements to the requirements file
* fixed one formatting issue
* removed one legacy ignored error (error no longer exists)
  • Loading branch information
CommanderStorm committed Jul 30, 2022
1 parent 0128a23 commit 1f18d27
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
5 changes: 3 additions & 2 deletions data/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
beautifulsoup4~=4.11.1
defusedxml~=0.7.1
Pillow~=9.2.0
pyyaml~=6.0
utm~=0.7.0
Pillow~=9.2.0
defusedxml~=0.7.1
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,5 @@ disable=[
"line-too-long", # we have another hook for this
"wrong-import-position", # we have another hook for this
"no-member", # mypy does this job with less false positives
"modelform-uses-exclude", # usage of exclude is sometimes valid.
"fixme", # prevents users from committing things with a TODO in comments. Having more frequent commits is desirable
]
7 changes: 4 additions & 3 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
mypy~=0.950
pre-commit~=2.19.0
types-Pillow~=9.0.19
pre-commit~=2.20.0
pylint~=2.14.5
types-Pillow~=9.2.1
types-PyYAML~=6.0.8
types-requests~=2.27.30
types-requests~=2.28.6
types-termcolor~=1.1.4
2 changes: 2 additions & 0 deletions server/test/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
progress~=1.6
termcolor~=1.1.0
2 changes: 1 addition & 1 deletion server/test/search_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def _do_search(qst: str, query: dict):
"query": query["query"],
"target": query["target"],
"hits": list(itertools.chain(*[s["entries"] for s in req["sections"]])),
"num_results": sum([s["estimatedTotalHits"] for s in req["sections"]]),
"num_results": sum(s["estimatedTotalHits"] for s in req["sections"]),
"time_ms": req["time_ms"],
}

Expand Down

0 comments on commit 1f18d27

Please sign in to comment.