Skip to content

Commit

Permalink
Refactored injection (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasBoss authored Apr 17, 2022
1 parent 4f03a7b commit 1a2b2d7
Show file tree
Hide file tree
Showing 78 changed files with 7,002 additions and 5,439 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
shell: bash
run: |
scripts/ci-install-deps.sh
pip install flake8 pylint mypy black
pip install flake8 pylint mypy black types-pkg_resources
- name: Set env for PR
if: github.event_name == 'pull_request'
shell: bash
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ inputremapper/commit_hash.py
*.glade#
.idea
*.png~
*.orig

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down Expand Up @@ -58,6 +59,9 @@ coverage.xml
.hypothesis/
.pytest_cache/

# pyreverse graphs
*.dot

# Translations
*.mo

Expand Down
7 changes: 7 additions & 0 deletions .mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

[mypy]
plugins = pydantic.mypy

# ignore the missing evdev stubs
[mypy-evdev.*]
ignore_missing_imports = True
3 changes: 2 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

max-line-length=88 # black

extension-pkg-whitelist=evdev
extension-pkg-whitelist=evdev, pydantic
load-plugins=pylint_pydantic

disable=
# that is the standard way to import GTK afaik
Expand Down
16 changes: 16 additions & 0 deletions .run/Only Integration Tests.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Only Integration Tests" type="tests" factoryName="Autodetect">
<module name="input-remapper" />
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/tests" />
<option name="IS_MODULE_SDK" value="true" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<option name="_new_additionalArguments" value="&quot;--start-dir integration&quot;" />
<option name="_new_target" value="&quot;$PROJECT_DIR$/tests&quot;" />
<option name="_new_targetType" value="&quot;PATH&quot;" />
<method v="2" />
</configuration>
</component>
16 changes: 16 additions & 0 deletions .run/Only Unit tests.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Only Unit Tests" type="tests" factoryName="Autodetect">
<module name="input-remapper" />
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/tests" />
<option name="IS_MODULE_SDK" value="true" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<option name="_new_additionalArguments" value="&quot;--start-dir unit&quot;" />
<option name="_new_target" value="&quot;$PROJECT_DIR$/tests&quot;" />
<option name="_new_targetType" value="&quot;PATH&quot;" />
<method v="2" />
</configuration>
</component>
2 changes: 1 addition & 1 deletion DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: input-remapper
Version: 1.4.2
Version: 1.5b1
Architecture: all
Maintainer: Sezanzeb <proxima@sezanzeb.de>
Depends: build-essential, libpython3-dev, libdbus-1-dev, python3, python3-setuptools, python3-evdev, python3-pydbus, python3-gi, gettext, python3-cairo, libgtk-3-0, libgtksourceview-4-dev, python3-pydantic
Expand Down
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<p align="center"><img src="data/input-remapper.svg" width=100/></p>

<h1 align="center">Input Remapper</h1>
<h1 align="center">Input Remapper (Beta)</h1>

<p align="center"><b>Formerly Key Mapper</b></p>

Expand All @@ -14,6 +14,13 @@

<p align="center"><img src="readme/pylint.svg"/> <img src="readme/coverage.svg"/></p>

#### Known Issues (Beta Branch)

* The GUI is currently is not adapted to reflect all new features and might behave strange.
Mapping a gamepad to mouse is currently not possible in the GUI.
Also mapping joystick or mouse axis to buttons might not work.
Those are only limitations of the GUI, when editing the preset manually all those features are still available.

## Installation

##### Manjaro/Arch
Expand All @@ -31,7 +38,7 @@ or install the latest changes via:
sudo apt install git python3-setuptools gettext
git clone https://github.com/sezanzeb/input-remapper.git
cd input-remapper && ./scripts/build.sh
sudo apt install ./dist/input-remapper-1.4.2.deb
sudo apt install ./dist/input-remapper-1.5b1.deb
```

input-remapper is now part of [Debian Unstable](https://packages.debian.org/sid/input-remapper)
Expand Down
Loading

0 comments on commit 1a2b2d7

Please sign in to comment.