Commit graph

27 commits

Author SHA1 Message Date
pre-commit-ci[bot]
66c0490d37
[pre-commit.ci] pre-commit autoupdate (#5271)
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 23.12.1 → 24.1.1](https://github.com/psf/black/compare/23.12.1...24.1.1)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-30 12:23:50 +01:00
Noortheen Raja
78091a22f3 style: isort imports
fix #4584
2022-01-31 11:16:51 -05:00
Noorhteen Raja NJ
c2d25ac251
pre-commit hook for pyupgrade (#4583)
* chore: add pyupgrade

* refactor: upgrade code to py3.7+

ran `pre-commit run pyupgrade -a` while excluding changes to ply

* fix: flake errors
2021-12-06 14:42:26 -05:00
Noorhteen Raja NJ
38295a1dd9
Remove globals (#4280)
* 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:
2021-05-20 13:14:26 +03:00
Anthony Scopatz
f048b295d6 black updates to tests and docs 2020-08-26 10:10:59 -05:00
Bob Hyman
53bfe8c99c
Add ptk3 (#3521)
* delete package ptk; rename ptk2 to ptk_shell.; leave ptk2 as alias for ptk_shell.
* SHELL_TYPE "prompt_toolkit" only; remove ptk1 specific behavior.
* Doc updates: eliminate reference to prompt-toolkit < 2.0
* update requirements files ptk>=2; test shell_style="none"
* fix ptk2 stub per code review
* Add ptk2 to list of packages to install.
2020-04-18 10:44:27 -04:00
Anthony Scopatz
b32823d236 replace yield fixtures 2018-11-19 20:22:18 -05:00
Anthony Scopatz
89a42458d9 tests pass! 2018-09-13 16:49:09 -04:00
Anthony Scopatz
4c91df2abc many test fixes 2018-09-13 14:03:35 -04:00
Anthony Scopatz
634a8ec9f2 black tests 2018-08-30 09:18:49 -05:00
Anthony Scopatz
69eb19834a skip ptk <2 tests 2018-07-15 16:37:21 -05:00
Gil Forsyth
6170882151 Update ptk tests for ptk2 2018-07-14 19:00:22 -04:00
laerus
6afca7b754 old yield_fixture 2016-10-16 16:54:46 +03:00
laerus
1b0e39d3b4 heal test_replay 2016-10-16 16:44:55 +03:00
laerus
427945d6d2 heal p2 2016-10-16 14:06:20 +03:00
laerus
bcf32b7a23 heal test_ptk_multiline p1
2 failed 5 passed
2016-10-16 03:03:23 +03:00
Konstantinos Tsakiltzidis
201d068b72 'ptk history/multiline' 2016-06-22 23:17:33 +03:00
Gil Forsyth
2c26fcaa64 update setup and teardown calls. only 1 test failing 2016-06-22 11:41:06 -04:00
Gil Forsyth
381a872481 update multiline tests
only dedent when not on first line of document
2016-03-06 12:16:24 -05:00
Gil Forsyth
8bae9d7dbe update trailing slash test to play nice
I forgot that AppVeyor _is_ on windows
2016-01-22 18:42:53 -05:00
Gil Forsyth
4e06175670 disable multiline for '\' on windows without POSIX
If user is on Windows and has `FORCE_POSIX_PATHS` set to False, then
trailing backslash will not enter multiline mode as this messed up
directory navigation
2016-01-22 17:38:13 -05:00
Gil Forsyth
c1184382e7 add setup and teardown functions to multiline tests 2016-01-12 09:46:50 -05:00
Gil Forsyth
8638d9e3fb remove unneeded imports 2016-01-11 17:51:33 -05:00
Gil Forsyth
88c753c2f0 update test description 2016-01-11 17:50:37 -05:00
Gil Forsyth
36b2bba5f1 add more tests and demangle key_bindings 2016-01-11 17:40:49 -05:00
Gil Forsyth
6bf3320ff1 add tests for most multiline prompt behavior 2016-01-11 17:09:20 -05:00
Gil Forsyth
3280bc6b1b first attempt at testing multiline input behavior 2016-01-11 16:38:25 -05:00