Commit graph

1294 commits

Author SHA1 Message Date
Gil Forsyth
14df0792de Preserve xonsh interactive flag when running scripts 2017-09-27 19:16:14 -04:00
Gil Forsyth
1f464fb193 Don't load xonshrc is xonsh is running a script
As per discussions with @asmeurer -- if xonsh is being used to launch a script,
e.g.

```
xonsh run_my_cool_deploy.xsh
```

then it should not load the `xonshrc` file since this should be reserved for
interactive functionality and we don't want side effects in the script.

Basically, if you need a xontrib to be loaded for your script, load it in your
script
2017-09-27 19:16:14 -04:00
Jean-Benoist Leger
c839fcea0e adding test for libgpm used in background threadable predictors 2017-09-05 10:22:49 +02:00
Morten Enemark Lund
876740b535 Fixed escape_windows_cmd_string not handling ^ correctly 2017-08-01 21:43:46 +02:00
Gil Forsyth
27ffb8d3d8 Merge pull request #2449 from xonsh/fstr
F-strings
2017-07-24 16:33:56 -04:00
Anthony Scopatz
a39dc73c18 rm print 2017-07-23 16:06:32 -07:00
Anthony Scopatz
1df6b22203 EnvPath __add__() and __radd__() methods 2017-07-22 16:31:16 -04:00
Anthony Scopatz
6a1a2404ae restrict tests to py36 2017-07-22 15:40:28 -04:00
Anthony Scopatz
936f738516 f-string tests working 2017-07-22 15:35:38 -04:00
Anthony Scopatz
ef9c357a73 some upassign AST tests 2017-07-17 13:04:53 -05:00
Anthony Scopatz
1781410d97 Merge branch 'master' into fstr 2017-07-16 16:19:52 -05:00
Morten Enemark Lund
b54a320ac0 Merge pull request #2439 from xonsh/barestarz
x, y, *z unpacking
2017-07-16 23:16:31 +02:00
Anthony Scopatz
18450f4330 Merge branch 'master' into fstr 2017-07-16 16:15:49 -05:00
Anthony Scopatz
1bc4920dbf lex f-strings 2017-07-16 16:13:20 -05:00
Anthony Scopatz
078c44703c fixed triple quote issue when open triple quotes are on the last line 2017-07-16 15:34:20 -05:00
Anthony Scopatz
1123a0af9b fix for comma test list rules 2017-07-16 14:17:38 -05:00
Anthony Scopatz
ec0c2ef143 don't check error status for window 2017-07-15 18:06:19 -05:00
Anthony Scopatz
19be0c409d fixed zero line test 2017-07-15 17:53:47 -05:00
Anthony Scopatz
4df37c0d73 fixed EOF in multi-line statement line number error 2017-07-15 17:51:21 -05:00
Jamie Bliss
f05c4d86b8 Merge pull request #2398 from Jitsusama/spelling_fixes
Spelling Fixes
2017-06-16 11:12:05 -04:00
Joel Gerber
0b94c3ceec
raise AssertionError on deprecated when removed_in exceeded
As there was some worry raised over whether people would remember
to remove a deprecated function once the removed_in version had been
reached, I've decided to add functionality that will force the
issue. When a @deprecated function is tagged with a removed_in
release that is greater than or equal to the current release, the
@deprecated decorator will raise an AssertionError, which will
hopefully break CI/CD and force the function to be removed.
2017-06-10 09:57:49 -04:00
Joel Gerber
5c33aac9f2
Introduce deprecated function/method decorator
This method allows for import time modification of a decorated
method/function such that it's docstring will reflect when the
function was deprecated, when it will be removed and that it is in
fact deprecated. It will also use the warnings system to flag
a DeprecationWarning that Python will report on when run with the
`-W` flag, or, when run through certain static/dynamic code
analyzers.
2017-06-09 21:50:38 -04:00
laerus
9edfafaf99 Add flush method to tests/tools::DummyHistory 2017-06-07 21:55:04 +03:00
Joel Gerber
2abb24f4f6
Docstring and comment spelling corrections
A number of common spelling typos found within various docstrings and
comments found within source code files have been identified and resolved.
2017-06-07 11:51:17 -04:00
Konstantinos Tsakiltzidis
18873742df Merge pull request #2359 from xonsh/custom_rc
fix `--rc` option for xonsh startup
2017-04-22 02:32:21 +03:00
Jamie Bliss
bf11df618c Add test 2017-04-21 17:46:04 -04:00
Gil Forsyth
d33003959e add test for --rc flags 2017-04-21 14:34:47 -04:00
Morten Enemark Lund
5f60bea8c4 Removed %foo% environment expansion on windows 2017-03-15 22:33:21 +01:00
Gil Forsyth
d6540ce66d add test that all int and bool envvars have ensurers
hopefully this will stop this from cropping up again in the future
2017-03-15 09:09:08 -04:00
Gil Forsyth
08d7f8b0fc test that _get_hg_root doesn't barf
There was no test for what the `hg` call would do if it weren't in a
repo at all.
2017-03-06 16:13:16 -05:00
Anthony Scopatz
bdd0ecbe5c fix windows tests 2017-03-02 23:25:30 -05:00
Anthony Scopatz
7f8634a215 ambiguous fix 2017-03-02 22:49:52 -05:00
Anthony Scopatz
d331778633 Line continuations will no longer eat surrounding whitespace 2017-03-02 00:34:47 -05:00
Anthony Scopatz
f9d6c8660f only issue one ws 2017-03-02 00:19:03 -05:00
Anthony Scopatz
c59b534861 lexing of line continuations in subprocs is working 2017-03-01 23:21:23 -05:00
Anthony Scopatz
11253ee4f1 more test fixes 2017-02-27 21:48:34 -05:00
Anthony Scopatz
13d507e4f8 fixed conflicts 2017-02-27 21:14:41 -05:00
Anthony Scopatz
91fd3065ad Merge pull request #2278 from xonsh/conftest
conftest xonsh_builtins teardown
2017-02-27 17:38:37 -05:00
laerus
4a2ff3aa58 conftest xonsh_builtins teardown 2017-02-27 21:44:58 +02:00
Anthony Scopatz
be9ca2a385 yet another fix 2017-02-27 14:11:39 -05:00
Anthony Scopatz
ae620c2e98 newline test fix 2017-02-27 11:40:02 -05:00
Morten Enemark Lund
b5f48cdcee Merge pull request #2270 from xonsh/jsonutils
New JSON utils module
2017-02-27 09:53:27 +01:00
Anthony Scopatz
cefd8d395d Require whitespace for and/or tokens in subproc mode 2017-02-26 22:42:29 -05:00
Anthony Scopatz
b0dce1af1e fixes and tests for bad globs 2017-02-26 21:54:39 -05:00
Hugo Wang
8920cc3d4e Merge pull request #2260 from xonsh/subshell
Subshells
2017-02-27 09:22:55 +08:00
Anthony Scopatz
f598ffd9ab Merge branch 'master' into badglob 2017-02-26 18:16:27 -05:00
Morten Enemark Lund
ffe08aaaab Merge pull request #2261 from xonsh/nsredir
Redirection no longer require a space
2017-02-26 22:49:55 +01:00
Anthony Scopatz
02faca09ba Merge branch 'master' into subshell 2017-02-26 16:20:00 -05:00
Anthony Scopatz
11da7fe12a New JSON utils module 2017-02-26 15:42:36 -05:00
Anthony Scopatz
1b2a4a5e52 Redirection no longer require a space 2017-02-25 23:25:42 -05:00