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

Move a load of code out into textual-enhanced #28

Merged
merged 8 commits into from
Feb 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ dependencies = [
"packaging>=24.2",
"humanize>=4.11.0",
"textual-fspicker>=0.2.0",
"textual-enhanced>=0.3.0",
]
readme = "README.md"
requires-python = ">= 3.9"
Expand Down
15 changes: 9 additions & 6 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ aiosignal==1.3.2
# via aiohttp
anyio==4.8.0
# via httpx
attrs==24.3.0
attrs==25.1.0
# via aiohttp
certifi==2024.12.14
certifi==2025.1.31
# via httpcore
# via httpx
cfgv==3.4.0
Expand All @@ -33,7 +33,7 @@ click==8.1.8
# via textual-dev
distlib==0.3.9
# via virtualenv
filelock==3.16.1
filelock==3.17.0
# via virtualenv
frozenlist==1.5.0
# via aiohttp
Expand All @@ -46,7 +46,7 @@ httpx==0.28.1
# via peplum
humanize==4.11.0
# via peplum
identify==2.6.5
identify==2.6.6
# via pre-commit
idna==3.10
# via anyio
Expand Down Expand Up @@ -87,7 +87,7 @@ platformdirs==4.3.6
# via virtualenv
pluggy==1.5.0
# via pytest
pre-commit==4.0.1
pre-commit==4.1.0
propcache==0.2.1
# via aiohttp
# via yarl
Expand All @@ -104,9 +104,12 @@ sniffio==1.3.1
textual==1.0.0
# via peplum
# via textual-dev
# via textual-enhanced
# via textual-fspicker
# via textual-serve
textual-dev==1.7.0
textual-enhanced==0.3.0
# via peplum
textual-fspicker==0.2.0
# via peplum
textual-serve==1.1.1
Expand All @@ -118,7 +121,7 @@ typing-extensions==4.12.2
# via textual-dev
uc-micro-py==1.0.3
# via linkify-it-py
virtualenv==20.28.1
virtualenv==20.29.1
# via pre-commit
xdg-base-dirs==6.0.2
# via peplum
Expand Down
5 changes: 4 additions & 1 deletion requirements.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
-e file:.
anyio==4.8.0
# via httpx
certifi==2024.12.14
certifi==2025.1.31
# via httpcore
# via httpx
h11==0.14.0
Expand Down Expand Up @@ -48,7 +48,10 @@ sniffio==1.3.1
# via anyio
textual==1.0.0
# via peplum
# via textual-enhanced
# via textual-fspicker
textual-enhanced==0.3.0
# via peplum
textual-fspicker==0.2.0
# via peplum
typing-extensions==4.12.2
Expand Down
6 changes: 0 additions & 6 deletions src/peplum/app/commands/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

##############################################################################
# Local imports.
from .base import Command
from .filtering import (
Search,
SearchAuthor,
Expand All @@ -21,8 +20,6 @@
ChangeTheme,
EditNotes,
Escape,
Help,
Quit,
RedownloadPEPs,
TogglePEPDetails,
ViewPEP,
Expand All @@ -38,13 +35,10 @@
##############################################################################
# Exports.
__all__ = [
"Command",
"ChangeTheme",
"EditNotes",
"Escape",
"FindPEP",
"Help",
"Quit",
"RedownloadPEPs",
"Search",
"SearchAuthor",
Expand Down
171 changes: 0 additions & 171 deletions src/peplum/app/commands/base.py

This file was deleted.

4 changes: 2 additions & 2 deletions src/peplum/app/commands/filtering.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""Provides command-oriented messages that relate to filtering."""

##############################################################################
# Local imports.
from .base import Command
# Textual enhanced imports.
from textual_enhanced.commands import Command


##############################################################################
Expand Down
4 changes: 2 additions & 2 deletions src/peplum/app/commands/finding.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""Commands related to finding things."""

##############################################################################
# Local imports.
from .base import Command
# Textual enhanced imports.
from textual_enhanced.commands import Command


##############################################################################
Expand Down
20 changes: 2 additions & 18 deletions src/peplum/app/commands/main.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""The main commands used within the application."""

##############################################################################
# Local imports.
from .base import Command
# Textual enhanced imports.
from textual_enhanced.commands import Command


##############################################################################
Expand All @@ -28,22 +28,6 @@ class Escape(Command):
BINDING_KEY = "escape"


##############################################################################
class Help(Command):
"""Show help for and information about the application"""

BINDING_KEY = "f1, ?"
SHOW_IN_FOOTER = True


##############################################################################
class Quit(Command):
"""Quit the application"""

BINDING_KEY = "f10, ctrl+q"
SHOW_IN_FOOTER = True


##############################################################################
class RedownloadPEPs(Command):
"""Redownload the list of PEPs"""
Expand Down
4 changes: 2 additions & 2 deletions src/peplum/app/commands/navigation_sorting.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""Commands for affecting navigation sort ordering."""

##############################################################################
# Local imports.
from .base import Command
# Textual enhanced imports.
from textual_enhanced.commands import Command


##############################################################################
Expand Down
4 changes: 2 additions & 2 deletions src/peplum/app/commands/peps_sorting.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""Provides command-oriented messages that relate to sorting PEPs."""

##############################################################################
# Local imports.
from .base import Command
# Textual enhanced imports.
from textual_enhanced.commands import Command


##############################################################################
Expand Down
Loading
Loading