Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#3)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.5.0](pre-commit/pre-commit-hooks@v4.4.0...v4.5.0)
- [github.com/codespell-project/codespell: v2.2.5 → v2.2.6](codespell-project/codespell@v2.2.5...v2.2.6)
- [github.com/astral-sh/ruff-pre-commit: v0.0.286 → v0.1.13](astral-sh/ruff-pre-commit@v0.0.286...v0.1.13)
- [github.com/psf/black: 23.7.0 → 23.12.1](psf/black@23.7.0...23.12.1)
- [github.com/adrienverge/yamllint: v1.32.0 → v1.33.0](adrienverge/yamllint@v1.32.0...v1.33.0)
- [github.com/pre-commit/mirrors-mypy: v1.5.1 → v1.8.0](pre-commit/mirrors-mypy@v1.5.1...v1.8.0)

* replace black with ruff-format

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: adehad <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and adehad authored Jan 16, 2024
1 parent 710ff47 commit d9f2266
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 16 deletions.
16 changes: 6 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
Expand All @@ -15,7 +15,7 @@ repos:
- id: check-yaml
files: .*\.(yaml|yml)$
- repo: https://github.com/codespell-project/codespell
rev: v2.2.5
rev: v2.2.6
hooks:
- id: codespell
name: codespell
Expand All @@ -27,22 +27,18 @@ repos:
require_serial: false
additional_dependencies: []
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.0.286"
rev: "v0.1.13"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
language_version: python3
- id: ruff-format
- repo: https://github.com/adrienverge/yamllint
rev: v1.32.0
rev: v1.33.0
hooks:
- id: yamllint
files: \.(yaml|yml)$
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.5.1
rev: v1.8.0
hooks:
- id: mypy
additional_dependencies:
Expand Down
10 changes: 4 additions & 6 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
{
"python.linting.mypyEnabled": true,
"python.formatting.provider": "black",
"[python]": {
"editor.wordBasedSuggestions": false,
"editor.defaultFormatter": "ms-python.python",
"editor.wordBasedSuggestions": "off",
"editor.defaultFormatter": "charliermarsh.ruff",
"editor.codeActionsOnSave": {
"source.fixAll": true,
"source.organizeImports": true,
"source.fixAll": "explicit",
"source.organizeImports": "explicit"
}
}
}

0 comments on commit d9f2266

Please sign in to comment.