Skip to content
Closed
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
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install less pager
run: sudo apt-get install less more

- name: Start MySQL
run: |
sudo /etc/init.d/mysql start
Expand All @@ -46,6 +49,10 @@ jobs:
PYTEST_PASSWORD: root
PYTEST_HOST: 127.0.0.1
TERM: xterm
# PAGER: cat
# EDITOR: touch
# LESS: -RXF
PYTHONUNBUFFERED: 1
run: |
uv run tox -e py${{ matrix.python-version }}

Expand Down
2 changes: 1 addition & 1 deletion mycli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ def newlinewrapper(text):
def configure_pager(self):
# Provide sane defaults for less if they are empty.
if not os.environ.get("LESS"):
os.environ["LESS"] = "-RXF"
os.environ["LESS"] = ""

cnf = self.read_my_cnf_files(self.cnf_files, ["pager", "skip-pager"])
cnf_pager = cnf["pager"] or self.config["main"]["pager"]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ authors = [{ name = "Mycli Core Team", email = "[email protected]" }]
urls = { homepage = "http://mycli.net" }

dependencies = [
"click >= 7.0,<8.1.8",
"click >= 7.0",
"cryptography >= 1.0.0",
"Pygments>=1.6",
"prompt_toolkit>=3.0.6,<4.0.0",
Expand Down
6 changes: 6 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ passenv = PYTEST_HOST
PYTEST_PASSWORD
PYTEST_PORT
PYTEST_CHARSET
PYTHONUNBUFFERED
TERM
PAGER
LESS_IS_MORE
LESS
EDITOR
commands = uv pip install -e .[dev,ssh]
coverage run -m pytest -v test
coverage report -m
Expand Down
Loading