Skip to content

Commit 4bbc00e

Browse files
committed
style(pre-commit): update configuration to support ruff
1 parent 6372dc5 commit 4bbc00e

File tree

2 files changed

+28
-11
lines changed

2 files changed

+28
-11
lines changed

.github/ISSUE_TEMPLATE/custom.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ assignees: Lujeni
88
---
99

1010
## 🔍 Before submitting
11-
- [ ] I have searched for [existing issues](../issues) and pull requests to ensure this is not already reported or fixed.
12-
- [ ] I am running the latest version of the server and client where possible.
11+
- [ ] I have searched for [existing issues](../issues) and pull requests to ensure this is not already reported or fixed.
12+
- [ ] I am running the latest version of the server and client where possible.
1313

1414
---
1515

@@ -20,9 +20,9 @@ assignees: Lujeni
2020

2121
## 🛠️ Steps to Reproduce
2222
<!-- Please provide a minimal reproducible example (CLI commands, API calls, or code snippet). -->
23-
1.
24-
2.
25-
3.
23+
1.
24+
2.
25+
3.
2626

2727
---
2828

@@ -37,8 +37,8 @@ assignees: Lujeni
3737
---
3838

3939
## 📦 Versions
40-
- **Vaultwarden server version**:
41-
- **Client version**:
40+
- **Vaultwarden server version**:
41+
- **Client version**:
4242

4343
---
4444

.pre-commit-config.yaml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
default_language_version:
2-
python: python3.11
2+
python: python3.12
33

44
repos:
55
- repo: https://github.com/pre-commit/pre-commit-hooks
@@ -8,10 +8,27 @@ repos:
88
- id: trailing-whitespace
99
- id: check-merge-conflict
1010

11-
- repo: https://github.com/psf/black
12-
rev: 23.7.0
11+
- repo: https://github.com/astral-sh/ruff-pre-commit
12+
rev: v0.8.4
1313
hooks:
14-
- id: black
14+
- id: ruff
15+
args: [--fix]
16+
- id: ruff-format
17+
18+
- repo: https://github.com/pre-commit/mirrors-mypy
19+
rev: v1.13.0
20+
hooks:
21+
- id: mypy
22+
additional_dependencies:
23+
[types-PyYAML, types-setuptools, typing-extensions, pydantic>=2.5.0]
24+
args:
25+
[
26+
--ignore-missing-imports,
27+
--warn-unreachable,
28+
--no-implicit-optional,
29+
--show-error-codes,
30+
--plugins=pydantic.mypy,
31+
]
1532

1633
- repo: https://github.com/commitizen-tools/commitizen
1734
rev: v3.5.3

0 commit comments

Comments
 (0)