Noortheen Raja
667efceb72
refactor!: remove confusing hook_post_add_argument
...
current usecase can be solved with custom Action
2024-04-20 23:44:26 +05:30
Noortheen Raja
c02262f7b6
chore: ignore more pdm files
2024-04-20 23:44:26 +05:30
Noortheen Raja
a44c20d805
feat: update setting default sub-command for argparser
...
also remove lambda based default help command
2024-04-20 23:44:26 +05:30
Andy Kipp
8ff5079dca
Update environ.py: doc microfix ( #5346 )
...
Update environ.py
2024-04-19 22:39:33 +05:30
Andy Kipp
2419eaa952
Fix jobs.py: list index out of range ( #5340 )
...
* Update jobs.py
* Create fix-jobs-index.rst
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update fix-jobs-index.rst
* Update test_virtualenv_activator.py
* Update test_virtualenv_activator.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update test_virtualenv_activator.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* test: update venv activator test
* chore: update test xonsh
---------
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>
2024-04-19 10:33:30 +02:00
Gil Forsyth
fde07cda5f
refactor(aliases): source foreign shell funcs without interactive mode ( #5344 )
...
Co-authored-by: Noortheen Raja <jnoortheen@gmail.com>
2024-04-18 19:51:39 +05:30
Noorhteen Raja NJ
97b6e1ba96
docs: link to dev guide and emphasis on solving issues ( #5341 )
2024-04-17 17:34:57 +05:30
Andy Kipp
6c94d4ad6c
Builtin aliases (xontrib, history) switched to threadable mode ( #5321 )
...
* Create xonfig_xontrib_threadable.rst
* xonfig and xontrib threadable
* xonfig and xontrib threadable
* xonfig and xontrib threadable
* Update builtin_aliases_threadable.rst
* Update xonfig.py
---------
Co-authored-by: a <1@1.1>
2024-04-16 13:27:55 -04:00
Noortheen Raja
aa857e8260
refactor: update line length to default setting
...
and ruff-format
2024-04-16 11:23:35 -04:00
Noortheen Raja
b3d58e6ff2
chore: remove unused flake8 config
2024-04-16 11:23:35 -04:00
Noortheen Raja
2a6e5e15f8
docs: update contribution guide
2024-04-16 11:23:35 -04:00
Noortheen Raja
52ead9336d
refactor: replace black with ruff-format
2024-04-16 11:23:35 -04:00
Noortheen Raja
912c7d395c
refactor!: remove deprecated module xonsh.proc
2024-04-16 11:23:35 -04:00
Noortheen Raja
d0509dd63c
chore: ignore testmon data
2024-04-16 11:23:35 -04:00
Andy Kipp
db83a3f353
Bump xonsh.AppImage to python 3.12 ( #5338 )
...
* Update rever.xsh
* Create appimage-py312.rst
* Update appimage-py312.rst
2024-04-16 11:37:20 +02:00
dependabot[bot]
bca24970d9
Bump peaceiris/actions-gh-pages from 3 to 4 ( #5334 )
...
Bumps [peaceiris/actions-gh-pages](https://github.com/peaceiris/actions-gh-pages ) from 3 to 4.
- [Release notes](https://github.com/peaceiris/actions-gh-pages/releases )
- [Changelog](https://github.com/peaceiris/actions-gh-pages/blob/main/CHANGELOG.md )
- [Commits](https://github.com/peaceiris/actions-gh-pages/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: peaceiris/actions-gh-pages
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-15 11:21:34 +02:00
Peter Ye
a7688f647d
fix: do not attempt to color traceback for error in xonshrc file ( #5331 )
...
do not color traceback unless shell has been loaded
2024-04-11 08:22:08 +05:30
l-no
a028c72deb
fix: Error in completions with absolute paths ( #5127 ) ( #5328 )
...
fix: Error in completions with absolute paths
fixes #5127 , an error in fetching command completions when
UPDATE_COMPLETIONS_ON_KEYPRESS is enabled and the command is specified
by absolute path.
2024-04-10 11:18:46 +05:30
Peter Ye
5a525e3789
feat: allow square brackets in command arguments ( #5326 )
...
Allow square brackets in command arguments
2024-04-09 22:33:43 +05:30
Peter Ye
0813e527c8
Flatten redirects before passing command to job control ( #5327 )
2024-04-09 22:29:45 +05:30
pre-commit-ci[bot]
15fdc95aca
[pre-commit.ci] pre-commit autoupdate ( #5325 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.3.4 → v0.3.5](https://github.com/astral-sh/ruff-pre-commit/compare/v0.3.4...v0.3.5 )
- [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v4.6.0 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-04-09 18:06:01 +05:30
Peter Ye
08ac0d9759
Fix parsing of redirect tokens ( #5322 )
...
* Fix parsing of redirect tokens
In the parser, wrap redirect tokens such as ">", "a>", and "2>1" in a
tuple (along with the name of the redirect file, if applicable) to
differentiate them from regular command line arguments.
This ensures that a command like ![echo ">"] is parsed correctly.
We now need 2 types of IO-redirect tokens (IOREDIRECT1 and IOREDIRECT2)
so that the parser knows whether or not an IO-redirect has a file
argument. For example, "a>" has type IOREDIRECT1, whereas "2>1" has
type IOREDIRECT2.
* update ioredir tests
* add tests
* add news
* fix multiple redirections error message
2024-04-05 13:21:54 +05:30
Peter Ye
7461c507b2
Fix incorrect IOREDIRECT tokens in Python mode ( #5013 )
...
* add tests
* Fix incorrect IOREDIRECT tokens in Python mode
* add news
* Update lexer used in CompletionContextParser
The completion context lexer should start in subprocess mode so that
operators like ``2>`` are recognized as IOREDIRECT tokens.
This fixes the test case "command 2>/dev/nul{X}" for
test_completion_context.py::test_command.
2024-04-04 16:04:53 +05:30
pre-commit-ci[bot]
04cba39a53
[pre-commit.ci] pre-commit autoupdate ( #5314 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.3.3 → v0.3.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.3.3...v0.3.4 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-03-25 20:28:00 +01:00
Noortheen Raja
6c68541706
feat: start xonfig web from any directory
2024-03-19 16:33:12 +05:30
Noortheen Raja
80940e8b1c
fix: failing tests on extra space
...
web-config
2024-03-19 16:33:12 +05:30
Noortheen Raja
c930c9f234
fix: web config overwrite existing value
...
fixes #5297
2024-03-19 16:33:12 +05:30
Noortheen Raja
ce215bb8fe
docs: add news item
2024-03-19 16:33:12 +05:30
Noortheen Raja
3574acfa51
test: add tests for webconfig post methods
2024-03-19 16:33:12 +05:30
Noortheen Raja
dd4d6f5c26
refactor: remove usage of cgi
...
fixes #5280
2024-03-19 16:33:12 +05:30
pre-commit-ci[bot]
bad29ccd0d
[pre-commit.ci] pre-commit autoupdate ( #5305 )
...
updates:
- [github.com/psf/black: 24.2.0 → 24.3.0](https://github.com/psf/black/compare/24.2.0...24.3.0 )
- [github.com/astral-sh/ruff-pre-commit: v0.3.2 → v0.3.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.3.2...v0.3.3 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-03-18 23:38:07 +05:30
pre-commit-ci[bot]
ac60d3423f
[pre-commit.ci] pre-commit autoupdate ( #5302 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.2.2 → v0.3.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.2.2...v0.3.2 )
- [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.9.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.8.0...v1.9.0 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-03-12 21:53:22 +01:00
Andy Kipp
5fd9a25d09
Fix dircolors NotADirectoryError ( #5300 )
...
* Update environ.py
* Create fix_dircolors_NotADirectoryError.rst
2024-03-11 16:53:50 -04:00
Gil Forsyth
f5ae75268a
feat(bashpath): add env-var to allow overriding path to bash ( #5295 )
...
I've run into issues with bash completion failing when using `nix` to
handle environments.
The nix environment often installs its own `bash` which doesn't respect
the `BASH_COMPLETIONS` env-var.
This allows an (off-by-default) option to override what is returned by
`xonsh.platform.bash_command`.
The removal of the `lru_cache` should be negligible since
`windows_bash_command` has its own `lru_cache` and the other options are
doing an env lookup or returning a string.
2024-03-08 17:57:53 +01:00
Gil Forsyth
43c9aafe61
Updated CHANGELOG for 0.15.1
2024-03-07 10:11:43 -05:00
Gil Forsyth
991a321632
bumped version to 0.15.1
2024-03-07 10:11:43 -05:00
Gil Forsyth
4796cf7b4a
Updated authorship for 0.15.1
2024-03-07 10:11:43 -05:00
Andrew
17e9377cf8
Add zoxide and any-nix-shell to projects list ( #5294 )
2024-03-06 10:37:19 +01:00
doronz88
cb85c938b3
pytest: Fix pytest collection starting at pytest>=8.1.0 ( #5293 )
2024-03-05 23:51:01 +01:00
Daniel Saunders
d4a342f49d
Fix documented default loc parameter for add_one_completer() ( #5289 )
...
* Correct documentation about default parameter
* Create DanielSaunders-patch-1.rst
2024-02-27 16:22:12 +01:00
Gil Forsyth
1da7118e23
Updated CHANGELOG for 0.15.0
2024-02-24 19:09:24 -05:00
Gil Forsyth
0ca45bcacb
bumped version to 0.15.0
2024-02-24 19:09:17 -05:00
Gil Forsyth
f07f48c6f5
Updated authorship for 0.15.0
2024-02-24 19:09:16 -05:00
Andy Kipp
7a915113f6
Pin prompt-toolkit version ( #5288 )
...
* Update pyproject.toml
* Create pin-ptk.rst
* chore: strip whitespace
---------
Co-authored-by: Gil Forsyth <gil@forsyth.dev>
2024-02-24 18:42:50 -05:00
Andy Kipp
e95a8099af
Update pull_request_template.md ( #5282 )
2024-02-21 19:14:01 +05:30
pre-commit-ci[bot]
18fb513919
[pre-commit.ci] pre-commit autoupdate ( #5281 )
...
updates:
- [github.com/psf/black: 24.1.1 → 24.2.0](https://github.com/psf/black/compare/24.1.1...24.2.0 )
- [github.com/astral-sh/ruff-pre-commit: v0.2.1 → v0.2.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.2.1...v0.2.2 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-02-20 03:04:11 +01:00
pre-commit-ci[bot]
38a3f7253a
[pre-commit.ci] pre-commit autoupdate ( #5278 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.2.0 → v0.2.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.2.0...v0.2.1 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-02-13 02:17:28 +01:00
Jason R. Coombs
1d54c74832
Mention VS Code supports xonsh as default shell ( #5273 )
...
* Add paragraph about support for xonsh as the default shell.
Ref #4469
Also, updated the text to use 'VS Code', which is the preferred short name.
* Add news entry.
2024-02-06 00:29:45 +01:00
pre-commit-ci[bot]
06131e04c0
[pre-commit.ci] pre-commit autoupdate ( #5275 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.1.14 → v0.2.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.14...v0.2.0 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-02-06 00:29:13 +01:00
dependabot[bot]
53b5da8265
Bump codecov/codecov-action from 3 to 4 ( #5274 )
...
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action ) from 3 to 4.
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/codecov/codecov-action/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: codecov/codecov-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-05 14:14:57 +01:00