Commit graph

3376 commits

Author SHA1 Message Date
Will McGugan
856a6edb36 typing 2021-11-05 10:56:46 +00:00
Will McGugan
470a52130b Added json.dumps parameters 2021-11-05 10:55:10 +00:00
Will McGugan
9ad5191913
Merge pull request #1643 from willmcgugan/fix-detect-color
fix detect color
2021-11-05 10:27:43 +00:00
Will McGugan
e1c105b8f0 fix detect color 2021-11-05 10:26:02 +00:00
Matthias Bussonnier
e2b704f203 Have logger link to proper file line.
Some terminal emulators like iterm2, support anchoring to the line
number:

https://iterm2.com/documentation-one-page.html see Anchor (OSC 8)
section:

     Note: in iTerm2 version 3.4 and later, if the URL has the file scheme and
     a # fragment is present then the semantic history rules will apply
     for opening the file. It may optionally include a line number, like
     file:///tmp/file.txt#123 or line number and column number like
     file:///tmp/file.txt#123:45

This update the logic in the logger so that the line number links the
the corresponding file on the same line.

As I'm not sure whether all terminals support that, I let the  clik on
the file name point to the file itself w/o line numbers.

And for discoverability and user friendliness the colon itself is
unstyled so that it's easier to discover that click on the  filename and
line number are two different targets.
2021-11-01 13:28:28 -07:00
dependabot[bot]
da3b1d99eb
Bump black from 21.9b0 to 21.10b0
Bumps [black](https://github.com/psf/black) from 21.9b0 to 21.10b0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/commits)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-01 13:03:45 +00:00
Felipe S. S. Schneider
747e55bd6f Cross-link Python's builtin input() and readline from Console.input() 2021-10-31 13:01:15 -03:00
Felipe S. S. Schneider
313ee3fa9b Cross-link the console API from prompts 2021-10-31 13:01:15 -03:00
Felipe S. S. Schneider
eac0767676 Mention Python's buitin readline module in the docs 2021-10-31 13:00:40 -03:00
Felipe S. S. Schneider
8f9131c586 Distinguish input() method from function 2021-10-31 12:38:38 -03:00
Felipe S. S. Schneider
3844ae817b Link to Python's builtin input() 2021-10-31 12:36:52 -03:00
Felipe S. S. Schneider
3949754c43 Add the sphinx.ext.intersphinx plugin 2021-10-31 12:35:58 -03:00
johnthagen
119ab778a3
Wrap LICENSE file at 80 characters 2021-10-28 14:50:29 -04:00
johnthagen
d429b02991
Remove extra space in Theme example 2021-10-28 09:17:57 -04:00
Tim Savage
35fdd59128 Updated CHANGELOG.md and CONTRIBUTORS.md 2021-10-22 12:31:03 +11:00
Tim Savage
137adbabf8 Put an exception handler around console.print
This is to handle any failures in the print method and defer exception handling to the Handler.handleErrors method.
2021-10-22 12:25:43 +11:00
Tim Savage
5876f5cacc Add a test case to simulate pythonw related to issue #1619 2021-10-22 12:24:38 +11:00
Will McGugan
eb673d1204
Merge pull request #1581 from sureshdsk/export-ex
Added examples for export
2021-10-16 17:44:12 +01:00
Suresh Kumar
5dddadb983 print exports to terminal 2021-10-16 22:04:45 +05:30
Suresh Kumar
8943924d00 export captured console output 2021-10-16 19:16:10 +05:30
Suresh Kumar
ddde385389 fix typo 2021-10-16 19:05:47 +05:30
Suresh Kumar
0cf528d9a8 added descriptive comments 2021-10-16 19:04:34 +05:30
Kenneth Hoste
28a33cbcc3
reformat with latest black (21.9b0) 2021-10-16 13:51:50 +02:00
Kenneth Hoste
8a1585f2cf
put app progress in panel, speed things up 2021-10-16 13:51:50 +02:00
Kenneth Hoste
b9af6f7d8f
use Group since RenderGroup is sort of deprecated, rename 'group' to 'process_group' 2021-10-16 13:51:50 +02:00
Kenneth Hoste
ab746e6537
udpate changelog 2021-10-16 13:51:49 +02:00
Kenneth Hoste
58b71127aa
add @boegel to contributors 2021-10-16 13:51:05 +02:00
Kenneth Hoste
5ecd4ad774
reformat dynamic_progress.py example with Black 2021-10-16 13:51:05 +02:00
Kenneth Hoste
c875b9c834
add example with dynamic group of progress bars 2021-10-16 13:51:04 +02:00
Will McGugan
25b8976145
Merge pull request #1573 from v0lp3/hide_root
feat(tree): add hide_root argument
2021-10-16 10:57:30 +01:00
Will McGugan
735b60f44f
Merge pull request #1547 from skshetry/json-default
json: add support for default encoder
2021-10-16 10:56:17 +01:00
Will McGugan
6f5d071630
Merge pull request #1596 from GBeauregard/alt-pyright-fix
Minimally fix reportPrivateImportUsage in pyright for library users
2021-10-16 10:39:04 +01:00
Will McGugan
7792fe0a60
Merge pull request #1593 from v0lp3/codespell
fix(codespell): include README.it.md to codespell exclusions
2021-10-16 10:34:57 +01:00
Will McGugan
a29c1ae0bc
Merge pull request #1586 from akettmann-e24/patch-1
fix return type for `Table.expand()` getter
2021-10-16 10:34:28 +01:00
Will McGugan
3331f2a007
Merge pull request #1595 from jz4o/fix-markdown-syntax
Fix markdown syntax in README.ja.md
2021-10-16 10:33:56 +01:00
Will McGugan
98663137c3
Merge pull request #1584 from GBeauregard/type-changes
Support pyright-style literal treatment
2021-10-16 10:33:23 +01:00
Will McGugan
7029cae10a
Merge pull request #1580 from Psycojoker/is-atty-broken-in-pytest
fix a edge case bug when running under pytest
2021-10-16 10:32:05 +01:00
GBeauregard
54deb754ca
avoid marking our exported API as private
It is standard (see PEP 484 stub file section) to mark redundantly
imported items as exported. This PR adds this redundant exporting to
files that incidentally import part of their own API in their __main__
sections to avoid accidentally indicating they should be private to type
checkers.
2021-10-15 13:05:34 -07:00
jz4o
110cee24fa Fix markdown syntax in README.ja.md 2021-10-16 01:51:09 +09:00
v0lp3
cd40098358
Merge branch 'willmcgugan:master' into codespell 2021-10-15 17:21:05 +02:00
v0lp3
215efa6f79 fix(codespell): include README.it.md to codespell exclusions 2021-10-15 17:19:53 +02:00
v0lp3
3bcbbb5d9e ref: black format 2021-10-15 15:54:03 +02:00
v0lp3
f2a8a0ebc8 tests(tree): add tree render with hide_root flag 2021-10-15 15:49:22 +02:00
v0lp3
1015379fe3 fix(tree): tree not shows root guide 2021-10-15 15:18:24 +02:00
v0lp3
b098f55af6 ref(tree): minor changes 2021-10-15 14:23:05 +02:00
v0lp3
a04644e59f
Merge branch 'willmcgugan:master' into hide_root 2021-10-15 14:12:58 +02:00
Will McGugan
0dc08eac95
Merge pull request #1579 from GBeauregard/add-typing-errors
Fix a couple typing errors needed to be compatible with future mypy
2021-10-15 10:16:42 +01:00
Will McGugan
8efebcf545
Merge pull request #1583 from GBeauregard/typing-investigation
Fix Justify default incorrectly set to DEFAULT_OVERFLOW
2021-10-15 10:15:04 +01:00
Will McGugan
5b9f55f6aa
Merge pull request #1545 from willmcgugan/dependabot/pip/pytest-cov-3.0.0
Bump pytest-cov from 2.12.1 to 3.0.0
2021-10-15 10:03:37 +01:00
Will McGugan
1700699b7b
Merge pull request #1546 from 0xflotus/patch-1
fix: small error in docs
2021-10-15 10:03:15 +01:00