diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 8194330..56acbd3 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -26,7 +26,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install flake8 pytest tox + python -m pip install -U flake8 pytest tox if [ -f requirements.txt ]; then pip install -r requirements.txt; fi # - name: Lint with flake8 # run: | diff --git a/bogrod/tui/app.py b/bogrod/tui/app.py index b162869..1f65f94 100644 --- a/bogrod/tui/app.py +++ b/bogrod/tui/app.py @@ -11,8 +11,8 @@ class BogrodApp(App): def __init__(self, *args, bogrod=None, **kwargs): super().__init__(*args, **kwargs) self.bogrod = bogrod - list_screen = VulnerabilityList(bogrod=self.bogrod) - self.install_screen(list_screen, 'vulnerability-list') def on_mount(self): + list_screen = VulnerabilityList(bogrod=self.bogrod) + self.install_screen(list_screen, 'vulnerability-list') self.push_screen('vulnerability-list') diff --git a/bogrod/tui/vulnlist.py b/bogrod/tui/vulnlist.py index 19f59be..73e9953 100644 --- a/bogrod/tui/vulnlist.py +++ b/bogrod/tui/vulnlist.py @@ -17,7 +17,7 @@ class VulnerabilityList(HelpableMixin, Screen): BINDINGS = [ Binding(key="enter", action='edit_vulnerability', description="edit", priority=True, show=True), - Binding(key="q", action='quit', description="quit", priority=True, show=True), + Binding(key="ctrl-q", action='quit', description="quit", priority=True, show=True), Binding(key="?", action='help', description="help", priority=True, show=True), Binding(key="l,L", action='focus_table', description="go to list of vulnerabilities", show=True), Binding(key='f,F', action='focus_filter', description='go to filters', show=True), diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..e69de29 diff --git a/tox.ini b/tox.ini index 3910121..9ce797b 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py310,py311 +envlist = py310,py311,py312 package = wheel [testenv]