Skip to content

Commit

Permalink
Revert "🚧 build(deps): bump optype from 0.7.1 to 0.7.2"
Browse files Browse the repository at this point in the history
  • Loading branch information
rduo1009 authored Nov 26, 2024
1 parent 87f2ed2 commit cadae8d
Show file tree
Hide file tree
Showing 17 changed files with 21 additions and 309 deletions.
6 changes: 2 additions & 4 deletions .vscode/settings.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,14 @@
],
"files.associations": {
"settings.json.sample": "jsonc",
".coveragerc": "ini",
"*.spec": "python"
".coveragerc": "ini"
},
"catppuccin-icons.associations.folders": { // or whatever icon extension you use
"stubs": "folder_types"
},
"catppuccin-icons.associations.files": { // or whatever icon extension you use
"requirements-dev.txt": "python-config",
"settings.json.sample": "json",
".coveragerc": "ini",
"vocab-tuister-server.spec": "python-config"
".coveragerc": "ini"
}
}
2 changes: 1 addition & 1 deletion poe_tasks.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ shell = "./scripts/coverage.sh"
help = "Run coverage on the project."

[tool.poe.tasks.build]
cmd = "./scripts/build.sh"
cmd = "poetry build"
help = "Build the project."

[tool.poe.tasks.test]
Expand Down
126 changes: 5 additions & 121 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ build-backend = "poetry_dynamic_versioning.backend"
requires = [ "poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0" ]

[tool.poetry]
name = "vocab-tuister"
version = "0.0.0" # placeholder
description = "An application that tests Latin vocabulary and grammar. (TUI experiment)"
name = "vocab-tester"
version = "0.0.0" # placeholder
description = "An application that tests Latin vocabulary and grammar."
authors = [ "rduo1009 <[email protected]>" ]
readme = "README.md"
packages = [ { include = "src" } ]
Expand All @@ -23,7 +23,6 @@ waitress = "3.0.2"
cyclopts = "3.0.1"
ansicolors = "1.1.8"
dunamai = "1.23.0"
pyinstaller = "6.11.1"

[tool.poetry.group.dev.dependencies]
icecream = "2.1.3"
Expand All @@ -48,7 +47,7 @@ pydoclint = "0.5.9"
[tool.poetry.group.types.dependencies]
types-regex = "2024.11.6.20241108"
types-waitress = "3.0.1.20241117"
optype = "0.7.2"
optype = "0.7.1"

[tool.poetry-dynamic-versioning]
enable = true
7 changes: 0 additions & 7 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ aiohappyeyeballs==2.4.3 ; python_version >= "3.12" and python_version < "3.14"
aiohttp==3.11.7 ; python_version >= "3.12" and python_version < "3.14"
aiosignal==1.3.1 ; python_version >= "3.12" and python_version < "3.14"
alabaster==1.0.0 ; python_version >= "3.12" and python_version < "3.14"
altgraph==0.17.4 ; python_version >= "3.12" and python_version < "3.14"
ansicolors==1.1.8 ; python_version >= "3.12" and python_version < "3.14"
anybadge==1.14.0 ; python_version >= "3.12" and python_version < "3.14"
asttokens==2.4.1 ; python_version >= "3.12" and python_version < "3.14"
Expand Down Expand Up @@ -49,7 +48,6 @@ joblib==1.4.2 ; python_version >= "3.12" and python_version < "3.14"
lemminflect==0.2.3 ; python_version >= "3.12" and python_version < "3.14"
libcst==1.5.1 ; python_version >= "3.12" and python_version < "3.14"
lz4==4.3.3 ; python_version >= "3.12" and python_version < "3.14"
macholib==1.16.3 ; python_version >= "3.12" and python_version < "3.14" and sys_platform == "darwin"
markdown-it-py==3.0.0 ; python_version >= "3.12" and python_version < "3.14"
markupsafe==3.0.2 ; python_version >= "3.12" and python_version < "3.14"
mdurl==0.1.2 ; python_version >= "3.12" and python_version < "3.14"
Expand All @@ -65,22 +63,18 @@ packaging==24.2 ; python_version >= "3.12" and python_version < "3.14"
parso==0.8.4 ; python_version >= "3.12" and python_version < "3.14"
pathspec==0.12.1 ; python_version >= "3.12" and python_version < "3.14"
pbr==6.1.0 ; python_version >= "3.12" and python_version < "3.14"
pefile==2023.2.7 ; python_version >= "3.12" and python_version < "3.14" and sys_platform == "win32"
platformdirs==4.3.6 ; python_version >= "3.12" and python_version < "3.14"
pluggy==1.5.0 ; python_version >= "3.12" and python_version < "3.14"
propcache==0.2.0 ; python_version >= "3.12" and python_version < "3.14"
py==1.11.0 ; python_version >= "3.12" and python_version < "3.14"
pydoclint==0.5.9 ; python_version >= "3.12" and python_version < "3.14"
pygments==2.18.0 ; python_version >= "3.12" and python_version < "3.14"
pyinstaller-hooks-contrib==2024.10 ; python_version >= "3.12" and python_version < "3.14"
pyinstaller==6.11.1 ; python_version >= "3.12" and python_version < "3.14"
pytest-cov==6.0.0 ; python_version >= "3.12" and python_version < "3.14"
pytest-sugar==1.0.0 ; python_version >= "3.12" and python_version < "3.14"
pytest-testmon==2.1.1 ; python_version >= "3.12" and python_version < "3.14"
pytest-watch==4.2.0 ; python_version >= "3.12" and python_version < "3.14"
pytest-xdist==3.6.1 ; python_version >= "3.12" and python_version < "3.14"
pytest==8.3.3 ; python_version >= "3.12" and python_version < "3.14"
pywin32-ctypes==0.2.3 ; python_version >= "3.12" and python_version < "3.14" and sys_platform == "win32"
pyyaml==6.0.2 ; python_version >= "3.12" and python_version < "3.14"
qprompt==0.16.3 ; python_version >= "3.12" and python_version < "3.14"
regex==2024.11.6 ; python_version >= "3.12" and python_version < "3.14"
Expand All @@ -91,7 +85,6 @@ rich-rst==1.3.1 ; python_version >= "3.12" and python_version < "3.14"
rich==13.9.4 ; python_version >= "3.12" and python_version < "3.14"
rstfmt==0.0.14 ; python_version >= "3.12" and python_version < "3.14"
ruff==0.8.0 ; python_version >= "3.12" and python_version < "3.14"
setuptools==75.6.0 ; python_version >= "3.12" and python_version < "3.14"
six==1.16.0 ; python_version >= "3.12" and python_version < "3.14"
smmap==5.0.1 ; python_version >= "3.12" and python_version < "3.14"
snowballstemmer==2.2.0 ; python_version >= "3.12" and python_version < "3.14"
Expand Down
7 changes: 0 additions & 7 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
altgraph==0.17.4 ; python_version >= "3.12" and python_version < "3.14"
ansicolors==1.1.8 ; python_version >= "3.12" and python_version < "3.14"
attrs==24.2.0 ; python_version >= "3.12" and python_version < "3.14"
blinker==1.9.0 ; python_version >= "3.12" and python_version < "3.14"
Expand All @@ -16,23 +15,17 @@ jinja2==3.1.4 ; python_version >= "3.12" and python_version < "3.14"
joblib==1.4.2 ; python_version >= "3.12" and python_version < "3.14"
lemminflect==0.2.3 ; python_version >= "3.12" and python_version < "3.14"
lz4==4.3.3 ; python_version >= "3.12" and python_version < "3.14"
macholib==1.16.3 ; python_version >= "3.12" and python_version < "3.14" and sys_platform == "darwin"
markdown-it-py==3.0.0 ; python_version >= "3.12" and python_version < "3.14"
markupsafe==3.0.2 ; python_version >= "3.12" and python_version < "3.14"
mdurl==0.1.2 ; python_version >= "3.12" and python_version < "3.14"
more-itertools==10.5.0 ; python_version >= "3.12" and python_version < "3.14"
nltk==3.9.1 ; python_version >= "3.12" and python_version < "3.14"
numpy==2.1.3 ; python_version >= "3.12" and python_version < "3.14"
packaging==24.2 ; python_version >= "3.12" and python_version < "3.14"
pefile==2023.2.7 ; python_version >= "3.12" and python_version < "3.14" and sys_platform == "win32"
pygments==2.18.0 ; python_version >= "3.12" and python_version < "3.14"
pyinstaller-hooks-contrib==2024.10 ; python_version >= "3.12" and python_version < "3.14"
pyinstaller==6.11.1 ; python_version >= "3.12" and python_version < "3.14"
pywin32-ctypes==0.2.3 ; python_version >= "3.12" and python_version < "3.14" and sys_platform == "win32"
regex==2024.11.6 ; python_version >= "3.12" and python_version < "3.14"
rich-rst==1.3.1 ; python_version >= "3.12" and python_version < "3.14"
rich==13.9.4 ; python_version >= "3.12" and python_version < "3.14"
setuptools==75.6.0 ; python_version >= "3.12" and python_version < "3.14"
tqdm==4.67.0 ; python_version >= "3.12" and python_version < "3.14"
typeguard==4.4.1 ; python_version >= "3.12" and python_version < "3.14"
typing-extensions==4.12.2 ; python_version >= "3.12" and python_version < "3.14"
Expand Down
2 changes: 0 additions & 2 deletions ruff.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
line-length = 79
unsafe-fixes = true
exclude = ["src/_vendor/**"]
include = ["*.spec"]

[lint]
preview = true
select = ["ALL"]
exclude = ["*.spec"]
ignore = [
"UP009",
"S101",
Expand Down
3 changes: 0 additions & 3 deletions scripts/build.sh

This file was deleted.

5 changes: 3 additions & 2 deletions src/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@
from cyclopts.types import UInt16

from src import __version__
from src.server.app import main as server_main
from src.server.app import main_dev as server_main_dev
from src.utils.logger import (
CustomHandler,
custom_formatwarning,
log_uncaught_exceptions,
)

from .server.app import main as server_main
from .server.app import main_dev as server_main_dev

# Initialise logger
logger = logging.getLogger()
logging.captureWarnings(capture=True)
Expand Down
11 changes: 3 additions & 8 deletions src/core/transfero/adj_to_adv.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,14 @@
from __future__ import annotations

import json
import logging
from pathlib import Path
from typing import Final

from .exceptions import InvalidWordError

logger: logging.Logger = logging.getLogger(__name__)

_data_file_path: Path = Path(__file__).parent / "adj_to_adv.json"

with open(_data_file_path, encoding="utf-8") as file:
with open(
Path(__file__).parent.absolute() / "adj_to_adv.json", encoding="utf-8"
) as file:
ADJECTIVE_TO_ADVERB: Final[dict[str, str]] = json.load(file)


Expand Down Expand Up @@ -50,8 +47,6 @@ def adj_to_adv(adjective: str) -> str:
>>> adj_to_adv("sad")
'sadly'
"""
logger.debug("adj_to_adv(%s)", adjective)

if adjective in ADJECTIVE_TO_ADVERB:
return ADJECTIVE_TO_ADVERB[adjective]

Expand Down
Loading

0 comments on commit cadae8d

Please sign in to comment.