Marcin Kulik
0c24ba4c57
Merge pull request #477 from djds/djds/pylint
...
djds/pylint
2022-02-23 09:50:35 +01:00
Davis Schirmer
1bdc446765
[style] Add pylint exceptions
2022-02-21 19:17:42 -05:00
Davis Schirmer
ce5fd49821
[pty_] Avoid shadowning class name with copy() method argument
2022-02-21 19:09:20 -05:00
Davis Schirmer
9de36195fd
[recorder] Specify UTF-8 encoding
2022-02-21 19:05:41 -05:00
Davis Schirmer
7a90a30ba5
[typing] Annotate tests
2022-02-21 18:39:26 -05:00
Marcin Kulik
9d2a939fe7
Merge pull request #475 from asciinema/pty-refa
...
Refactor pty module
2022-02-21 20:54:32 +01:00
Marcin Kulik
255c254fb2
Refactor pty module
2022-02-21 20:49:38 +01:00
Marcin Kulik
350a14d435
Merge pull request #474 from asciinema/fix-headers-ua
...
Fix type errors after recent major typing refactoring
2022-02-20 16:24:06 +01:00
Marcin Kulik
c9f446ea87
Fix type errors after recent major typing refactoring
2022-02-20 16:03:13 +01:00
Marcin Kulik
68475b03c9
Merge pull request #473 from asciinema/tty-in-out
...
TTY/stdin/stdout handling improvements
2022-02-20 15:17:43 +01:00
Marcin Kulik
bc7bbb3c78
Don't use colors when asciinema's stdout/stderr is not a tty
2022-02-20 12:39:08 +01:00
Marcin Kulik
81cf52306b
Forward asciinema's stdin to recorded process
2022-02-20 12:32:16 +01:00
Marcin Kulik
6a33b6a0e6
Explicitly use tty for input/output instead of process' stdin/stdout
2022-02-20 11:48:14 +01:00
Marcin Kulik
a946d3e7a0
Dedicated function to build metadata
2022-02-19 13:09:25 +01:00
Marcin Kulik
24dba63605
Typing improvements
2022-02-19 13:04:25 +01:00
Marcin Kulik
a715c48e1c
Merge pull request #472 from asciinema/recorder-refa
...
Recorder refactoring
2022-02-19 12:09:23 +01:00
Marcin Kulik
0a3e5522ed
Use notifier's public notify method for file writer
2022-02-18 21:42:20 +01:00
Marcin Kulik
ed017ee41f
Less defensive programming, rename test mock class
2022-02-18 21:42:20 +01:00
Marcin Kulik
e86dbc9118
Handle conditional stdin recording in async_writer instead of pty
2022-02-18 20:51:36 +01:00
Marcin Kulik
59f8a40387
Handle time offset in async_writer instead of pty
2022-02-18 20:22:27 +01:00
Marcin Kulik
760a7152e2
Simplify async_writer
2022-02-17 22:52:39 +01:00
Marcin Kulik
4294922cf6
Merge pull request #471 from asciinema/cols-rows-override
...
Option to override cols/rows of the recorded process
2022-02-17 21:58:37 +01:00
Marcin Kulik
fd09df89f6
Option to override cols/rows of the recorded process
...
This adds `--cols <n>` / `--rows <n>` options to `rec` command. This disables
autodection of terminal size, and reports fake fixed number of columns/rows to
the recorded process.
2022-02-17 21:54:30 +01:00
Marcin Kulik
41d2476c11
Merge pull request #453 from asciinema/feature/fifo-reopen
...
Improved handling of named pipes (FIFO)
2022-02-15 20:39:55 +01:00
Marcin Kulik
d16c2abf25
Ignore mypy's check for None in hot code path
2022-02-14 23:22:32 +01:00
Marcin Kulik
62d77dc9fb
Automatically reopen named pipe (FIFO) and resume writing upon BrokenPipeError
2022-02-14 22:45:11 +01:00
Marcin Kulik
b741021345
Merge pull request #470 from djds/pre-commit-action
...
pre commit action
2022-02-13 23:32:17 +01:00
Davis Schirmer
d536ea689c
[doc] Update CONTRIBUTING
2022-02-13 17:19:13 -05:00
Davis Schirmer
d7c5794b1e
[tests] Add trailing newline to demo.json
2022-02-13 17:19:12 -05:00
Davis Schirmer
df71dc8c37
[doc] Remove trailing whitespace
2022-02-13 17:19:07 -05:00
Davis Schirmer
f70702f490
[ci] Update default Python environment 3.9 => 3.10
2022-02-13 16:43:18 -05:00
Davis Schirmer
f984d2c2e1
[ci] Add pre-commit GitHub Action workflow
...
https://github.com/pre-commit/action
2022-02-13 16:42:04 -05:00
Marcin Kulik
32ccd53ddb
Merge pull request #469 from djds/develop
...
Revert "[tests:distros] Update Fedora 34 => 35"
2022-02-13 22:21:27 +01:00
Davis Schirmer
4ef8d32fc9
Revert "[tests:distros] Update Fedora 34 => 35"
...
This reverts commit 5546d7b0e6 .
The fix for the default Docker seccomp profile containing the clone()
syscall wrapper from glibc 2.34 does not appear to be in the GitHub
Actions `ubuntu-latest` virtual environment yet.
* https://github.com/actions/virtual-environments
* https://github.com/actions/virtual-environments/blob/releases/ubuntu20/20220207/images/linux/Ubuntu2004-Readme.md
2022-02-13 16:17:38 -05:00
Marcin Kulik
a0c98fede3
Merge pull request #445 from djds/develop
...
Add PEP 518 build; annotate types; drop Python < 3.6 support
2022-02-13 21:22:37 +01:00
Davis Schirmer
733539feaa
[record] Replace %s formatting with f-string
2022-02-13 13:43:57 -05:00
Davis Schirmer
f8e4890944
[config] Replace concatenation with f-string
2022-02-13 13:43:56 -05:00
Davis Schirmer
5546d7b0e6
[tests:distros] Update Fedora 34 => 35
...
https://bugs.launchpad.net/ubuntu/+source/docker.io/+bug/1938908/comments/101
2022-02-13 13:43:55 -05:00
Davis Schirmer
2127a69e45
[tests:distros] Update Alpine 3.14 => 3.15
...
https://alpinelinux.org/posts/Alpine-3.15.0-released.html
2022-02-13 13:43:54 -05:00
Davis Schirmer
430788baca
[adapter] Fix HTTP Basic auth header encoding
...
https://www.python.org/dev/peps/pep-0498/#no-binary-f-strings
2022-02-13 13:43:53 -05:00
Davis Schirmer
47030f9b0e
[v2] Remove redundant assertion
2022-02-13 13:43:52 -05:00
Davis Schirmer
bdeb3b1821
[raw] Rename unused var for pylint
2022-02-13 13:43:51 -05:00
Davis Schirmer
da5ea40497
[v2] Remove Optional from Asciicast.__enter__ return annotation
2022-02-13 13:43:50 -05:00
Davis Schirmer
8cd0a47e5a
[v1] Remove import try / except block
2022-02-13 13:43:49 -05:00
Davis Schirmer
d78ae57f2f
[style] Add additional pre-commit hooks
2022-02-13 13:43:48 -05:00
Davis Schirmer
811552d910
[command] Re-add escape codes converted by editor
2022-02-13 13:43:47 -05:00
Davis Schirmer
b7eafaa881
[cat] Set /dev/tty open mode as read-only
2022-02-13 10:34:19 -05:00
Davis Schirmer
aa244ab105
[recorder] Remove redundant assertion
2022-02-13 10:31:58 -05:00
Davis Schirmer
8e8a586012
[pty] Remove exception for Python < 3.3
2022-02-13 10:30:45 -05:00
Davis Schirmer
2a7870652c
[style] Update pre-commit hooks
2022-02-13 10:30:37 -05:00