Skip to content

Commit

Permalink
Show black diffs
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed Dec 12, 2022
1 parent 6d13d7d commit d337b9a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/autoblack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: If needed, commit black changes to the pull request
if: failure()
run: |
black .
black --diff .
git config --global user.name 'autoblack'
git config --global user.email '[email protected]'
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
Expand Down
4 changes: 1 addition & 3 deletions mathicsscript/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,7 @@ def main(
definitions, style, want_readline, completion, unicode, prompt
)

# FIXME: why does load_settings fail when execute (-e) is set?
if not execute:
load_settings(shell)
load_settings(shell)
if run:
with open(run, "r") as ifile:
feeder = MathicsFileLineFeeder(ifile)
Expand Down
15 changes: 8 additions & 7 deletions mathicsscript/autoload/settings.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,28 @@
"

Settings`$ShowFullFormInput = False

Settings`$PygmentsStyle = "inkpot"
Settings`$PygmentsStyle::usage = "This variable sets the Pygments style used to colorize output. The value should be a string.
The default value changes background depending on whether the terminal has a light or dark background. You can also set the color style used on the command with the ``--style`` option, or look at the variable ```Settings`PygmentsStylesAvailable```. Or it can be set in the settings.m file."

Settings`$PygmentsShowTokens::usage = "Setting this variable True will show Pygments tokenization of the output."

Settings`$PygmentsShowTokens = False
Settings`$PygmentsShowTokens::usage = "Setting this variable True will show Pygments tokenization of the output."

Settings`$UseUnicode::usage = "This Boolean variable sets whether Unicode is used in terminal input and output."
Settings`$UseUnicode = True
Settings`$UseUnicode::usage = "This Boolean variable sets whether Unicode is used in terminal input and output."

Settings`$UseAsymptote::usage = "This Boolean variable sets whether 3D Graphics should render using Asymptote."
Settings`$UseAsymptote = True
Settings`$UseAsymptote::usage = "This Boolean variable sets whether 3D Graphics should render using Asymptote."

Settings`$UseMatplotlib::usage = "This Boolean variable sets whether 2D Graphics should render using Matplotlib."
Settings`$UseMatplotlib = True
Settings`$UseMatplotlib::usage = "This Boolean variable sets whether 2D Graphics should render using Matplotlib."

Settings`MathicsScriptVersion::usage = "This string is the version of MathicsScript we are running."

System`$Notebooks::usage = "Set True if the Mathics is being used with a notebook-based front end."
System`$Notebooks = False
System`$Notebooks::usage = "Set True if the Mathics is being used with a notebook-based front end."

Settings`$GroupAutocomplete::usage = "This Boolean variable sets whether mathicsscript should automatically close braces."
Settings`$GroupAutocomplete = True
Settings`$GroupAutocomplete::usage = "This Boolean variable sets whether mathicsscript should automatically close braces."

0 comments on commit d337b9a

Please sign in to comment.