Commit graph

10703 commits

Author SHA1 Message Date
Gil Forsyth
16c91b71cc Updated CHANGELOG for 0.14.1 2023-08-16 03:01:35 -04:00
Gil Forsyth
940a1a7c62 bumped version to 0.14.1 2023-08-16 03:01:28 -04:00
Gil Forsyth
ce91db5838 Updated authorship for 0.14.1 2023-08-16 03:01:16 -04:00
HackTheOxidation
44b661dcc0
Add history delete #4929 (#5172)
* Add `history delete` #4929

* Add news and satisfy linter.

* Added `history delete` for sqlite backend

* Format with black.

* Use REGEXP instead of LIKE for sqlite backend.

* History delete: iterate over entries for sqlite backend.

* Use '='-operator instead of LIKE.
2023-08-14 22:42:26 +05:30
pre-commit-ci[bot]
b74d33abed
[pre-commit.ci] pre-commit autoupdate (#5186)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.0.280 → v0.0.281](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.280...v0.0.281)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-08-02 00:21:06 +06:00
pre-commit-ci[bot]
7bd8f5da9f
[pre-commit.ci] pre-commit autoupdate (#5180)
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.0.278 → v0.0.280](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.278...v0.0.280)

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

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

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

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

* fix: ruff linter errors

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Noorhteen Raja NJ <jnoortheen@gmail.com>
2023-07-27 13:17:51 +05:30
Cosine Chen
0e229fcc8c
Always load rc files except --no-rc is passed (#5099) 2023-07-26 22:44:55 +00:00
pre-commit-ci[bot]
f84593291b
[pre-commit.ci] pre-commit autoupdate (#5177)
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 23.3.0 → 23.7.0](https://github.com/psf/black/compare/23.3.0...23.7.0)
- [github.com/astral-sh/ruff-pre-commit: v0.0.277 → v0.0.278](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.277...v0.0.278)

* [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>
2023-07-19 00:28:47 +05:30
Ivan Ogasawara
de74576464
fix: Fix wrong verification for the simple output, introduced by PR5072 (#5174)
* fix: Fix wrong verification for the simple output, introduced by PR5072

* add a news
2023-07-16 21:30:12 +05:30
pre-commit-ci[bot]
7219663159
[pre-commit.ci] pre-commit autoupdate (#5171)
updates:
- https://github.com/charliermarsh/ruff-pre-commithttps://github.com/astral-sh/ruff-pre-commit
- [github.com/astral-sh/ruff-pre-commit: v0.0.276 → v0.0.277](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.276...v0.0.277)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-07-12 01:10:01 +06:00
pre-commit-ci[bot]
8b0dd5cae7
[pre-commit.ci] pre-commit autoupdate (#5170)
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.275 → v0.0.276](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.275...v0.0.276)

* [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>
2023-07-04 22:21:50 +05:30
Noorhteen Raja NJ
769dfbe6aa
Py 312 pre-liminary support (#5156)
* refactor: project requires 3.9+

changed as per NEP-29
https://numpy.org/neps/nep-0029-deprecation_policy.html

* test: nose type tests are deprecated in pytest now

* fix: deprecation of ast.Str and ast.Bytes and .s attribute access

* fix: deprecation of ast.Num,ast.NameConstant,ast.Ellipsis

* refactor: upgrade code to be py39+ using ruff

the changes are auto-generated

* refactor: remove typing.Annotated compatibility code

* fix: temporarily disable having xonsh syntax inside f-strings

* test: skip failing tests

there is no workaround for this version. It might get solved in the
final release though

* refactor: make XonshSession.completer lazily populated

this speedsup the tests as cmd_cache would not be actively populated
when used in default_completers function

* refactor: make presence of walrus operator default
2023-07-04 22:18:37 +05:30
Andy Kipp
041bfb2d29
Become a sponsor to xonsh (#5167) 2023-07-01 13:15:06 +00:00
pre-commit-ci[bot]
76d2174986
[pre-commit.ci] pre-commit autoupdate (#5161)
updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.272 → v0.0.275](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.272...v0.0.275)
- [github.com/pre-commit/mirrors-mypy: v1.3.0 → v1.4.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.3.0...v1.4.1)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-06-30 10:05:23 +05:30
Evgeny
f303f0f395
Unset the default Semantic Prompt line continuation environment variables (#5160)
* unset default multiline prompt pre/pos env vars

Allows xontribs to differentiate between an explicit user setting of an empty prefix vs. an unset value

* doc: add News item
2023-06-30 09:57:29 +05:30
doronz88
2ff39e8e04
platform: fix BASH_COMPLETIONS_DEFAULT on M1 (#5165) 2023-06-29 20:53:13 +06:00
Noorhteen Raja NJ
52e2b5dd56
Codespaces and devcontainer.json (#5158)
* chore: add devcontainer.json

* chore: setup pre-commit and black

* chore: using 3.10 version as to support pre-commit plugins
2023-06-21 22:23:46 +05:30
pre-commit-ci[bot]
d3a04c68ff
[pre-commit.ci] pre-commit autoupdate (#5154)
updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.270 → v0.0.272](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.270...v0.0.272)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-06-14 19:59:35 +05:30
Andy Kipp
ef652db0f2
Example for XONSH_HISTORY_IGNORE_REGEX (#5140)
Update environ.py
2023-06-07 10:09:52 +05:30
pre-commit-ci[bot]
6d58fb5bf7
[pre-commit.ci] pre-commit autoupdate (#5148)
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.269 → v0.0.270](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.269...v0.0.270)

* [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>
2023-05-30 17:10:53 +06:00
pre-commit-ci[bot]
511e891d30
[pre-commit.ci] pre-commit autoupdate (#5144)
updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.267 → v0.0.269](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.267...v0.0.269)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-05-23 13:12:47 +06:00
Andy Kipp
b788f1d88a
Update repository image (#5143)
Update image
2023-05-19 23:15:06 +06:00
Andy Kipp
aaac9f14d0
Add files via upload 2023-05-19 23:01:11 +06:00
Gil Forsyth
0fb889a7cf Updated CHANGELOG for 0.14.0 2023-05-19 09:30:52 -04:00
Gil Forsyth
af22501d47 bumped version to 0.14.0 2023-05-19 09:30:38 -04:00
Gil Forsyth
4f505ad96e Updated authorship for 0.14.0 2023-05-19 09:30:29 -04:00
pre-commit-ci[bot]
7ec9544d7c
[pre-commit.ci] pre-commit autoupdate (#5139)
updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.265 → v0.0.267](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.265...v0.0.267)
- [github.com/pre-commit/mirrors-mypy: v1.2.0 → v1.3.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.2.0...v1.3.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-05-16 22:17:18 +06:00
Andy Kipp
e1a93cef19
New prompt end character (#5063)
Co-authored-by: a <1@1.1>
2023-05-16 13:36:50 +00:00
pre-commit-ci[bot]
ae6b34ba2f
[pre-commit.ci] pre-commit autoupdate (#5130)
updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.262 → v0.0.265](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.262...v0.0.265)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-05-09 15:09:48 +06:00
pre-commit-ci[bot]
a787ee10d7
[pre-commit.ci] pre-commit autoupdate (#5126)
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.261 → v0.0.262](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.261...v0.0.262)

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

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

* [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>
2023-05-01 13:48:20 +05:30
Noorhteen Raja NJ
479413b5d0
Ruff linter (#5118) 2023-04-19 12:59:32 +00:00
pre-commit-ci[bot]
4240802420
[pre-commit.ci] pre-commit autoupdate (#5115)
updates:
- [github.com/pre-commit/mirrors-mypy: v1.1.1 → v1.2.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.1.1...v1.2.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-04-12 19:32:16 +06:00
pre-commit-ci[bot]
4898a4816b
[pre-commit.ci] pre-commit autoupdate (#5111)
updates:
- [github.com/psf/black: 23.1.0 → 23.3.0](https://github.com/psf/black/compare/23.1.0...23.3.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-04-04 20:53:59 +06:00
kouhe3
12ab76e535
README remove #xonsh:feneas.org (#5103) 2023-03-23 19:25:07 +06:00
Evgeny
572331700b
fix: load autoloading (but not yet autoloaded) xontribs (#5096)
* fix: load autoloading (but not yet autoloaded) xontribs

Xontrib template creates autoloaded xontribs in a `xontrib_X` folder instad of a `xontib/X.py`file, so you can't 'xontrib load X' right after you install them, which breaks pytests

* [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>
2023-03-17 18:57:03 +05:30
Andy Kipp
a19d6ce9f6
Micro update README: contribution (#5095)
Update README.rst
2023-03-17 17:41:28 +06:00
Andy Kipp
4819005ce0
cleaning (#5094) 2023-03-17 13:25:38 +05:30
Andy Kipp
042487745a
Moving old xontribs to repositories (#5055)
* Update and rename README to README.rst

* Create hello_world.py

* Update README.rst

* init

* remove bashisms

* Transfer abbrevs to xontrib-abbrevs

* Transfer free-cwd to xontrib-free-cwd

* news

* black

* Transfer fish-completer to xonsh/xontrib-fish-completer

* Transfer vox to xonsh/xontrib-vox

* Transfer pdb, xog to xonsh/xontrib-debug-tools

* remove hello_world

* fix tests

* black

* fix whitespaces

* fix readme

* Update python_virtual_environments.rst

* Update README.rst

* Update xontribs_transfer.rst

---------

Co-authored-by: a <1@1.1>
2023-03-17 13:25:22 +06:00
Andy Kipp
868fff93c9
Add mention of jupyter (#5093)
Promote xonsh for jupyter
2023-03-17 11:52:48 +05:30
pre-commit-ci[bot]
a41a78bbb1
[pre-commit.ci] pre-commit autoupdate (#5088)
updates:
- [github.com/pre-commit/mirrors-mypy: v1.0.1 → v1.1.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.0.1...v1.1.1)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-03-17 04:44:47 +06:00
Andy Kipp
b9aa902102
Added repology.org badge (#5089)
Update README.rst
2023-03-16 19:15:26 +06:00
Ivan Ogasawara
2a63f1f875
Improve error message for RAISE_SUBPROC_ERROR=True (#5072)
* Improve error message for RAISE_SUBPROC_ERROR=True

* Fix tests

* Add colors to the short output

* Move the colored code to a function

* Fix output
2023-03-05 07:49:42 +05:30
Noorhteen Raja NJ
b2ada58c0c
docs: optimize webconfig icon (#5081) 2023-03-04 20:23:53 +06:00
Andy Kipp
54962fb4b9
Mini fix chdir (#5080)
* Update tools.py

* [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>
2023-03-04 09:02:55 +05:30
Andy Kipp
4c5c88a72f
Update index.html (#5078)
* Update index.html

* Create xonsh_landing.rst

* remove the quarter msg

---------

Co-authored-by: Noorhteen Raja NJ <jnoortheen@gmail.com>
2023-03-03 00:15:36 +06:00
Andy Kipp
71ac21f241
Fix missing webconfig/js/xonsh_sticker.svg (#5077)
* Update pyproject.toml

* Create fix_missing_icon.rst
2023-03-02 15:01:50 +05:30
Thomas Hess
cb95f0e487
Add support for Fossil SCM branch names in vc.py. (#5046)
Add support for Fossil VCS in vc.py.

The prompt now shows the currently active Fossil branch, while inside a Fossil checkout.
2023-03-02 12:35:22 +05:30
Andy Kipp
237e231e7f
Moving chdir to xonsh.tools (#5073)
* chdir

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

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

---------

Co-authored-by: a <1@1.1>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-03-02 12:31:08 +05:30
Andy Kipp
ec378090ce
Using repr(cmd) for command not found (#5075)
repr cmd

Co-authored-by: a <1@1.1>
2023-03-02 11:13:36 +05:30
Ivan Ogasawara
0c713a0c31
fix: Suppress subprocess traceback in case XONSH_SHOW_TRACEBACK=False and $RAISE_SUBPROC_ERROR=True (#5066)
* fix: Add and extra condition for print traceback from subprocess

* add news

* Apply pre-commit hooks

* Fix initial implementation using sys.exit

* Update pr-5066.rst

* Remove sys.exit

---------

Co-authored-by: Andy Kipp <anki-code@users.noreply.github.com>
2023-02-28 00:37:45 +05:30