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:
RumovZ 2022-05-09 12:00:20 +02:00 committed by GitHub
parent fc8b976ca8
commit 890b28c1e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,8 @@
{
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true
},
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,

View file

@ -39,7 +39,7 @@ if __name__ == "__main__":
"anki",
"tests",
"tools",
"--exclude=_pb2|buildinfo|_gen",
"--exclude=_pb2|buildinfo|_gen|_backend/generated|fluent",
]
+ args,
check=False,