mirror of
https://github.com/ankitects/anki.git
synced 2025-12-10 21:36:55 -05:00
Fix undisruptive formatting issues (#1848)
* Skip unparsable pylib files with black This was causing black to return a non-zero code, preventing the subsequent isort from running. * Organise imports on save
This commit is contained in:
parent
fc8b976ca8
commit
890b28c1e8
2 changed files with 4 additions and 1 deletions
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
|
|
@ -1,5 +1,8 @@
|
||||||
{
|
{
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
|
"editor.codeActionsOnSave": {
|
||||||
|
"source.organizeImports": true
|
||||||
|
},
|
||||||
"files.watcherExclude": {
|
"files.watcherExclude": {
|
||||||
"**/.git/objects/**": true,
|
"**/.git/objects/**": true,
|
||||||
"**/.git/subtree-cache/**": true,
|
"**/.git/subtree-cache/**": true,
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ if __name__ == "__main__":
|
||||||
"anki",
|
"anki",
|
||||||
"tests",
|
"tests",
|
||||||
"tools",
|
"tools",
|
||||||
"--exclude=_pb2|buildinfo|_gen",
|
"--exclude=_pb2|buildinfo|_gen|_backend/generated|fluent",
|
||||||
]
|
]
|
||||||
+ args,
|
+ args,
|
||||||
check=False,
|
check=False,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue