Skip to content

Commit

Permalink
Merge branch 'spyder-ide:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
athompson673 authored Nov 21, 2024
2 parents 8b19db9 + f384133 commit 0dd876e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .github/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ if [ "$USE_CONDA" = "true" ]; then
# Remove pylsp before installing its subrepo below
micromamba remove --force python-lsp-server python-lsp-server-base -y

# Pin Jedi to 0.19.1 because test_update_outline fails frequently with
# 0.19.2, although it passes locally
if [ "$OS" = "linux" ]; then
micromamba install jedi=0.19.1
fi

else
# Update pip and setuptools
python -m pip install -U pip setuptools wheel build
Expand All @@ -58,6 +64,11 @@ else
# To check our manifest
pip install -q check-manifest

# Pin Jedi to 0.19.1 because test_update_outline fails frequently with
# 0.19.2, although it passes locally
if [ "$OS" = "linux" ]; then
pip install jedi==0.19.1
fi

fi

Expand Down
2 changes: 1 addition & 1 deletion spyder/app/tests/test_mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -4750,7 +4750,7 @@ def test_tour_message(main_window, qtbot):
qtbot.wait(2000)


@flaky(max_runs=3)
@flaky(max_runs=20)
@pytest.mark.use_introspection
@pytest.mark.order(after="test_debug_unsaved_function")
@pytest.mark.preload_complex_project
Expand Down
14 changes: 13 additions & 1 deletion spyder/plugins/appearance/confpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

"""Appearance entry in Preferences."""

import configparser
import sys

import qstylizer.style
Expand Down Expand Up @@ -279,8 +280,19 @@ def setup_page(self):
for name in names:
self.scheme_editor_dialog.add_color_scheme_stack(name)

valid_custom_names = []
for name in custom_names:
self.scheme_editor_dialog.add_color_scheme_stack(name, custom=True)
try:
self.scheme_editor_dialog.add_color_scheme_stack(
name, custom=True
)
valid_custom_names.append(name)
except configparser.NoOptionError:
# Ignore invalid custom syntax highlighting themes
# See spyder-ide/spyder#22492
pass

self.set_option("custom_names", valid_custom_names)

if sys.platform == 'darwin':
system_font_checkbox.checkbox.setEnabled(False)
Expand Down

0 comments on commit 0dd876e

Please sign in to comment.