Commit graph

33 commits

Author SHA1 Message Date
Jason R. Coombs
4aec6d1d12
Perform proper case-insensitive matching in command_cache on Windows (#5477)
Closes #5476
Closes #5469
2024-06-10 12:29:13 -04:00
Andy Kipp
61bda708c9
Unpin prompt-toolkit version (#5438)
Merge this after https://github.com/xonsh/xonsh/pull/5437

## For community
⬇️ **Please click the 👍 reaction instead of leaving a `+1` or 👍
comment**

---------

Co-authored-by: a <1@1.1>
2024-05-23 14:08:54 -04:00
Andy Kipp
d2d13f028f
Downgrade prompt-toolkit to >=3.0.29,<3.0.40 (#5403)
This downgrade continues previous (#5288). Found issue in prompt-toolkit
3.0.40 (#5393).

JFYI #5241

## For community
⬇️ **Please click the 👍 reaction instead of leaving a `+1` or 👍
comment**

Co-authored-by: a <1@1.1>
2024-05-09 09:13:03 -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
52ead9336d refactor: replace black with ruff-format 2024-04-16 11:23:35 -04:00
Noortheen Raja
3574acfa51 test: add tests for webconfig post methods 2024-03-19 16:33:12 +05:30
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
Stefano Rivera
6513dea2f4
Add len() protocol to LazyObject to support Sphinx 5+ (#5249)
* Add len() protocol to LazyObject

Required by Sphinx 5+

Fixes: #5248

* Unrestrict maximum Sphinx version
2023-12-17 18:32:02 +01:00
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
Noorhteen Raja NJ
479413b5d0
Ruff linter (#5118) 2023-04-19 12:59:32 +00:00
Noorhteen Raja NJ
b2ada58c0c
docs: optimize webconfig icon (#5081) 2023-03-04 20:23:53 +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
Andy Kipp
c14455c828
Added "ujson" to xonsh[full] 2022-08-03 19:24:19 +06:00
Peter Ye
4333f362a1
Fix virtualenv Path import and bump version (#4903)
virtualenv.util.path.Path got removed when virtualenv 20.16.0 dropped
support for running on Python 2.7

pathlib.Path should be used instead. For example, see
a45c7d6e50/src/virtualenv/activation/python/__init__.py
2022-07-31 10:32:01 +05:30
Gil Forsyth
013fa760a0
refactor(amalgamate): remove amalgamation (#4858)
Co-authored-by: Noorhteen Raja NJ <jnoortheen@gmail.com>
2022-07-04 10:40:16 +05:30
Noorhteen Raja NJ
cbf23e60fb
Pre commit ci (#4863) 2022-07-01 11:47:01 -04:00
Noorhteen Raja NJ
52a12aaf85
chore: update project license info (#4857) 2022-06-29 09:13:43 -04:00
Noorhteen Raja NJ
3716f3da86
Pr5 xontrib entrypoints (#4827) 2022-06-17 12:39:12 -04:00
Peter Ye
8e1593b6e7
Update prompt-toolkit to 3.0.29 and remove xfail (#4818)
This fixes the failing test_ptk_prompt() test on Windows.
2022-05-25 09:16:34 +05:30
Gil Forsyth
572ebb576d
docs: change theme to furo (#4809)
Trying out a new theme -- I really like the way `furo` looks and I think
it makes it easier to navigate our overly dense docs pages.
2022-05-18 20:36:45 +05:30
Noorhteen Raja NJ
ed4421ddf4
pr5-pep621 (#4803) 2022-05-10 11:39:43 -04:00
Noortheen Raja
f2b7d4ed4f style: sort imports 2022-03-24 19:49:30 +05:30
Noortheen Raja
a7ef90cce6 fix: upload coverage for latest py version
fix: checking qa without amalgamation

fix: correct if expression

chore: update condition

chore: disable fail-fast

chore: update name
2022-03-22 19:13:11 +05:30
Noortheen Raja
8007561fb5 feat: add isort to project 2022-01-31 11:16:51 -05:00
Noorhteen Raja NJ
4b0918f9e3
fix: failing ci checks with black and mypy (#4517)
pip21.3 has changed the behaviour of build - https://pip.pypa.io/en/stable/news/#v21-3 to use in-tree-build by default. this creates amalgamated files.

this will install as editable dependency during qa checks

for some reason mypy exclude for __amalgam__.py is not working
2021-10-14 17:01:44 -04:00
Noorhteen Raja NJ
5dafceef47
chore: upgrade black and mypy (#4399)
* chore: upgrade black and mypy

* chore: update black config

ignore generated files from ply

* chore: upgrade pre-commit plugins
2021-07-29 18:31:52 -04:00
Gil Forsyth
9bb91a0b4b
Cleanup remaining vended ptk bits (#4130) 2021-03-01 16:55:23 -05:00
Morten Enemark Lund
d855431f5e Exclude wcwidth from flake8/black tests 2020-08-10 12:43:25 +02:00
Morten Enemark Lund
df55eab0b4 Exclude veded ptk from black and flake8 checks 2020-08-06 10:06:23 +02:00
Jason R. Coombs
ad3351462b Declare build-time dependency 2020-07-29 17:08:56 -04:00
Bob Hyman
a6bb5e2d56 Run (pure) flake8 in CI; deprecate config for pytest-flake8 2020-05-06 22:49:11 -04:00
Bob Hyman
26475146e2
Flake8 1 (#3550)
* flake8 fixes -- tests only

* fix ci failure

* integrate fix from is_3551 so tests will pass.

* Update tests/test_builtins.py

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2020-05-05 06:42:28 -04:00
Bob Hyman
94ac8f67f5
black-fix - split from ls_color for separate review (#3431)
* black-fix - split from ls_color for separate review
2020-02-14 09:09:34 -05:00