Skip to content

Commit 5f9de73

Browse files
authored
Add pre-commit (#460)
* Add pre-commit - add configs to pyproject.toml - add .pre-commit-config.yaml - remove mypy.yml, flak8.yml, pycodestyle.yml - replace os.path with pathlib.path - remove whitespaces - fix new lines - small fixes * fix conf.py
1 parent 36996c2 commit 5f9de73

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+145
-137
lines changed

.github/actions/linux_armv7l/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ FROM ghcr.io/nikteliy/manylinux_2_24_armv7l:python3.7
33
COPY entrypoint.sh /entrypoint.sh
44
RUN chmod +x /entrypoint.sh
55

6-
ENTRYPOINT ["/entrypoint.sh"]
6+
ENTRYPOINT ["/entrypoint.sh"]

.github/actions/linux_armv7l/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ runs:
2525
- ${{ inputs.platform }}
2626
- ${{ inputs.makefile }}
2727
- ${{ inputs.python }}
28-
- ${{ inputs.wheeldir }}
28+
- ${{ inputs.wheeldir }}

.github/actions/linux_armv7l/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ set -o errexit
44
set -o pipefail
55
set -o nounset
66

7-
exec "$INPUT_SCRIPT"
7+
exec "$INPUT_SCRIPT"

.github/actions/manylinux_2_24_aarch64/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ FROM quay.io/pypa/manylinux_2_24_aarch64:latest
33
COPY entrypoint.sh /entrypoint.sh
44
RUN chmod +x /entrypoint.sh
55

6-
ENTRYPOINT ["/entrypoint.sh"]
6+
ENTRYPOINT ["/entrypoint.sh"]

.github/actions/manylinux_2_24_aarch64/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ runs:
2525
- ${{ inputs.platform }}
2626
- ${{ inputs.makefile }}
2727
- ${{ inputs.python }}
28-
- ${{ inputs.wheeldir }}
28+
- ${{ inputs.wheeldir }}

.github/actions/manylinux_2_24_x86_64/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ FROM quay.io/pypa/manylinux_2_24_x86_64:latest
33
COPY /entrypoint.sh /entrypoint.sh
44
RUN chmod +x /entrypoint.sh
55

6-
ENTRYPOINT ["/entrypoint.sh"]
6+
ENTRYPOINT ["/entrypoint.sh"]

.github/actions/manylinux_2_24_x86_64/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ runs:
2525
- ${{ inputs.platform }}
2626
- ${{ inputs.makefile }}
2727
- ${{ inputs.python }}
28-
- ${{ inputs.wheeldir }}
28+
- ${{ inputs.wheeldir }}

.github/actions/prepare_snap7/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ runs:
1414
with:
1515
path: snap7-full-1.4.2.7z
1616
key: ${{ inputs.snap7-archive-url }}
17-
17+
1818
- name: Install choco packages
1919
if: steps.snap7-archive.outputs.cache-hit != 'true' && runner.os == 'Windows'
2020
shell: bash
@@ -31,4 +31,4 @@ runs:
3131

3232
- name: Update wheel
3333
shell: bash
34-
run: python3 -m pip install --upgrade pip wheel build
34+
run: python3 -m pip install --upgrade pip wheel build

.github/build_scripts/build_package.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@ ${INPUT_PYTHON} -m pip install wheel build auditwheel patchelf
1010
${INPUT_PYTHON} -m build . --wheel -C="--build-option=--plat-name=${INPUT_PLATFORM}"
1111

1212
auditwheel repair dist/*${INPUT_PLATFORM}.whl --plat ${INPUT_PLATFORM} -w ${INPUT_WHEELDIR}
13-

.github/workflows/build-and-test-arm32v7.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ jobs:
1111
steps:
1212
- name: Checkout
1313
uses: actions/checkout@v3
14-
14+
1515
- name: Prepare snap7 archive
1616
uses: ./.github/actions/prepare_snap7
1717

1818
- name: Set up QEMU
1919
uses: docker/setup-qemu-action@v2
2020
with:
2121
platforms: arm
22-
22+
2323
- name: Build wheel
2424
uses: ./.github/actions/linux_armv7l
2525
with:
@@ -55,14 +55,13 @@ jobs:
5555
uses: docker/setup-qemu-action@v2
5656
with:
5757
platforms: arm
58-
58+
5959
- name: Run tests in docker:arm32v7
6060
run: |
6161
docker run --platform linux/arm/v7 --rm --interactive -v $PWD/tests:/tests \
6262
-v $PWD/pyproject.toml:/pyproject.toml \
6363
-v $PWD/wheelhouse:/wheelhouse \
64-
"arm32v7/python:${{ matrix.python-version }}-buster" /bin/bash -s <<EOF
64+
"arm32v7/python:${{ matrix.python-version }}-buster" /bin/bash -s <<EOF
6565
python -m pip install pytest pytest-asyncio $(ls wheelhouse/*manylinux_2_24_armv7l.whl)
6666
python -m pytest tests/ -m "server or util or client or mainloop or partner"
6767
EOF
68-

0 commit comments

Comments
 (0)