File tree Expand file tree Collapse file tree 5 files changed +212
-314
lines changed Expand file tree Collapse file tree 5 files changed +212
-314
lines changed Original file line number Diff line number Diff line change @@ -28,25 +28,21 @@ jobs:
28
28
# Do not run if coming from a forked repo
29
29
# See https://github.com/marketplace/actions/lint-action
30
30
- 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
32
32
uses : wearerequired/lint-action@v2
33
33
with :
34
+ auto_fix : true
35
+ black : true
36
+ black_auto_fix : true
34
37
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
40
39
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
50
46
51
47
unit-tests :
52
48
name : Unit tests (Python ${{ matrix.python-version }})
Original file line number Diff line number Diff line change @@ -387,12 +387,12 @@ def decode_binary_message(
387
387
return_record_name_override = True ,
388
388
)
389
389
390
- logging .debug (f "HEADER { recMH } " )
390
+ logging .debug ("HEADER %s" , recMH )
391
391
392
392
logging .debug (
393
- f "classmethod decode_binary_message { object_res } "
393
+ "classmethod decode_binary_message %s" , object_res
394
394
)
395
- logging .debug (f " ==> object_class { object_class } " )
395
+ logging .debug (" ==> object_class %s" , object_class )
396
396
397
397
return Message (
398
398
mh .MessageHeader .parse_obj (recMH ),
You can’t perform that action at this time.
0 commit comments