Skip to content

Commit 10f0695

Browse files
authored
Add VSCode settings and update Ruff configuration (#33)
1 parent 876e910 commit 10f0695

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.vscode/settings.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"editor.defaultFormatter": "charliermarsh.ruff",
3+
"python.testing.pytestArgs": ["tests"],
4+
"python.testing.unittestEnabled": false,
5+
"python.testing.pytestEnabled": true,
6+
"editor.rulers": [88],
7+
"[python]": {
8+
"editor.formatOnSave": true,
9+
"editor.codeActionsOnSave": {
10+
"source.fixAll": "explicit",
11+
"source.organizeImports": "explicit"
12+
},
13+
"editor.defaultFormatter": "charliermarsh.ruff"
14+
}
15+
}

ruff.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
line-length = 120
1+
line-length = 88
22

33
[format]
44
docstring-code-format = true
@@ -7,6 +7,8 @@ quote-style = "double"
77
indent-style = "space"
88

99
[lint]
10+
select = ["ALL"]
11+
ignore = ["TRY003", "COM812", "N818"]
1012

1113
[lint.per-file-ignores]
1214
"**/scripts/*" = [

0 commit comments

Comments
 (0)