Skip to content

Commit 868f0f1

Browse files
committed
Lint and GHA updates
1 parent 7c60d4a commit 868f0f1

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
max-parallel: 8
1010
matrix:
11-
os: [ubuntu-20.04, ubuntu-22.04, macos-10.15]
11+
os: [ubuntu-18.04, ubuntu-22.04, macos-12]
1212
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
1313
steps:
1414
- uses: actions/checkout@v2
@@ -24,8 +24,14 @@ jobs:
2424
- name: Test
2525
run: |
2626
make test
27-
- uses: isort/isort-action@v1.0.0
28-
- uses: psf/black@stable
2927
- name: Upload coverage data
3028
run: |
3129
bash <(curl -s https://codecov.io/bash)
30+
black:
31+
runs-on: ubuntu-22.04
32+
steps:
33+
- uses: psf/black@stable
34+
isort:
35+
runs-on: ubuntu-22.04
36+
steps:
37+
- uses: isort/isort-action@v1.1.0

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ line-length = 120
44
profile = "black"
55
line_length = 120
66
skip = ["signxml/__init__.py", "signxml/xades/__init__.py"]
7+
skip_gitignore = true

signxml/xades/xades.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ def _verify_signed_properties(self, verify_result):
318318
def verify( # type: ignore
319319
self,
320320
data,
321-
expect_signature_policy: XAdESSignaturePolicy = None,
321+
expect_signature_policy: Optional[XAdESSignaturePolicy] = None,
322322
expect_references: int = 3,
323323
**xml_verifier_args,
324324
) -> List[XAdESVerifyResult]:

0 commit comments

Comments
 (0)