Skip to content

Commit add56d8

Browse files
committed
Merge branch 'main' into dev/eglaser-kmeans-oop
2 parents 283bcd5 + 7d6ff14 commit add56d8

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616

1717
repos:
1818
- repo: https://github.com/psf/black
19-
rev: 23.7.0
19+
rev: 24.1.1
2020
hooks:
2121
- id: black
2222
language_version: python3.10
2323
- repo: https://github.com/PyCQA/isort
24-
rev: 5.12.0
24+
rev: 5.13.2
2525
hooks:
2626
- id: isort
2727
language_version: python3.10

azure-pipelines.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,10 @@ jobs:
1919
pool:
2020
vmImage: 'ubuntu-22.04'
2121
steps:
22-
- task: UsePythonVersion@0
23-
inputs:
24-
versionSpec: '3.10'
25-
addToPath: true
2622
- script: |
27-
python -m pip install --upgrade pip setuptools
28-
pip install isort black
29-
isort --check . && black --check .
23+
python -m pip install --upgrade pip pre-commit==4.0.1
24+
pre-commit install
25+
pre-commit run --all-files --show-diff-on-failure
3026
displayName: 'Linting'
3127
- job: Linux
3228
dependsOn: Lint

sklbench/utils/common.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@ def read_output_from_command(command: str) -> Tuple[int, str, str]:
6666
stderr=sp.PIPE,
6767
encoding="utf-8",
6868
)
69-
return res.returncode, res.stdout[:-1], res.stderr[:-1]
69+
return (
70+
res.returncode,
71+
res.stdout.strip(),
72+
res.stderr.strip(),
73+
)
7074

7175

7276
def hash_from_json_repr(x: JsonTypesUnion, hash_limit: int = 5) -> str:
@@ -120,7 +124,7 @@ def flatten_list(input_list: List, ensure_type_homogeneity: bool = False) -> Lis
120124

121125

122126
def get_module_members(
123-
module_names_chain: Union[List, str]
127+
module_names_chain: Union[List, str],
124128
) -> Tuple[ModuleContentMap, ModuleContentMap]:
125129
def get_module_name(module_names_chain: List[str]) -> str:
126130
name = module_names_chain[0]

0 commit comments

Comments
 (0)