Skip to content

Commit

Permalink
Remove pytest as no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
SkwalExe committed Jul 22, 2024
1 parent f5d50b0 commit 4510b60
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 40 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/pr_checks.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Check for typing/linting/formatting/test errors
name: Check for typing/linting/formatting errors

on:
pull_request:
Expand All @@ -25,6 +25,4 @@ jobs:
run: pdm run lint-check
- name: Check for type errors
run: pdm run check-types
- name: Run tests
run: pdm run tests

3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ path = "src/octologo/__init__.py"
[tool.pdm.dev-dependencies]
dev = [
"ruff>=0.4.7",
"pytest>=8.2.2",
"pytest-asyncio>=0.23.7",
"pyright>=1.1.365",
"textual-dev>=1.5.1",
]
Expand All @@ -43,7 +41,6 @@ format-check = "ruff format --check"
lint = "ruff check --fix --show-fixes"
lint-check = "ruff check"
check-types = "pyright"
tests = "pytest"
console = "textual console -x EVENT -x SYSTEM"

[project.urls]
Expand Down
6 changes: 4 additions & 2 deletions src/octologo/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@
Select("style", "Logo Style", options=style_names, default_value="first_letter_underlined"),
]


def handle_wizard_cancelled() -> None:
logger.error("Wizard cancelled by user.")
quit(0)
logger.error("Wizard cancelled by user.")
quit(0)


@extra_command(params=[])
@option("-t", "--no-tui", is_flag=True, help="Dont use the Textual Terminal User Interface")
Expand Down
2 changes: 1 addition & 1 deletion src/octologo/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def get_text_size(text: str, font: FreeTypeFont) -> tuple[int, int]:


def get_font_height(font: FreeTypeFont) -> int:
return font.getbbox("azertyuiopqsdfghjklmwxcvbnAZERTYUIOPQASDFGHJKLMWXCVBN0123456789")[3]
return int(font.getbbox("azertyuiopqsdfghjklmwxcvbnAZERTYUIOPQASDFGHJKLMWXCVBN0123456789")[3])


def remove_ext(filename: str) -> str:
Expand Down
31 changes: 0 additions & 31 deletions tests/test_no_errors.py

This file was deleted.

0 comments on commit 4510b60

Please sign in to comment.