Skip to content

Commit 13900eb

Browse files
committed
Remove newly introduced trailing whitespace
Signed-off-by: Stefan Weil <[email protected]>
1 parent 5d92cdb commit 13900eb

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
steps:
2929
- checkout
3030
- run: sudo apt-get -y update
31-
- run: sudo make deps-ubuntu
31+
- run: sudo make deps-ubuntu
3232
- run: make install deps-test
3333
- run: make test benchmark
3434

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ pyclean:
265265
.PHONY: docker docker-cuda
266266

267267
# Additional arguments to docker build. Default: '$(DOCKER_ARGS)'
268-
DOCKER_ARGS =
268+
DOCKER_ARGS =
269269

270270
# Build docker image
271271
docker: DOCKER_BASE_IMAGE = ubuntu:20.04
@@ -278,7 +278,7 @@ docker-cuda: DOCKER_FILE = Dockerfile.cuda
278278

279279
docker-cuda: docker
280280

281-
docker docker-cuda:
281+
docker docker-cuda:
282282
docker build --progress=plain -f $(DOCKER_FILE) -t $(DOCKER_TAG) --build-arg BASE_IMAGE=$(DOCKER_BASE_IMAGE) $(DOCKER_ARGS) .
283283

284284
# Build wheels and source dist and twine upload them

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,9 @@ To be used in a **loop over all selected pages**:
265265
local in_pageId=($(ocrd__input_file $n pageId))
266266
local out_id=$(ocrd__input_file $n outputFileId)
267267
local out_fpath="${ocrd__argv[output_file_grp]}/${out_id}.xml
268-
268+
269269
# process $in_fpath to $out_fpath ...
270-
270+
271271
declare -a options
272272
if [ -n "$in_pageId" ]; then
273273
options=( -g $in_pageId )
@@ -285,11 +285,11 @@ To be used in a **loop over all selected pages**:
285285
> **Note**: If the `--input-file-grp` is **multi-valued** (N fileGrps separated by commas),
286286
> then usage is similar:
287287
> * The function `ocrd__input_file` can be used, but
288-
> its results will be **lists** (delimited by whitespace and surrounded by single quotes),
288+
> its results will be **lists** (delimited by whitespace and surrounded by single quotes),
289289
> e.g. `[url]='file1.xml file2.xml' [ID]='id_file1 id_file2' [mimetype]='application/vnd.prima.page+xml image/tiff' ...`.
290290
> * Therefore its results should be encapsulated in a (non-associative) **array variable**
291291
> and without extra quotes, e.g. `in_file=($(ocrd__input_file 3 url))`, or as shown above.
292-
> * This will yield the first fileGrp's results on index 0,
292+
> * This will yield the first fileGrp's results on index 0,
293293
> which in bash will always be the same as if you referenced the array without index
294294
> (so code does not need to be changed much), e.g. `test -f $in_file` which equals `test -f ${in_file[0]}`.
295295
> * Additional fileGrps will have to be fetched from higher indexes, e.g. `test -f ${in_file[1]}`.

ocrd_network/ocrd_network/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
# For reference, currently:
55
# 1. The WebAPI is available here: https://github.com/OCR-D/ocrd-webapi-implementation
66
# The ocrd-webapi-implementation repo implements the Discovery / Workflow / Workspace endpoints of the WebAPI currently.
7-
# This Processing Server PR implements just the Processor endpoint of the WebAPI.
8-
# Once we have this merged to core under ocrd-network, the other endpoints will be adapted to ocrd-network
7+
# This Processing Server PR implements just the Processor endpoint of the WebAPI.
8+
# Once we have this merged to core under ocrd-network, the other endpoints will be adapted to ocrd-network
99
# and then the ocrd-webapi-implementation repo can be archived for reference.
1010

11-
# 2. The RabbitMQ Library (i.e., utils) is used as an API to abstract and
11+
# 2. The RabbitMQ Library (i.e., utils) is used as an API to abstract and
1212
# simplify (from the view point of processing server and workers) interactions with the RabbitMQ Server.
1313
# The library was adopted from: https://github.com/OCR-D/ocrd-webapi-implementation/tree/main/ocrd_webapi/rabbitmq
1414

1515
# 3. Some potentially more useful code to be adopted for the Processing Server/Worker is available here:
1616
# https://github.com/OCR-D/core/pull/884
17-
# Update: Should be revisited again for adopting any relevant parts (if necessary).
17+
# Update: Should be revisited again for adopting any relevant parts (if necessary).
1818
# Nothing relevant is under the radar for now.
1919

2020
# 4. The Mets Server discussion/implementation is available here:

ocrd_network/ocrd_network/processing_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ async def push_to_processor_server(self, processor_name: str, job_input: PYJobIn
330330
status_code=status.HTTP_500_INTERNAL_SERVER_ERROR,
331331
detail=f"Failed to json dump the PYJobInput, error: {e}"
332332
)
333-
333+
334334
# TODO: The amount of pages should come as a request input
335335
# TODO: cf https://github.com/OCR-D/core/pull/1030/files#r1152551161
336336
# currently, use 200 as a default

ocrd_network/ocrd_network/processor_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def get_version(self) -> str:
196196
if self.version:
197197
return self.version
198198

199-
"""
199+
"""
200200
if self.processor_class:
201201
# The way of accessing the version like in the line below may be problematic
202202
# version_str = self.processor_class(workspace=None, version=True).version

tests/cli/test_bashlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def invoke_bash(self, script, *args, executable=None):
4848
return -1, "", str(e)
4949
finally:
5050
os.remove(scriptfile.name)
51-
51+
5252
def setUp(self):
5353
self.maxDiff = None
5454
super().setUp()

0 commit comments

Comments
 (0)