2022-02-08 23:24:36 +00:00
|
|
|
[tool.poetry]
|
|
|
|
name = "wordfreq"
|
2023-11-21 23:08:47 +00:00
|
|
|
version = "3.1.1"
|
2022-02-08 23:24:36 +00:00
|
|
|
description = "Look up the frequencies of words in many languages, based on many sources of data."
|
|
|
|
authors = ["Robyn Speer <rspeer@arborelia.net>"]
|
2022-10-25 18:20:23 +00:00
|
|
|
license = "Apache-2.0"
|
2022-03-10 23:33:42 +00:00
|
|
|
readme = "README.md"
|
2022-03-11 15:43:37 +00:00
|
|
|
homepage = "https://github.com/rspeer/wordfreq/"
|
2022-02-08 23:24:36 +00:00
|
|
|
|
|
|
|
[tool.poetry.dependencies]
|
2023-11-21 23:07:04 +00:00
|
|
|
python = ">= 3.8, < 4"
|
|
|
|
msgpack = "^1.0.7"
|
2022-02-08 23:24:36 +00:00
|
|
|
langcodes = ">= 3.0"
|
2023-11-21 23:07:04 +00:00
|
|
|
regex = ">= 2023.10.3"
|
2022-02-18 16:33:28 +00:00
|
|
|
ftfy = ">= 6.1"
|
2023-11-21 23:07:04 +00:00
|
|
|
mecab-python3 = { version = "^1.0.5", optional = true }
|
|
|
|
ipadic = { version = "^1.0.0", optional = true }
|
|
|
|
mecab-ko-dic = { version = "^1.0.0", optional = true }
|
|
|
|
jieba = { version = ">=0.42", optional = true }
|
|
|
|
locate = "^1.1.1"
|
2022-02-08 23:24:36 +00:00
|
|
|
|
2023-11-21 23:07:04 +00:00
|
|
|
[tool.poetry.group.dev.dependencies]
|
2022-10-25 18:25:00 +00:00
|
|
|
pytest = "^7.2.0"
|
2023-11-21 23:07:04 +00:00
|
|
|
mecab-python3 = "^1.0.5"
|
|
|
|
jieba = "^0.42.1"
|
2022-02-08 23:24:36 +00:00
|
|
|
ipadic = "^1.0.0"
|
|
|
|
mecab-ko-dic = "^1.0.0"
|
|
|
|
ipython = ">=7"
|
2023-11-21 23:07:04 +00:00
|
|
|
mypy = "^1.7.0"
|
|
|
|
ruff = "^0.1.6"
|
|
|
|
setuptools = "^69.0.2" # implicit dependency in jieba
|
|
|
|
pytest-profiling = "^1.7.0"
|
2022-02-08 23:24:36 +00:00
|
|
|
|
2022-03-11 15:43:37 +00:00
|
|
|
[tool.poetry.extras]
|
2022-09-25 05:26:17 +00:00
|
|
|
cjk = ["mecab-python3", "ipadic", "mecab-ko-dic", "jieba"]
|
2022-03-11 15:43:37 +00:00
|
|
|
mecab = ["mecab-python3", "ipadic", "mecab-ko-dic"]
|
2022-09-25 05:26:17 +00:00
|
|
|
jieba = ["jieba"]
|
2022-03-11 15:43:37 +00:00
|
|
|
|
2023-11-21 23:07:04 +00:00
|
|
|
[tool.ruff]
|
|
|
|
# ruff is a Python linter and formatter, which reimplements black, flake8, pylint, and more
|
|
|
|
line-length = 99
|
|
|
|
show-fixes = true
|
|
|
|
src = ["src"]
|
|
|
|
target-version = "py38"
|
|
|
|
|
|
|
|
[tool.ruff.lint]
|
|
|
|
extend-select = [
|
|
|
|
"D", # docstring style
|
|
|
|
"I", # isort
|
|
|
|
"UP", # pyupgrade -- catches obsolete code patterns
|
|
|
|
"ANN", # type annotations
|
|
|
|
"ASYNC", # async code checks
|
|
|
|
"B", # flake8-bugbear -- catches bug-prone usage
|
|
|
|
"C4", # list comprehensions
|
|
|
|
"FA", # correct use of `from __future__ import annotations`
|
|
|
|
"INP", # checks for presence of __init__.py
|
|
|
|
"T20", # print statements
|
|
|
|
"TID", # tidy imports
|
|
|
|
"PTH", # use pathlib instead of os.path
|
|
|
|
"PLE", # pylint errors
|
|
|
|
]
|
|
|
|
ignore = [
|
|
|
|
"D100", # modules without top-of-module docstrings are okay
|
|
|
|
"D104", # __init__.py doesn't need a docstring
|
|
|
|
"D107", # __init__ method doesn't need a docstring
|
|
|
|
"D2", # don't check whitespace in docstrings
|
|
|
|
"D4", # don't check grammar and style in docstrings
|
|
|
|
"E501", # long lines after auto-formatting, such as long strings, are okay
|
|
|
|
"ANN002", # we don't demand a type on *args, particularly because it's difficult to specify
|
|
|
|
"ANN003", # we don't demand a type on **kwargs, particularly because it's difficult to specify
|
|
|
|
"ANN101", # self does not need a type
|
|
|
|
"ANN102", # `cls` in classmethod does not need a type
|
|
|
|
"PTH123", # we don't need to construct a Path just to open a file by filename
|
|
|
|
]
|
|
|
|
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
|
|
# We are less strict about test code
|
|
|
|
"tests/**" = ["D", "ANN", "T20", "INP"]
|
|
|
|
|
2022-02-08 23:24:36 +00:00
|
|
|
[build-system]
|
|
|
|
requires = ["poetry-core>=1.0.0"]
|
|
|
|
build-backend = "poetry.core.masonry.api"
|