forked from ruundii/bthidhub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use mypyc to compile modules (ruundii#25)
- Loading branch information
1 parent
391044c
commit 8e44095
Showing
27 changed files
with
677 additions
and
322 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: CI | ||
|
||
on: [pull_request, push] | ||
|
||
jobs: | ||
mypy: | ||
name: Mypy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
- name: Install libgirepository | ||
run: sudo apt install -y libgirepository1.0-dev | ||
- name: Install dependencies | ||
uses: py-actions/py-dependency-install@v2 | ||
with: | ||
path: requirements.txt | ||
- name: Run mypy | ||
run: mypy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
/commands | ||
.idea | ||
.idea | ||
*.so | ||
__pycache__/ | ||
build/ | ||
install/on_rpi/bluez/ | ||
devices_config.json | ||
*~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[mypy] | ||
files = a1314_message_filter.py, adapter.py, agent.py, bluetooth_devices.py, compatibility_device.py, hid_devices.py, hid_message_filter.py, mouse_message_filter.py | ||
check_untyped_defs = True | ||
follow_imports_for_stubs = True | ||
disallow_any_decorated = True | ||
disallow_any_explicit = True | ||
disallow_any_expr = True | ||
disallow_any_generics = True | ||
disallow_any_unimported = True | ||
disallow_incomplete_defs = True | ||
disallow_subclassing_any = True | ||
disallow_untyped_calls = True | ||
disallow_untyped_decorators = True | ||
disallow_untyped_defs = True | ||
implicit_reexport = False | ||
mypy_path = stubs/ | ||
no_implicit_optional = True | ||
show_error_codes = True | ||
strict_equality = True | ||
warn_incomplete_stub = True | ||
warn_no_return = True | ||
warn_redundant_casts = True | ||
warn_return_any = True | ||
warn_unreachable = True | ||
warn_unused_ignores = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.