Commit graph

10825 commits

Author SHA1 Message Date
Gil Forsyth
c059ac23d2 Updated CHANGELOG for 0.19.0 2024-12-09 09:41:03 -05:00
Gil Forsyth
689e8cb314 bumped version to 0.19.0 2024-12-09 09:41:03 -05:00
Gil Forsyth
f55164aad7 Updated authorship for 0.19.0 2024-12-09 09:41:03 -05:00
Evgeny
9d49292453
test: split a test to include Windows (#5665)
* test: split a test to include Windows

(moving non-Win commands like ls to a separate test)

* [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-12-08 20:22:08 +05:30
pre-commit-ci[bot]
5be2fa0a1e
[pre-commit.ci] pre-commit autoupdate (#5712)
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.6.9 → v0.8.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.9...v0.8.1)
- [github.com/pre-commit/mirrors-mypy: v1.11.2 → v1.13.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.11.2...v1.13.0)

* chore: ignore UP031

* chore: ignore mypy error

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Noortheen Raja <jnoortheen@gmail.com>
2024-12-08 14:07:36 +00:00
Gil Forsyth
055321dba7
chore: add 3.13 to release jobs and remove stale dependency (#5735)
chore: add 3.13 to release jobs and remove stale dep

`doctr` isn't used anymore, so we don't need to include it.
2024-12-08 18:13:50 +05:30
Simon Billinge
1d1e7a8827
try just using CaseSenssitiveDict from requests to see if it works (#5744)
* try just using CaseSenssitiveDict from requests to see if it works

* put the dependency back in pyproject.toml and ignore typing on import

* news

* code now passing tests locally.  I still need to write tests for the new Class

* tests for CaseInsensitiveDict
2024-12-08 13:58:31 +05:30
Gil Forsyth
9ae14866de
test: add Python 3.13 to test matrix (#5733) 2024-12-08 13:30:20 +05:30
Bala
0791372f30
Fix DeprecationWarning while initializing Expression (#5739)
* Fix DeprecationWarning while initializing `Expression`

* Add news item

* Rename the news file to the branch name

* Fixing more ast related warnings
2024-12-02 17:31:09 +05:30
Jueun Lee
599f1c0f36
env: add XONSH_SUPPRESS_WELCOME to suppress welcome msg (#5719)
add `XONSH_SUPPRESS_WELCOME` variable to suppress welcome msg

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2024-11-18 18:04:24 -05:00
DoronZ
6fefc3c68d parsers: fix deprecation warnings triggered on python3.13
Close #5710
2024-11-17 08:44:39 -05:00
JamesParrott
58ca7e77b7 Add *args and **kwargs to _parse_known_args, and pass them through to the call to super(). _parse_known_args 2024-11-17 08:38:10 -05:00
Gil Forsyth
f2e4c93785 test(ubuntu,osx): skip pipeline and specs tests on Python 3.12
Some combination of these tests is hanging CI, but so far isn't
reproducible locally.  Need to narrow it down, but this is to unblock
other work.

test(ubuntu): skip all pipeline tests on Ubuntu on Python 3.12

test(specs): skip specs tests instead

test(pipelines): actually skip the pipeline tests

test: skip jobs

test: skip specs

test: only skip specs

test: skip specs and pipelines
2024-11-16 12:59:35 -05:00
Gil Forsyth
0bbaf74309 test(parser): xfail failed brackets test on windows 2024-11-16 12:59:35 -05:00
Gil Forsyth
8a65d4f449 fix(ArgparseCompleter): adjust parsing for upstream private changes
The upstream private API for `_parse_optional` changed, needed to update this.
2024-11-16 12:59:35 -05:00
Gil Forsyth
cd05822f9a Updated CHANGELOG for 0.18.4 2024-11-02 17:46:42 -04:00
Gil Forsyth
7104189f66 bumped version to 0.18.4 2024-11-02 17:46:42 -04:00
Gil Forsyth
7eb7b57853 Updated authorship for 0.18.4 2024-11-02 17:46:42 -04:00
Shawn Wallace
c84420e7b3
Add examples of environment variable interpolation (#5714)
* Add examples of environment variable interpolation

* Update tutorial.rst

* Update tutorial.rst

---------

Co-authored-by: Andy Kipp <anki-code@users.noreply.github.com>
2024-10-31 10:33:45 +01:00
Max Nordlund
2d07ae8698
Update tutorial_macros.rst (#5715)
This removes the false statement that Haskell and other functional programming languages does need nor not have macros.

Lisp is a functional programming language with macros at the core of the language. For Haskell specifically its called [Template Haskell](https://wiki.haskell.org/Template_Haskell).

There's also Erlang which has a token based macro system, something between the C preprocessor and Lisp. Elixir, a newer language in the same ecosystem as Erlang, has full procedural macros. This is similar to the macros in Xonsh; regular functions that take AST nodes as input and return a, potentially different, AST node.
2024-10-30 14:11:04 +01:00
pre-commit-ci[bot]
442e0a4968
[pre-commit.ci] pre-commit autoupdate (#5694)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.6.7 → v0.6.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.7...v0.6.9)
- [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.6.0...v5.0.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-10-07 22:40:38 +02:00
Peter Ye
79b3561c21
Catch SystemExit in ProcProxy (#5698)
* catch SystemExit in ProcProxy

* add test

* add news

* update test

* Update fix-procproxy-sys-exit.rst

---------

Co-authored-by: Andy Kipp <anki-code@users.noreply.github.com>
2024-10-03 22:04:09 +05:30
Peter Ye
4fc7d59c95
Fix quoting issue in virtualenv activator (#5700)
* add test case for directory with spaces

* Stop XonshActivator from quoting strings

* add news

* Update fix-virtualenv-quoting.rst

---------

Co-authored-by: Andy Kipp <anki-code@users.noreply.github.com>
2024-10-03 14:49:05 +02:00
Andy Kipp
31170c2daf
Update README.rst 2024-09-24 13:38:32 +02:00
pre-commit-ci[bot]
b81bb275ac
[pre-commit.ci] pre-commit autoupdate (#5691)
* [pre-commit.ci] pre-commit autoupdate

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

* [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-09-23 20:51:43 +02:00
Andy Kipp
61537db9bd
Create xonsh/api/README.md 2024-09-21 20:23:49 +02:00
Faidon Liambotis
0b9c98c372
Fix typo Crtl+C -> Ctrl+C (#5685)
Fix a few occurences across the tree. Also fix it retroactively in the
CHANGELOG for folks that are going through older changes.
2024-09-17 12:47:59 +02:00
pre-commit-ci[bot]
f3774a5bd6
[pre-commit.ci] pre-commit autoupdate (#5684)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.6.4 → v0.6.5](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.4...v0.6.5)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-09-16 22:54:26 +02:00
Andy Kipp
4bab07dbc8
Update index.html: text fixes 2024-09-16 14:27:48 +02:00
Andy Kipp
b437f19fc3
Update tutorial.rst: fix decorator alias mention 2024-09-16 11:16:23 +02:00
pre-commit-ci[bot]
fabdfc0fdc
[pre-commit.ci] pre-commit autoupdate (#5682)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.6.3 → v0.6.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.3...v0.6.4)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-09-09 20:20:35 +02:00
pre-commit-ci[bot]
0c727f363f
[pre-commit.ci] pre-commit autoupdate (#5680)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.6.2 → v0.6.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.2...v0.6.3)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-09-06 13:38:10 +02:00
pre-commit-ci[bot]
304917a4fb
[pre-commit.ci] pre-commit autoupdate (#5676)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.6.1 → v0.6.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.1...v0.6.2)
- [github.com/pre-commit/mirrors-mypy: v1.11.1 → v1.11.2](https://github.com/pre-commit/mirrors-mypy/compare/v1.11.1...v1.11.2)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-26 23:10:04 +02:00
Gil Forsyth
27ab7f1331 Updated CHANGELOG for 0.18.3 2024-08-20 09:11:18 -04:00
Gil Forsyth
b5f3de218b bumped version to 0.18.3 2024-08-20 09:11:18 -04:00
Gil Forsyth
5208111e58 Updated authorship for 0.18.3 2024-08-20 09:11:18 -04:00
pre-commit-ci[bot]
41751cd82a
[pre-commit.ci] pre-commit autoupdate (#5670)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.5.7 → v0.6.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.7...v0.6.1)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-20 12:10:44 +05:30
Noorhteen Raja NJ
a145065580
Update test.yml (#5666)
* Update test.yml

with ref to https://github.com/xonsh/xonsh/pull/4232/

removing codecov from actions

* [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-08-14 18:28:56 +05:30
pre-commit-ci[bot]
9e5fc88747
[pre-commit.ci] pre-commit autoupdate (#5662)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.5.6 → v0.5.7](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.6...v0.5.7)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-12 20:38:09 +02:00
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