* refactor: remove usage of global variables in abbrevs.py
* chore: add flake8-mutable to prevent mutable defaults
* fix: abbrevs expand test
* refactor: add xonsh session singleton
* refactor: fix circular errors when using xonshSession as singleton
* refactor: remove black magicked builtin attributes
* style: black format tests as well
* refactor: update tests to use xonsh-session singleton
* refactor: update abbrevs to not use builtins
* test: remove DummyCommandsCache and patch orig class
* fix: failing test_command_completers
* test: use monkeypatch to update xession fixture
* fix: failing test_pipelines
* fix: failing test_main
* chore: run test suit as single invocation
* test: fix tests/test_xonsh.xsh
* refactor: remove builtins from docs/conf.py
* fix: mypy error in jobs
* fix: test error from test_main
* test: close xession error in test_command_completers
* chore: use pytest-cov for reporting coverage
this will include subprocess calls, and will increase coverage
* style:
- add environment configuration: $XONTRIB_MPL_MINIMAL_DEFAULT
+ defines if the plot will plot will minimize all plots and reduce
margins to nearly nothing
+ if false, the printed plot will attempt meet the same layout as
the figure is meant to contain, but text will look mostly like
single characters unless font size is particularly large compared to
the plot area.
- split the array generation into two functions
+ figure_to_rgb_array now is a simple function that generates a
numpy array of the image representation of the figure.
+ figure_to_tight_array replaces the old figure_to_rgb_array by
taking in a width, height, and minimal boolean.
- this simplifies testing
- this also makes more sense because it copies the figure just when
changes are being applied
- the figure is also closed in this function