Commit graph

23 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
Gil Forsyth
df8952d99e fix(sqlite): skip sqlite history tests on windows with python 3.11
I've tried several workarounds and this isn't important enough to keep
spending time on.
2023-01-17 13:27:17 -05: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
Andy Kipp
09b31bec10
feat: Add saving current working directory (cwd) to the history (#4271)
* Add saving current working directory (cwd) to the history

* Added XONSH_HISTORY_SAVE_CWD and create PromptHistorySetting section

* news

* Move dummy history to the distinct file

* tests

* tests

Co-authored-by: a <a@a.a>
2021-05-11 15:23:57 -04:00
Aneesh Durg
1f7f33c93f
Add $HISTCONTROL=ignorespace support (#4062)
* Add $HISTCONTROL=ignorespace support

* Add news and fix formatting

* Move ignore space to happend in append and fix test bugs

* invert conditional

* remove leftover debug info
2021-01-25 16:37:29 -05:00
Eadaen1
3933b74278 Improve comments in tests 2020-09-20 19:28:54 +01:00
Eadaen1
d7141856ae add docs, bugfixes, misc changes 2020-09-17 14:22:41 +01:00
Eadaen1
5e0228aa09 Tests succeeded. 2020-09-17 01:25:56 +01:00
Eadaen1
2ada0badbb Add tests, other misc changes. 2020-09-17 00:26:19 +01:00
Noortheen Raja
0851866ebf feat: add HISTCONTROL(erasedups) support to sqlite backend
fixes part of !3478
2020-03-19 12:58:31 +05:30
Anthony Scopatz
b32823d236 replace yield fixtures 2018-11-19 20:22:18 -05: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
Hugo Wang
f216aa8bed adding tests back 2017-02-05 22:55:04 +08:00
laerus
487366592d history indexing replaced namedtuple with SimpleNamespace 2017-01-29 15:22:46 +02:00
laerus
a76f312d89 changed history indexing api 2017-01-26 18:24:33 +02:00
Hugo Wang
7053d3ac7e updated test cases 2016-12-04 23:24:56 +08:00
Hugo Wang
0c5cede886 bug fix on sqlite history rtns 2016-12-04 22:54:45 +08:00
Hugo Wang
b3c2609974 rename stuff & doc strings 2016-12-01 22:14:22 +08:00
Hugo Wang
1ce4552d0d align sqlite history backend with public attrs 2016-11-30 22:49:13 +08:00
Hugo Wang
04d2044c29 added tests for history sqlite 2016-11-27 22:57:42 +08:00