Skip to content

Commit

Permalink
Change Python3 in pre-commit-config.yaml (#1463)
Browse files Browse the repository at this point in the history
* simple python version
* ruff update
* Apply suggestions from code review

Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com>
  • Loading branch information
jxtngx and Borda committed Jan 26, 2023
1 parent f3c82e2 commit 662a2a2
Showing 1 changed file with 9 additions and 13 deletions.
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"]

0 comments on commit 662a2a2

Please sign in to comment.