Commit graph

10786 commits

Author SHA1 Message Date
Andy Kipp
938db85a87
Partial fix: Callable alias can provoke Bad file descriptor exception in the internal or external code (#5645)
* fix

* fix

* test

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

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

* news

* test

* test

* test

* test

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

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

* news

* bump test

* bump test

* test

* test

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

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

* news

* test

---------

Co-authored-by: a <1@1.1>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-09 14:46:19 +02:00
Noorhteen Raja NJ
bc8faa4e94
use faster coverage (#5657)
* use faster coverage

* chore: disable branch for faster line coverage on py312+
2024-08-09 15:49:36 +05:30
Andy Kipp
ebb3b9b33d
Update README.rst: more examples 2024-08-08 15:29:18 +02:00
Andy Kipp
a1846d0579
Fix safe readlines: AttributeError: 'NoneType' object has no attribute 'readlines' (#5646)
* fix

* news

* fix

---------

Co-authored-by: a <1@1.1>
2024-08-08 14:26:33 +02:00
Andy Kipp
c0e0687376
docs: Update bash to xonsh guide (#5628)
* update bash to xonsh

* Update bash_to_xsh.rst

* Update bash_to_xsh.rst

* Update docs/bash_to_xsh.rst

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>

* Update docs/bash_to_xsh.rst

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>

---------

Co-authored-by: a <1@1.1>
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
2024-08-07 22:39:00 +02:00
pre-commit-ci[bot]
a185c65d1c
[pre-commit.ci] pre-commit autoupdate (#5643)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.5.5 → v0.5.6](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.5...v0.5.6)
- [github.com/pre-commit/mirrors-mypy: v1.11.0 → v1.11.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.11.0...v1.11.1)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-07 00:24:03 +02:00
Andy Kipp
f917d2ea8c
Update index.html: fix preview image url 2024-08-06 13:24:35 +02:00
Andy Kipp
1c792bc884
MULTILINE_PROMPT: using space without background (#5634)
* Update environ.py

* Update multiline_prompt.rst

* Update multiline_prompt.rst

* chore: configure codcov action

---------

Co-authored-by: Noorhteen Raja NJ <jnoortheen@gmail.com>
2024-08-04 06:39:01 +05:30
Andy Kipp
086476be95
tools: using path in chdir (#5637)
chdir path

Co-authored-by: a <1@1.1>
2024-07-30 16:31:21 +02:00
pre-commit-ci[bot]
d6492b3b9f
[pre-commit.ci] pre-commit autoupdate (#5635)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.5.4 → v0.5.5](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.4...v0.5.5)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-07-29 20:31:24 +02:00
Aidan Courtney
58e2856145
Fix: exception when completing in python-only context (#5632)
* Fix: change xonsh/completer.py:Completer.complete_with_context and xonsh/completer.py:Completer.complete_line to use the python context prefix if available. Add simple regression test: tests/test_completer.py:test_python_only_context

* Add news item

* Fix: misspelled 'command'

* Update fix_python_only_completion.rst

* Update fix_python_only_completion.rst

---------

Co-authored-by: Andy Kipp <anki-code@users.noreply.github.com>
2024-07-27 21:03:35 +05:30
Andy Kipp
32d72af53d
MULTILINE_PROMPT: using space with background (#5624)
* Update environ.py

* news

---------

Co-authored-by: a <1@1.1>
2024-07-25 12:11:12 +02:00
Andy Kipp
680dcf06ff
executables: Added `locate_relative_path functionality to locate_file`. (#5630)
* locate_relative_path

* test

* news

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

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

* test

* test

* support pathext

* test

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

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

* test

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

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

* test

* test

* sep

* prefix

* fix pyghook

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

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

* fix pyghook

* [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>
2024-07-25 12:56:30 +05:30
Andy Kipp
31e7c4204a
Fixed `$AUTO_CD` regress after previous refactoring. (#5629)
* fix autocd

* test

* [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>
2024-07-24 19:00:53 +02:00
Andy Kipp
aed574004d
Update comparison.rst 2024-07-24 15:59:56 +02:00
pre-commit-ci[bot]
ec5f4d8559
[pre-commit.ci] pre-commit autoupdate (#5619)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.5.2 → v0.5.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.2...v0.5.4)
- [github.com/pre-commit/mirrors-mypy: v1.10.1 → v1.11.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.10.1...v1.11.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-07-22 21:35:54 +02:00
Andy Kipp
3f295ee9bc
Micro cleaning executables.py (#5616)
Update executables.py
2024-07-22 11:25:44 +02:00
Gil Forsyth
32a085543a
docs: fix up broken apidocs links (#5609)
docs: fix up api doc paths
2024-07-20 14:32:43 -04:00
Gil Forsyth
5d1f769e88 Updated CHANGELOG for 0.18.2 2024-07-18 09:23:44 -04:00
Gil Forsyth
bbd5e3c263 bumped version to 0.18.2 2024-07-18 09:23:44 -04:00
Gil Forsyth
0d622fdb8b Updated authorship for 0.18.2 2024-07-18 09:23:44 -04:00
Andy Kipp
168299f23f
Update README.rst: projects reorder 2024-07-18 13:28:02 +02:00
Andy Kipp
968c90e7dc
Update README.rst: projects 2024-07-18 13:26:59 +02:00
Andy Kipp
2414ec167a
fix locate_file (#5606)
* fix

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

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

* fix

---------

Co-authored-by: a <1@1.1>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-07-18 10:53:00 +02:00
Gil Forsyth
dd656ab7fa Updated CHANGELOG for 0.18.1 2024-07-17 10:43:37 -04:00
Gil Forsyth
e4eba5bca9 bumped version to 0.18.1 2024-07-17 10:43:37 -04:00
Gil Forsyth
48e0d1887b Updated authorship for 0.18.1 2024-07-17 10:43:37 -04:00
Gil Forsyth
8eb1fd622d
chore(metadata): swap in shorter email address (#5604) 2024-07-17 10:43:08 -04:00
Gil Forsyth
75943cc7c3 Updated CHANGELOG for 0.18.0 2024-07-17 10:23:17 -04:00
Gil Forsyth
367c89fa3e bumped version to 0.18.0 2024-07-17 10:23:17 -04:00
Gil Forsyth
dcfdee9ff0 Updated authorship for 0.18.0 2024-07-17 10:23:17 -04:00
Gil Forsyth
04dc20c967
chore(release): update token permissions in pypi publish job (#5602) 2024-07-17 09:47:22 -04:00
Andy Kipp
01f0f6cd5f
env: added XONSH_MODE (#5581)
* added XONSH_MODE

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

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

* Update xonsh/environ.py

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>

---------

Co-authored-by: a <1@1.1>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2024-07-16 12:06:37 -04:00
Andy Kipp
6b126ddd80
fix locate_file (#5600)
* fix

* [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>
2024-07-16 13:16:16 +02:00
pre-commit-ci[bot]
5ccba55738
[pre-commit.ci] pre-commit autoupdate (#5599)
* [pre-commit.ci] pre-commit autoupdate

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

* Update tools.py

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Andy Kipp <anki-code@users.noreply.github.com>
2024-07-15 21:56:21 +02:00
Andy Kipp
5e1c2db4f3
Update news/spec_modifier_multiple.rst 2024-07-15 16:29:54 +02:00
Andy Kipp
38d3bfb41e
Update news/spec_modifier_multiple.rst 2024-07-15 16:29:30 +02:00
Andy Kipp
233e407b52
spec modifier: rename to decorator alias (#5579)
* rename

* rename

* rename

* rename

* rename

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

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

* rename

* rename

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

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

* rename

* rename

* rename

* rename

* rename

* rename

* rename

* rename

* rename

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

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

* fix

* fix

---------

Co-authored-by: a <1@1.1>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-07-14 22:00:24 +02:00
Andy Kipp
96c2c0af14
tutorial: added example for callable environment variable (#5585)
* doc

* doc

---------

Co-authored-by: a <1@1.1>
2024-07-14 21:04:24 +02:00
Andy Kipp
77f42b2f85
builtin: `exit can return exit code e.g. exit 71` (#5594)
* exit

* news

* switch bool to int

* event

* tests

* tests

* tests

* tests

* bump tests

* tests

* tests

* support unknown arg in exit

* docstring

---------

Co-authored-by: a <1@1.1>
2024-07-14 16:13:06 +02:00
Andy Kipp
6aa5df9438
Micro update environ.py 2024-07-14 14:02:02 +02:00
Andy Kipp
38e9397f38
aliases: fix expand_alias (#5598)
* fix

* [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>
2024-07-13 14:55:46 +02:00
a
03499cb263 Merge remote-tracking branch 'origin/main' 2024-07-12 14:00:21 +02:00
a
ab779f1887 docs: example 2024-07-12 14:00:10 +02:00
Andy Kipp
bdfa67c637
refactoring: moving tokenize to parsers (#5596)
* moving tokenize to parsers

* moving tokenize to parsers

* [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>
2024-07-12 11:11:52 +02:00
Andy Kipp
d08248f6aa
builtin: added `__xonsh__.imp` to have an ability to import and use modules immediately in one line (#5595)
* imp

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

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

* imp

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

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

* imp

* [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>
2024-07-12 02:21:21 +02:00
Andy Kipp
87032f6d30
Alias that returns modified command (#5473)
* Command Alias

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

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

* tests

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

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

* tests

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

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

* news

* docs

* tests

* docs

* wip

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

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

* tests

* tests

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

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

* tests

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

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

* tests

* tests

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

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

* tests

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

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

* tests

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

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

* tests

* tests

* clean

* news

* news

* bumptests

* bumptests

* new api

* tests

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

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

* doooocs

* comments

* comments

* comments

* aliases.CUT_ARGS

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

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

* aliases.CUT_ARGS

* aliases.CUT_ARGS

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

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

* aliases.CUT_ARGS

* aliases.CUT_ARGS

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

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

* aliases.CUT_ARGS

* comments

* bump test

* remove CUT_ARGS

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

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

* test

* test

* wip

* revert

* wip

* wip

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

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

* wip

* docs

* news

* tests

* tests

* test

* test

* test

* Update docs/tutorial.rst

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>

* Update xonsh/aliases.py

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>

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

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

* fix, thanks jaraco!

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

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

* more comments

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

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

* cleaning

---------

Co-authored-by: a <1@1.1>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
2024-07-12 01:35:20 +02:00
Andy Kipp
24fcbb4638
fix link 2024-07-12 00:39:28 +02:00
Andy Kipp
bea8e3a300
Added lix to projects 2024-07-12 00:39:04 +02:00
Andy Kipp
645c335fc6
builtins: add color to printx (#5588)
* color

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

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

* Update xonsh/tools.py

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>

---------

Co-authored-by: a <1@1.1>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
2024-07-11 13:29:35 +02:00