Skip to content

Commit 0d281ff

Browse files
authored
CI: update python config (#6617)
Some tools are displaying deprecation warnings, this PR addresses them by using the direct replacements
2 parents 0ddcfe0 + ca9e211 commit 0d281ff

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/other.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
- uses: pre-commit/action@v3.0.1
5252
name: Run pre-commit checks (no spaces at end of lines, etc)
5353
with:
54-
extra_args: --all-files --verbose --hook-stage commit
54+
extra_args: --all-files --verbose --hook-stage pre-commit
5555
env:
5656
SKIP: no-commit-to-branch
5757

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
## For manually executing the pre-push hook:
1414
# pre-commit run -av --hook-stage pre-push
1515
#
16-
default_stages: [commit, push]
16+
default_stages: [pre-commit, pre-push]
1717
default_language_version:
1818
python: python3.11
1919
repos:
@@ -68,7 +68,7 @@ repos:
6868
entry: env PYTHONDEVMODE=yes sh -c 'coverage run && coverage xml &&
6969
coverage html && coverage report &&
7070
diff-cover --ignore-whitespace --compare-branch=origin/master
71-
--show-uncovered --html-report .git/coverage-diff.html
71+
--show-uncovered --format html:.git/coverage-diff.html
7272
--fail-under 50 .git/coverage3.11.xml'
7373
require_serial: true
7474
pass_filenames: false
@@ -108,7 +108,7 @@ repos:
108108
hooks:
109109
- id: pylint
110110
files: python3/
111-
stages: [push]
111+
stages: [pre-push]
112112
name: check that changes to python3 tree pass pylint
113113
entry: diff-quality --violations=pylint
114114
--ignore-whitespace --compare-branch=origin/master
@@ -134,7 +134,7 @@ repos:
134134
entry: python3 pytype_reporter.py
135135
pass_filenames: false
136136
types: [python]
137-
stages: [push]
137+
stages: [pre-push]
138138
verbose: true
139139
# This hook runs locally only when Python files change:
140140
language: python

doc/content/python/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ in the [pre-commit] configuration file [.pre-commit-config.yaml].
5252
entry: sh -c 'coverage run && coverage xml &&
5353
coverage html && coverage report &&
5454
diff-cover --ignore-whitespace --compare-branch=origin/master
55-
--show-uncovered --html-report .git/coverage-diff.html
55+
--show-uncovered --format html:.git/coverage-diff.html
5656
--fail-under 50 .git/coverage3.11.xml'
5757
require_serial: true
5858
pass_filenames: false

0 commit comments

Comments
 (0)