Skip to content

Commit 98680c5

Browse files
--
1 parent 6c7ff78 commit 98680c5

File tree

5 files changed

+212
-314
lines changed

5 files changed

+212
-314
lines changed

.github/workflows/ci-tests.yml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,25 +28,21 @@ jobs:
2828
# Do not run if coming from a forked repo
2929
# See https://github.com/marketplace/actions/lint-action
3030
- name: Run linters (with annotations)
31-
if: github.event.pull_request.head.repo.full_name == github.repository
31+
# if: github.event.pull_request.head.repo.full_name == github.repository
3232
uses: wearerequired/lint-action@v2
3333
with:
34+
auto_fix: true
35+
black: true
36+
black_auto_fix: true
3437
flake8: true
35-
flake8_command_prefix: poetry run
36-
flake8_dir: etpproto
37-
mypy: true
38-
mypy_command_prefix: poetry run
39-
mypy_args: etpproto
38+
flake8_auto_fix: false
4039

41-
# Alternative step that works with forked repo
42-
- name: Run linters (without annotations)
43-
# if: github.event.pull_request.head.repo.full_name != github.repository
44-
run: |
45-
poetry run flake8 .
46-
poetry run mypy etpproto
47-
48-
- name: Code formatting
49-
run: poetry run black --check .
40+
# # Alternative step that works with forked repo
41+
# - name: Run linters (without annotations)
42+
# # if: github.event.pull_request.head.repo.full_name != github.repository
43+
# run: |
44+
# poetry run flake8 .
45+
# poetry run mypy etpproto
5046

5147
unit-tests:
5248
name: Unit tests (Python ${{ matrix.python-version }})

etpproto/messages.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,12 +387,12 @@ def decode_binary_message(
387387
return_record_name_override=True,
388388
)
389389

390-
logging.debug(f"HEADER {recMH}")
390+
logging.debug("HEADER %s", recMH)
391391

392392
logging.debug(
393-
f"classmethod decode_binary_message {object_res}"
393+
"classmethod decode_binary_message %s", object_res
394394
)
395-
logging.debug(f" ==> object_class {object_class}")
395+
logging.debug(" ==> object_class %s", object_class)
396396

397397
return Message(
398398
mh.MessageHeader.parse_obj(recMH),

0 commit comments

Comments
 (0)