Skip to content

Commit b48b82c

Browse files
build: same python version in pre-commit and tests
1 parent 78ed0b8 commit b48b82c

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
id: setup-python
2222
uses: actions/setup-python@v4
2323
with:
24-
python-version: "3.11"
24+
python-version: "3.10"
2525

2626
- name: Install pre-commit
2727
run: pip install pre-commit

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ repos:
55
rev: v4.4.0
66
hooks:
77
- id: check-ast
8-
language_version: python3.11
8+
language_version: python3.10
99
- id: check-merge-conflict
1010
- id: check-case-conflict
1111
- id: check-json
@@ -35,8 +35,8 @@ repos:
3535
rev: 23.7.0
3636
hooks:
3737
- id: black
38-
language_version: python3.11
39-
args: [--target-version, py311]
38+
language_version: python3.10
39+
args: [--target-version, py310]
4040
files: ^src/.*\.py$
4141
exclude: ^src/dmss_api/
4242

src/services/job_handler_interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class Config:
5353
"dmss_id": True,
5454
"log": True,
5555
"percentage": True,
56-
"token": True,
56+
"token": True, # nosec B105
5757
"state": True,
5858
"external_progress": True,
5959
"exclude_keys": True,

0 commit comments

Comments
 (0)