Skip to content

Commit 97d41bf

Browse files
authored
[ML] chore: Bump pylint, black, and isort in .pre-commit-config.yaml (#35323)
* chore: Bump black in pre-commit * chore: Bump pylint and pylint-guidelines-checker in pre-commit * chore: Bump isort in pre-commit https://github.com/pre-commit/mirros-isort was deprecated Switching to the official repository * fix: Ensure pre-commit skips files with --filter-files
1 parent e7d7ccd commit 97d41bf

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

sdk/ml/azure-ai-ml/.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
files: sdk/ml/
22
repos:
33
- repo: https://github.com/psf/black
4-
rev: 22.3.0 # Needs to be updated whenever azure sdk team bumps
4+
rev: 24.4.0 # Needs to be updated whenever azure sdk team bumps
55
hooks:
66
- id: black
77
args: [--config=eng/black-pyproject.toml]
@@ -18,8 +18,8 @@ repos:
1818
hooks:
1919
- id: cspell
2020
args: ['--config', '.vscode/cspell.json', "--no-must-find-files"]
21-
- repo: https://github.com/pre-commit/mirrors-isort
22-
rev: v5.8.0
21+
- repo: https://github.com/PyCQA/isort
22+
rev: 5.13.2
2323
hooks:
2424
- id: isort
2525
name: isort (python)
@@ -43,13 +43,13 @@ repos:
4343
dependencies = [
4444
(
4545
"azure-pylint-guidelines-checker",
46-
"0.2.0",
46+
"0.3.1",
4747
[
4848
"--index-url",
4949
"https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple/",
5050
],
5151
),
52-
("pylint", "2.15.8", []),
52+
("pylint", "3.0.3", []),
5353
]
5454
5555
# Make sure that correct versions are installed

sdk/ml/azure-ai-ml/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ strict_sphinx = true
1111
profile = "black"
1212
line_length = 120
1313
known_first_party = ["azure"]
14+
filter_files=true
1415
extend_skip_glob = [
1516
"*/_vendor/*",
1617
"*/_generated/*",

0 commit comments

Comments
 (0)