Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Python3 in pre-commit-config.yaml #1463

Merged
merged 4 commits into from
Jan 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 9 additions & 13 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
# limitations under the License.

default_language_version:
python: python3.8
python: python3

ci:
autofix_prs: true
autoupdate_commit_msg: '[pre-commit.ci] pre-commit suggestions'
autoupdate_commit_msg: "[pre-commit.ci] pre-commit suggestions"
autoupdate_schedule: quarterly
# submodules: true

Expand All @@ -34,7 +34,7 @@ repos:
- id: check-executables-have-shebangs
- id: check-case-conflict
- id: check-added-large-files
args: ['--maxkb=100', '--enforce-all']
args: ["--maxkb=100", "--enforce-all"]
- id: detect-private-key

- repo: https://github.com/asottile/pyupgrade
Expand Down Expand Up @@ -72,22 +72,18 @@ repos:
- mdformat-black
- mdformat_frontmatter
exclude: |
(?x)^(
CHANGELOG.md|
docs/paper_JOSS/paper.md
)$
(?x)^(
CHANGELOG.md|
docs/paper_JOSS/paper.md
)$

- repo: https://github.com/asottile/yesqa
rev: v1.4.0
hooks:
- id: yesqa

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.0.226'
rev: v0.0.233
hooks:
- id: ruff
# Respect `exclude` and `extend-exclude` settings.
args:
- "--fix"
- "--respect-gitignore"
- "--force-exclude"
args: ["--fix"]