Skip to content

Commit

Permalink
Merge pull request #72 from SekouDiaoNlp/dev
Browse files Browse the repository at this point in the history
Fixed typo in documentation
  • Loading branch information
SekouDiaoNlp committed May 13, 2021
2 parents 8c46520 + cc7e38b commit 9f612f5
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 10 deletions.
7 changes: 7 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
History
=======

1.3.1 (2021-05-12)
------------------

* Uses pandas for now for faster resource loading.
* Uses xlsb file for storage and faster load times
* Updated dependencies.

1.3.0 (2021-05-11)
------------------

Expand Down
2 changes: 1 addition & 1 deletion docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Usage
=====

.. NOTE:: The language of the lexical entries is French.
The cLexical Corpus is based on `Lexique383`_.
The Lexical Corpus is based on `Lexique383`_.
Also note that pylexique only works on Python 3.X.


Expand Down
2 changes: 1 addition & 1 deletion pylexique/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

__author__ = """SekouDiaoNlp"""
__email__ = 'diao.sekou.nlp@gmail.com'
__version__ = '1.3.0'
__version__ = '1.3.1'
__copyright__ = "Copyright (c) 2021, SekouDiaoNlp"
__credits__ = ("Lexique383",)
__license__ = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions pylexique/pylexique.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def __init__(self, lexique_path: Optional[str] = None) -> None:
try:
self._parse_lexique(self.lexique_path)
except UnicodeDecodeError:
sys.exit(0)
raise UnicodeDecodeError(f"There was a unicod error while parsing {type(lexique_path)}.")
except FileNotFoundError:
if isinstance(lexique_path, str):
raise ValueError(f"Argument 'lexique_path' must be a valid path to Lexique383")
Expand All @@ -143,7 +143,7 @@ def __init__(self, lexique_path: Optional[str] = None) -> None:
# Tries to load the pre-shipped Lexique38X if no path file to the lexicon is provided.
self._parse_lexique(_RESOURCE_PATH)
except UnicodeDecodeError:
sys.exit(0)
raise UnicodeDecodeError(f"There was a unicod error while parsing {type(lexique_path)}.")
except FileNotFoundError:
if isinstance(_RESOURCE_PATH, str):
raise ValueError(f"Argument 'lexique_path' must be a valid path to Lexique383")
Expand Down
9 changes: 4 additions & 5 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 1.3.0
current_version = 1.3.1
commit = True
tag = True

Expand All @@ -21,8 +21,7 @@ exclude = docs
test = pytest

[tool:pytest]
filtererrors =
error
ignore::SystemExit
filtererrors =
error
ignore::SystemExit
collect_ignore = ['setup.py']

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@
test_suite='tests',
tests_require=test_requirements,
url='https://github.com/SekouDiaoNlp/pylexique',
version='1.3.0',
version='1.3.1',
zip_safe=False,
)

0 comments on commit 9f612f5

Please sign in to comment.