Skip to content

Commit fc6ced8

Browse files
committed
style: add missing newline/linefeed
Adding newline characters at the end of files to: - Comply with POSIX standards - Improve cross-platform compatibility - Optimize version control interactions
1 parent 7b14aa3 commit fc6ced8

11 files changed

+10
-14
lines changed

.cirrus.yml

-4
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,3 @@ macosx_arm64_task:
4949
## To install rosetta
5050
# - softwareupdate --install-rosetta --agree-to-license
5151
<< : *BUILD_TEST_TASK_TEMPLATE
52-
53-
54-
55-

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ RUN python -m flake8
1414
RUN python -m pydocstyle pact
1515
RUN python -m tox -e test
1616

17-
CMD ["sh","-c","python -m tox -e test"]
17+
CMD ["sh","-c","python -m tox -e test"]

Dockerfile.ubuntu

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ RUN python -m flake8
2727
RUN python -m pydocstyle pact
2828
RUN python -m tox -e test
2929

30-
CMD ["sh","-c","python -m tox -e test"]
30+
CMD ["sh","-c","python -m tox -e test"]

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,4 +135,4 @@ venv:
135135
ln -sf ${CURDIR}/.venv ~/.pyenv/versions/${PROJECT}
136136

137137
@echo "\n$(green)Use it! (populate .python-version)$(sgr0)"
138-
pyenv local ${PROJECT}
138+
pyenv local ${PROJECT}

examples/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,4 +217,4 @@ without a [Pact Broker].
217217
[Virtual Environment]: https://docs.python.org/3/tutorial/venv.html
218218
[Sharing Pacts]: https://docs.pact.io/getting_started/sharing_pacts/]
219219
[How to Run a Flask Application]: https://www.twilio.com/blog/how-run-flask-application
220-
[Requiring/Loading plugins in a test module or conftest file]: https://docs.pytest.org/en/6.2.x/writing_plugins.html#requiring-loading-plugins-in-a-test-module-or-conftest-file
220+
[Requiring/Loading plugins in a test module or conftest file]: https://docs.pytest.org/en/6.2.x/writing_plugins.html#requiring-loading-plugins-in-a-test-module-or-conftest-file

examples/consumer/run_pytest.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash
22
set -o pipefail
33

4-
pytest tests --run-broker True --publish-pact 1
4+
pytest tests --run-broker True --publish-pact 1

examples/fastapi_provider/run_pytest.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ set -o pipefail
33

44
# Unlike in the Flask example, here the FastAPI service is started up as a pytest fixture. This is then including the
55
# main and pact routes via fastapi_provider.py to run the tests against
6-
pytest --run-broker True --publish-pact 1
6+
pytest --run-broker True --publish-pact 1\

examples/fastapi_provider/verify_pact.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ else
3434
--pact-broker-password pactbroker \
3535
--publish-verification-results \
3636
--provider-states-setup-url=http://localhost:8000/_pact/provider_states
37-
fi
37+
fi

examples/flask_provider/run_pytest.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ trap teardown EXIT
1717
sleep 1
1818

1919
# Now run the tests
20-
pytest tests --run-broker True --publish-pact 1
20+
pytest tests --run-broker True --publish-pact 1

examples/pacts/userserviceclient-userservice.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@
6262
"version": "2.0.0"
6363
}
6464
}
65-
}
65+
}

run-docker.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ for arch in arm64 amd64; do
66
docker build -t python-$arch-$version --build-arg PYTHON_VERSION=$version --platform=linux/$arch .
77
docker run -it --rm python-$arch-$version
88
done
9-
done
9+
done

0 commit comments

Comments
 (0)