From f49a4bcf5e22f4de7f7468e1a5e558dc4e21427d Mon Sep 17 00:00:00 2001 From: p-goulart Date: Fri, 12 Jan 2024 19:22:59 +0100 Subject: [PATCH] Try fixing some more stuff --- .github/workflows/pytest.yml | 2 +- poetry.lock | 24 +++++++++---------- pt_dict/console_utils.py | 2 +- pt_dict/dicts/hunspell.py | 2 +- pt_dict/dicts/tagger.py | 2 +- pt_dict/scripts/check_word.py | 2 +- .../scripts/{test_words.py => word_test.py} | 2 +- 7 files changed, 18 insertions(+), 18 deletions(-) rename pt_dict/scripts/{test_words.py => word_test.py} (97%) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index d78c6bb..cb32447 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -39,7 +39,7 @@ jobs: - name: Pytest uses: pavelzw/pytest-action@v2 with: - custom-pytest: "poetry run pytest" + custom-pytest: "poetry run pytest test" emoji: true verbose: true job-summary: true diff --git a/poetry.lock b/poetry.lock index d4d8c9e..ec72e56 100644 --- a/poetry.lock +++ b/poetry.lock @@ -524,13 +524,13 @@ test = ["flaky", "ipyparallel", "pre-commit", "pytest (>=7.0)", "pytest-asyncio" [[package]] name = "ipython" -version = "8.19.0" +version = "8.20.0" description = "IPython: Productive Interactive Computing" optional = false python-versions = ">=3.10" files = [ - {file = "ipython-8.19.0-py3-none-any.whl", hash = "sha256:2f55d59370f59d0d2b2212109fe0e6035cfea436b1c0e6150ad2244746272ec5"}, - {file = "ipython-8.19.0.tar.gz", hash = "sha256:ac4da4ecf0042fb4e0ce57c60430c2db3c719fa8bdf92f8631d6bd8a5785d1f0"}, + {file = "ipython-8.20.0-py3-none-any.whl", hash = "sha256:bc9716aad6f29f36c449e30821c9dd0c1c1a7b59ddcc26931685b87b4c569619"}, + {file = "ipython-8.20.0.tar.gz", hash = "sha256:2f21bd3fc1d51550c89ee3944ae04bbc7bc79e129ea0937da6e6c68bfdbf117a"}, ] [package.dependencies] @@ -593,13 +593,13 @@ testing = ["Django", "attrs", "colorama", "docopt", "pytest (<7.0.0)"] [[package]] name = "jinja2" -version = "3.1.2" +version = "3.1.3" description = "A very fast and expressive template engine." optional = false python-versions = ">=3.7" files = [ - {file = "Jinja2-3.1.2-py3-none-any.whl", hash = "sha256:6088930bfe239f0e6710546ab9c19c9ef35e29792895fed6e6e31a023a182a61"}, - {file = "Jinja2-3.1.2.tar.gz", hash = "sha256:31351a702a408a9e7595a8fc6150fc3f43bb6bf7e319770cbc0db9df9437e852"}, + {file = "Jinja2-3.1.3-py3-none-any.whl", hash = "sha256:7d6d50dd97d52cbc355597bd845fabfbac3f551e1f99619e39a35ce8c370b5fa"}, + {file = "Jinja2-3.1.3.tar.gz", hash = "sha256:ac8bd6544d4bb2c9792bf3a159e80bba8fda7f07e81bc3aed565432d5925ba90"}, ] [package.dependencies] @@ -632,13 +632,13 @@ test = ["coverage", "ipykernel (>=6.14)", "mypy", "paramiko", "pre-commit", "pyt [[package]] name = "jupyter-core" -version = "5.6.1" +version = "5.7.1" description = "Jupyter core package. A base package on which Jupyter projects rely." optional = false python-versions = ">=3.8" files = [ - {file = "jupyter_core-5.6.1-py3-none-any.whl", hash = "sha256:3d16aec2e1ec84b69f7794e49c32830c1d950ad149526aec954c100047c5f3a7"}, - {file = "jupyter_core-5.6.1.tar.gz", hash = "sha256:5139be639404f7f80f3db6f687f47b8a8ec97286b4fa063c984024720e7224dc"}, + {file = "jupyter_core-5.7.1-py3-none-any.whl", hash = "sha256:c65c82126453a723a2804aa52409930434598fd9d35091d63dfb919d2b765bb7"}, + {file = "jupyter_core-5.7.1.tar.gz", hash = "sha256:de61a9d7fc71240f688b2fb5ab659fbb56979458dc66a71decd098e03c79e218"}, ] [package.dependencies] @@ -1935,13 +1935,13 @@ colorama = {version = ">=0.4.6", markers = "sys_platform == \"win32\" and python [[package]] name = "wcwidth" -version = "0.2.12" +version = "0.2.13" description = "Measures the displayed width of unicode strings in a terminal" optional = false python-versions = "*" files = [ - {file = "wcwidth-0.2.12-py2.py3-none-any.whl", hash = "sha256:f26ec43d96c8cbfed76a5075dac87680124fa84e0855195a6184da9c187f133c"}, - {file = "wcwidth-0.2.12.tar.gz", hash = "sha256:f01c104efdf57971bcb756f054dd58ddec5204dd15fa31d6503ea57947d97c02"}, + {file = "wcwidth-0.2.13-py2.py3-none-any.whl", hash = "sha256:3da69048e4540d84af32131829ff948f1e022c1c6bdb8d6102117aac784f6859"}, + {file = "wcwidth-0.2.13.tar.gz", hash = "sha256:72ea0c06399eb286d978fdedb6923a9eb47e1c486ce63e9b4e64fc18303972b5"}, ] [[package]] diff --git a/pt_dict/console_utils.py b/pt_dict/console_utils.py index d167d30..9e20c2e 100644 --- a/pt_dict/console_utils.py +++ b/pt_dict/console_utils.py @@ -3,7 +3,7 @@ from spylls.hunspell import Dictionary -from pt_dict.constants import HUNSPELL_DIR +from dict_tools.lib.constants import HUNSPELL_DIR from dict_tools.lib.variant import Variant, PT_BR, PT_PT_90, PT_PT_45 diff --git a/pt_dict/dicts/hunspell.py b/pt_dict/dicts/hunspell.py index d05a608..ef3b342 100644 --- a/pt_dict/dicts/hunspell.py +++ b/pt_dict/dicts/hunspell.py @@ -1,6 +1,6 @@ import re -from pt_dict.constants import LATIN_1_ENCODING +from dict_tools.lib.constants import LATIN_1_ENCODING from pt_dict.dicts.dictionary import Dictionary from dict_tools.lib.variant import VARIANT_MAPPING diff --git a/pt_dict/dicts/tagger.py b/pt_dict/dicts/tagger.py index 16b5e66..ec5f679 100644 --- a/pt_dict/dicts/tagger.py +++ b/pt_dict/dicts/tagger.py @@ -1,7 +1,7 @@ import re from os import path -from pt_dict.constants import TAGGER_DICT_DIR +from dict_tools.lib.constants import TAGGER_DICT_DIR from pt_dict.dicts.dictionary import Dictionary diff --git a/pt_dict/scripts/check_word.py b/pt_dict/scripts/check_word.py index a2d04f1..587a6e5 100644 --- a/pt_dict/scripts/check_word.py +++ b/pt_dict/scripts/check_word.py @@ -5,7 +5,7 @@ import argparse from typing import List -from pt_dict.constants import LATIN_1_ENCODING +from dict_tools.lib.constants import LATIN_1_ENCODING from pt_dict.dicts.dictionary import Dictionary from pt_dict.dicts.hunspell import HunspellDict from dict_tools.lib.variant import VARIANT_MAPPING diff --git a/pt_dict/scripts/test_words.py b/pt_dict/scripts/word_test.py similarity index 97% rename from pt_dict/scripts/test_words.py rename to pt_dict/scripts/word_test.py index 767d66a..4c4df10 100644 --- a/pt_dict/scripts/test_words.py +++ b/pt_dict/scripts/word_test.py @@ -4,7 +4,7 @@ from spylls.hunspell import Dictionary -from pt_dict.constants import HUNSPELL_DIR +from dict_tools.lib.constants import HUNSPELL_DIR from dict_tools.lib.variant import PT_BR