Skip to content

Commit f1eb3a7

Browse files
committed
chore: Add tools configs
1 parent 7f418ec commit f1eb3a7

File tree

2 files changed

+76
-11
lines changed

2 files changed

+76
-11
lines changed

biome.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.3.3/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
8+
"files": {
9+
"ignoreUnknown": false
10+
},
11+
"formatter": {
12+
"enabled": true,
13+
"indentStyle": "space",
14+
"lineWidth": 88
15+
},
16+
"linter": {
17+
"enabled": true,
18+
"rules": {
19+
"recommended": true
20+
}
21+
},
22+
"javascript": {
23+
"formatter": {
24+
"quoteStyle": "double",
25+
"semicolons": "always"
26+
}
27+
},
28+
"assist": {
29+
"enabled": true,
30+
"actions": {
31+
"source": {
32+
"organizeImports": "on"
33+
}
34+
}
35+
}
36+
}

pyproject.toml

Lines changed: 40 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,46 @@ requires = ["poetry>=0.12"]
2626
build-backend = "poetry.masonry.api"
2727

2828
[tool.ruff]
29-
# Enable flake8-bugbear (`B`) rules.
29+
target-version = "py38"
30+
31+
[tool.ruff.lint]
32+
mccabe.max-complexity = 16
33+
isort.split-on-trailing-comma = false
34+
ignore = ["E501", "E251", "E266", "E401", "DJ001", "W291"]
3035
select = [
31-
"E", # pycodestyle
32-
"F", # pyflakes
33-
"I", # isort
34-
"UP", # pyupgrade
35-
"DJ", # flake8-django
36-
"B" # flake8-bugbear
36+
"B",
37+
"E",
38+
"F",
39+
"I",
40+
"N",
41+
"W",
42+
"C9",
43+
"DJ",
44+
"UP",
45+
"SIM101",
46+
"SIM102",
47+
"SIM103",
48+
"SIM108",
49+
"SIM109",
50+
"SIM113",
51+
"SIM114",
52+
"SIM201",
53+
"SIM202",
54+
"SIM208",
55+
"SIM210",
56+
"SIM211",
57+
"SIM212",
58+
"SIM220",
59+
"SIM221",
60+
"SIM910",
61+
"SIM911",
3762
]
3863

39-
ignore = [
40-
"E401",
41-
"E501",
42-
]
64+
[tool.ruff.format]
65+
skip-magic-trailing-comma = true
66+
67+
[tool.mypy]
68+
ignore_missing_imports = true
69+
install_types = true
70+
non_interactive = true
71+
disable_error_code = ["annotation-unchecked"]

0 commit comments

Comments
 (0)