Skip to content

Commit

Permalink
refactor: tidy codes
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Cherng <jfcherng@gmail.com>
  • Loading branch information
jfcherng committed Jan 21, 2025
1 parent de20742 commit ba596e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/update_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ def update_schema(sublime_package_json: JsonDict, pyrightconfig_schema_json: Jso
# Check if there are any properties that might need to be added to the LSP properties.
# If the property is neither in `diagnosticSeverityOverrides`, the root LSP settings nor in ignored keys
# then it might have to be added manually.
all_settings_keys = [key.rpartition(".")[2] for key in settings_properties.keys()]
all_settings_keys = [key.rpartition(".")[2] for key in settings_properties]
all_overrides_keys = settings_properties["basedpyright.analysis.diagnosticSeverityOverrides"]["properties"].keys()
new_schema_keys = []
for pyrightconfig_key in pyrightconfig_properties.keys():
for pyrightconfig_key in pyrightconfig_properties:
if (
pyrightconfig_key not in all_settings_keys
and pyrightconfig_key not in all_overrides_keys
Expand Down

0 comments on commit ba596e3

Please sign in to comment.