3 Star 6 Fork 7

tanloong / neosca

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
pyproject.toml 2.83 KB
一键复制 编辑 原始数据 按行查看 历史
tanloong 提交于 2024-03-24 01:04 . chore: fix lints
# https://packaging.python.org/en/latest/guides/writing-pyproject-toml/
# https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "neosca"
dynamic = ["version"]
license = {text = "GNU GPLv3"}
authors = [{"name" = "Tan, Long", "email" = "tanloong@foxmail.com"},]
description = "Fork of L2SCA and LCA"
readme = "README.md"
requires-python = ">=3.10"
keywords = ["L2SCA", "Syntactic Complexity", "LCA", "Lexical Complexity", "Constituency Parsing", "Tregex", "Corpus Linguistics"]
classifiers=[
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.10",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
]
dependencies = [
"charset_normalizer>=3.3.2",
"openpyxl>=3.1.2",
"pyinstaller>=6.1.0",
"pyqt5>=5.15",
"stanza>=1.8.1",
]
[project.urls]
Homepage = "https://github.com/tanloong/neosca"
# Documentation = "https://readthedocs.org"
Issues = "https://github.com/tanloong/neosca/issues"
Changelog = "https://github.com/tanloong/neosca/blob/master/CHANGELOG.md"
[project.scripts]
nsca = "neosca.ns_main_cli:main_cli"
nsca-lca = "neosca.ns_lca.main:lca_main"
[tool.setuptools.dynamic]
version = {attr = "neosca.ns_about.__version__"}
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
neosca = ["ns_data/*"]
[tool.setuptools.exclude-package-data]
neosca = [
"ns_data/stanza_resources/en/depparse",
"ns_data/stanza_resources/en/ner",
"ns_data/stanza_resources/en/sentiment",
"ns_data/stanza_resources/en/default.zip",
"ns_data/stanza_resources/zh-hans",
"ns_data/cache",
"ns_data/settings.ini",
]
# Ruff complete options: https://docs.astral.sh/ruff/settings/#extend
[tool.ruff]
line-length = 112
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # Pyflakes
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"I", # isort
]
ignore = [
"E501",
"B011",
"UP038", # 'isinstance(x, int | float)' causes slower code
]
[tool.ruff.lint.flake8-type-checking]
# Add quotes around type annotations, if doing so would allow
# an import to be moved into a type-checking block.
quote-annotations = true
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.mypy]
# https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-library-stubs-or-py-typed-marker
ignore_missing_imports = true
[tool.pyright]
reportIncompatibleMethodOverride = false
reportOptionalMemberAccess = false
reportGeneralTypeIssues = false
1
https://gitee.com/tanloong/neosca.git
git@gitee.com:tanloong/neosca.git
tanloong
neosca
neosca
master

搜索帮助