File tree Expand file tree Collapse file tree 2 files changed +5
-12
lines changed Expand file tree Collapse file tree 2 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -30,22 +30,14 @@ repos:
3030 rev : v0.7.0
3131 hooks :
3232 - id : ruff
33- args :
34- - --fix
35-
36- - repo : https://github.com/asottile/pyupgrade
37- rev : v3.19.0
38- hooks :
39- - id : pyupgrade
40- args : [--py39-plus, --keep-runtime-typing]
41- name : Upgrade code with exceptions
33+ args : ["--fix"]
4234 exclude : |
4335 (?x)(
4436 ^versioneer.py|
4537 ^monai/_version.py|
46- ^monai/networks/| # avoid typing rewrites
47- ^monai/apps/detection/utils/anchor_utils.py| # avoid typing rewrites
48- ^tests/test_compute_panoptic_quality.py # avoid typing rewrites
38+ ^monai/networks/| # todo: avoid typing rewrites
39+ ^monai/apps/detection/utils/anchor_utils.py| # todo: avoid typing rewrites
40+ ^tests/test_compute_panoptic_quality.py # todo: avoid typing rewrites
4941 )
5042
5143 - repo : https://github.com/asottile/yesqa
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ target-version = "py39"
4545select = [
4646 " E" , " F" , " W" , # flake8
4747 " NPY" , # NumPy specific rules
48+ " UP" , # pyupgrade
4849]
4950extend-ignore = [
5051 " E741" , # ambiguous variable name
You can’t perform that action at this time.
0 commit comments