Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#11)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Philipp A <flying-sheep@web.de>
  • Loading branch information
pre-commit-ci[bot] and flying-sheep authored Oct 31, 2023
1 parent b73f6f2 commit c8878c6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 14 deletions.
9 changes: 2 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,11 @@ repos:
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/psf/black
rev: "23.10.0"
hooks:
- id: black
language_version: python3
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.1
rev: v0.1.3
hooks:
- id: ruff
args: ["--fix"]
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.3
hooks:
Expand Down
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"recommendations": ["ms-python.black-formatter", "ms-python.python"],
"recommendations": ["charliermarsh.ruff", "ms-python.python"],
}
6 changes: 3 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"python.testing.pytestArgs": ["--color=yes"],
"[python]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.defaultFormatter": "charliermarsh.ruff",
"editor.codeActionsOnSave": {
"source.fixAll": true,
"source.organizeImports": true,
"source.fixAll": "always",
"source.organizeImports": "always",
},
},
"[toml]": {
Expand Down
3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ test = [
"toml", # coverage-rich’s dep anyconfig needs this to load the config
]

[tool.black]
line-length = 100

[tool.ruff]
line-length = 100
select = ["ALL"]
Expand Down

0 comments on commit c8878c6

Please sign in to comment.