Skip to content

Commit ac07ebf

Browse files
vawsgitrstrahan
authored andcommitted
Ruff format adjustments
1 parent 04ec2e3 commit ac07ebf

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

genaiic-idp-accelerator.code-workspace

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,17 @@
99
"lib/idp_common_pkg"
1010
],
1111
"notebook.formatOnSave.enabled": true,
12+
"notebook.codeActionsOnSave": {
13+
"notebook.source.fixAll": "explicit",
14+
"notebook.source.organizeImports": "explicit"
15+
},
1216
"[python]": {
1317
"editor.formatOnSave": true,
14-
"editor.defaultFormatter": "charliermarsh.ruff"
18+
"editor.defaultFormatter": "charliermarsh.ruff",
19+
"editor.codeActionsOnSave": {
20+
"source.fixAll": "explicit",
21+
"source.organizeImports": "explicit"
22+
},
1523
},
1624
"makefile.configureOnOpen": false
1725
},

ruff.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ unfixable = []
6868
# Allow unused variables when underscore-prefixed.
6969
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
7070

71+
[lint.per-file-ignores]
72+
# Let's ignore some annoying rules in notebooks
73+
"notebooks/*" = ["F401"]
74+
7175
[format]
7276
# Like Black, use double quotes for strings.
7377
quote-style = "double"

0 commit comments

Comments
 (0)