Commit graph

33 commits

Author SHA1 Message Date
Noorhteen Raja NJ
68e2123b90
Update development.txt 2021-12-02 12:46:47 +05:30
Noorhteen Raja NJ
d51a03bc74
fix: random test failures on macos (#4518) 2021-10-15 08:53:30 -04:00
Noorhteen Raja NJ
d701ea7282
test: improve ptk_shell tests (#4448)
* test: improve ptk_shell tests

* Update tests

* fix: failing tests
2021-09-03 10:56:05 -04:00
Noorhteen Raja NJ
d7dbfa9011
Lab/py control file (#4420)
* feat: use python's compile for rc.py

* docs: add news item

* docs: update news item

* test: add tests for py-control files

* fix: rst news item

* docs: update news item

* docs: add sample rc.py
2021-08-19 12:40:22 -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
Noorhteen Raja NJ
9ae302fb11
feat: use rst-linter for news items check (#4398) 2021-07-28 10:16:35 -04:00
Noorhteen Raja NJ
de463f019d
chore: update mypy to 0.902 (#4324) 2021-06-14 23:10:22 +03:00
Noorhteen Raja NJ
45b588c52e
feat: add config option to hide gitstatus prompt fields (#4294)
* refactor: create namedConstants for std colors

* feat: add gitstatus hide option

* test: update test_vc to not leak xsh object
2021-06-11 02:24:24 +03:00
Daniel Shimon
7f8aeefae8
tests: Run tests with the amalgamated xonsh (#4290)
* tests: Run tests with the amalgamated xonsh

* tests: Test xonsh loads correctly interactively

* tests: Ensure tests run from amalgamated xonsh

* environ: Separate $XONSH_DEBUG and $XONSH_NO_AMALGAMATE

* tests: Keep XONSH_NO_AMALGAMATE in a comment for ease of debugging

* tests: Fix monkeypatch for amalgamated code
2021-05-28 15:42:37 +03:00
Noorhteen Raja NJ
948129b7a0
feat: add flake8-bugbear (#4288)
* feat: add flake8-bugbear

* style: remove pylint disable comments

* chore: add flake8 as pre-push check

* chore: add bunch pf pre-commit hooks

* style: remove hasattr __call__
2021-05-26 23:15:34 +03:00
Noorhteen Raja NJ
38295a1dd9
Remove globals (#4280)
* refactor: remove usage of global variables in abbrevs.py

* chore: add flake8-mutable to prevent mutable defaults

* fix: abbrevs expand test

* refactor: add xonsh session singleton

* refactor: fix circular errors when using xonshSession as singleton

* refactor: remove black magicked builtin attributes

* style: black format tests as well

* refactor: update tests to use xonsh-session singleton

* refactor: update abbrevs to not use builtins

* test: remove DummyCommandsCache and patch orig class

* fix: failing test_command_completers

* test: use monkeypatch to update xession fixture

* fix: failing test_pipelines

* fix: failing test_main

* chore: run test suit as single invocation

* test: fix tests/test_xonsh.xsh

* refactor: remove builtins from docs/conf.py

* fix: mypy error in jobs

* fix: test error from test_main

* test: close xession error in test_command_completers

* chore: use pytest-cov for reporting coverage

this will include subprocess calls, and will increase coverage

* style:
2021-05-20 13:14:26 +03:00
Noorhteen Raja NJ
4dc08232e6
Fix commands cache testing (#4257)
* fix: update failing commands-cache tests

in some cases, the thread updates the binaries faster than the next call

* chore: upgrade black to 21.5b0

* chore: upgrade mypy to 0.812 version

* fix: handle corrupt commands-cache file

* fix: parser-table output dir. this should be same as the defaults

* fix: flake8 error
2021-05-06 09:54:09 -04:00
Gil Forsyth
120210cb5e
Delete codecov.yml (#4232)
* Delete codecov.yml

codecov got hacked, rather badly, and we aren't going to send them anything ever again

* Remove codecov badge and remove from requirements
2021-04-15 10:16:09 -04:00
Gil Forsyth
432272b582
Don't use --pre, it breaks rever 2021-02-04 12:29:59 -05:00
Noorhteen Raja NJ
bceaafae4d
Add groups to env vars (#4026)
* feat: add grouped-settings for env variables

fixes #4014

style: fix mypy errors

chore: update testing requirements versions

fix: update xonsh.tools import error

* chore: add news item

* fix: update Var.with_default handling env defaults

* fix: set env var.doc_default=DefaultNotGiven

there is a custom handler for it

* chore: update travis

speedup docs generation

* chore: add command to serve docs during development

* docs: add jinja2 helpers/renderers extension for sphinx

* docs: update envvars document

* docs: fix docs failing

* Update xonsh/environ.py

commit suggestion

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

* Update xonsh/environ.py

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

* Update xonsh/environ.py

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

* Update xonsh/environ.py

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

* Update xonsh/environ.py

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

* Update xonsh/environ.py

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

* refactor: update rst-extension

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2021-01-04 12:21:44 -05:00
Noortheen Raja
7fe724255f feat: upgrade black version to 20.8b1
this changes docstring indendation
but facilitates additional control over new lines with comma
2020-11-25 12:46:35 +05:30
Noorhteen Raja NJ
ee46b17255
chore: add pip cache for github actions (#3973)
this will further speedup the workflow.
- also the macos and windows should now have proper cache with conda
- use jinja to template workflows that looks the same
2020-11-17 14:48:22 -05:00
Anthony Scopatz
ac1a7982f8
Merge pull request #3902 from t0fik/fix_prompt_toolkit_version
Updated prompt-toolkit version requirement
2020-10-19 11:41:07 -05:00
Jerzy Drozdz
3b651d5fd0 Version update in docs.txt requirements file 2020-10-19 18:24:15 +02:00
Noorhteen Raja NJ
fd597e6971
chore (ci): improve ci workflows and deps management (#3873)
* chore (ci): improve elm job speed by caching

* chore (ci): update ci generator script to be run from any dir

* chore: update pre-commit to use local black binary

* chore: mypy config skip amalgam generated modules

* chore: run-tests.xsh parameterisation

use argparser to make this file a cli

* feat: use requirements.txt during CI

* feat: run black/flake8/mypy during ci from pip-env

* chore: mypy version 0.790 fix

since the loose pinning on mypy version causes new PRs to fail

* refactor: update github actions template

remove poetry/environment.yml files
2020-10-19 11:52:37 -04:00
Jerzy Drozdz
bc924816a8 Updated prompt-toolkit version requirement 2020-10-19 14:29:17 +02:00
Noortheen Raja
68e723917b chore: update mypy config for different platforms 2020-10-09 20:19:09 +05:30
Noortheen Raja
a6b8f61a2e chore: add mypy to the conda environments file 2020-10-09 20:19:09 +05:30
Noortheen Raja
609e9304e9 feat: add mypy to project 2020-10-09 20:19:09 +05:30
Noortheen Raja
64efb3b3df feat: integrate flake8-docstring
most of the rules are disabled since it will take longer to fix them all

maybe in future version we can fix them one by one
2020-09-30 16:07:58 +05:30
Danny Sepler
7e0c3073df Stop pinning sphinx 2020-08-29 13:45:10 -04:00
Bob Hyman
dd82c5ffd8 Clean up ignorable warnings in clean pytest run 2020-05-08 15:41:06 -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
53bfe8c99c
Add ptk3 (#3521)
* delete package ptk; rename ptk2 to ptk_shell.; leave ptk2 as alias for ptk_shell.
* SHELL_TYPE "prompt_toolkit" only; remove ptk1 specific behavior.
* Doc updates: eliminate reference to prompt-toolkit < 2.0
* update requirements files ptk>=2; test shell_style="none"
* fix ptk2 stub per code review
* Add ptk2 to list of packages to install.
2020-04-18 10:44:27 -04:00
Morten Enemark Lund
c37818d4b4
Merge pull request #3483 from xonsh/runthis
runthis
2020-04-07 22:48:48 +02:00
Gil Forsyth
f01d3a2b7b
Pin sphinx so the docs don't break 2020-04-07 09:36:29 -04:00
Anthony Scopatz
0942d7b3d7 runthis 2020-03-19 23:05:18 -05:00
Anthony Scopatz
88d239d976 black not available on 3.5 2019-07-19 17:30:34 -04:00