Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic mypy typings #786

Merged
merged 22 commits into from
Aug 14, 2022
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
f57ac02
ci(typings): Add mypy
tony Aug 14, 2022
954ef41
chore(util): Use console_to_str from libtmux
tony Aug 14, 2022
59ba779
refactor!(_compat): Remove console_to_str
tony Aug 14, 2022
b08e8b5
chore(mypy): Override untyped libs
tony Jul 24, 2022
2a8f972
build(deps): Add types-docutils
tony Jul 24, 2022
844f8f7
build(mypy): Allow docutils again
tony Jul 24, 2022
5031c62
build(deps): Add colorama typings
tony Jul 24, 2022
06da457
chore(test_cli): Add typings for mypy
tony Jul 25, 2022
af55803
chore(conftest): Basic Typings
tony Aug 14, 2022
e8bf689
refactor(test fixtures): Use basic dataclass
tony Aug 14, 2022
c20dfc0
refactor(aafig): Use hashlib library (sha1 deprecated since 2.5)
tony Aug 14, 2022
73e3b09
refactor(aafig): Fix import location (pyright)
tony Aug 14, 2022
d3a9a92
chore(aafig): Import from logging from standard library
tony Aug 14, 2022
bed670d
docs(conf): Basic typings
tony Aug 14, 2022
e3e6472
chore(command_freeze): Fix odd type / cycling issue caused by import
tony Aug 14, 2022
921e715
refactor(shell): Import fix
tony Aug 14, 2022
98b029d
chore(breakpoint): Ignore workaround
tony Aug 14, 2022
8ef49a7
refactor!(logging): mypy updates
tony Aug 14, 2022
ca09e80
refactor(logging): Remove protocol for now, to avoid typing-extensions
tony Aug 14, 2022
5400783
chore(setup.cfg): Move pytest config down for doc example
tony Aug 14, 2022
04317db
docs(developing): Note flake8 and mypy
tony Aug 14, 2022
f130e9b
docs(CHANGES): Add basic type annotations
tony Aug 14, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore(setup.cfg): Move pytest config down for doc example
  • Loading branch information
tony committed Aug 14, 2022
commit 54007833704b82a989df4049befb0cc8c16c5e72
12 changes: 6 additions & 6 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ max-line-length = 88
# Stuff we ignore thanks to black: https://github.com/ambv/black/issues/429
extend-ignore = E203,W503

[tool:pytest]
filterwarnings =
ignore:distutils Version classes are deprecated. Use packaging.version instead.
addopts = --reruns=0 --tb=short --no-header --showlocals --doctest-modules
doctest_optionflags = ELLIPSIS NORMALIZE_WHITESPACE

[isort]
profile = black
combine_as_imports= true
Expand All @@ -21,3 +15,9 @@ known_pytest = pytest,py
known_first_party = libtmux,tmuxp
sections = FUTURE,STDLIB,PYTEST,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
line_length = 88

[tool:pytest]
filterwarnings =
ignore:distutils Version classes are deprecated. Use packaging.version instead.
addopts = --reruns=0 --tb=short --no-header --showlocals --doctest-modules
doctest_optionflags = ELLIPSIS NORMALIZE_WHITESPACE