-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathpyproject.toml
More file actions
93 lines (85 loc) · 2.61 KB
/
pyproject.toml
File metadata and controls
93 lines (85 loc) · 2.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "dkpro-cassis"
version = "0.11.0-dev"
requires-python = ">=3.9"
authors = [ { name = "The DKPro cassis team" } ]
maintainers = [ { name = "Richard Eckart de Castilho" } ]
description = "UIMA CAS processing library in Python"
readme = "README.rst"
license = {file = "LICENSE"}
keywords = []
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries",
"Topic :: Scientific/Engineering :: Human Machine Interfaces",
"Topic :: Text Processing :: Linguistic"
]
dependencies = [
"lxml~=6.0.2",
"attrs>=21.2,<26",
"sortedcontainers~=2.4",
"toposort~=1.10",
"more-itertools~=10.8.0",
"deprecation~=2.1",
"importlib_resources~=6.5.2"
]
[dependency-groups]
dev = [
"pytest>=8.3.5",
"pytest-lazy-fixtures~=1.4.0",
"pytest-cov~=7.0.0",
"lxml-asserts~=0.1.2",
"rstcheck~=6.2.5",
"docutils~=0.22.0",
"ruff~=0.9.10",
"taskipy",
"pyright"
]
doc = [
"sphinx",
"sphinx-autodoc-typehints",
"sphinx-rtd-theme",
"docutils~=0.22.0"
]
[project.urls]
Homepage = "https://dkpro.github.io"
Documentation = "https://cassis.readthedocs.io"
Repository = "https://github.com/dkpro/dkpro-cassis"
[tool.taskipy.tasks]
test = "pytest -m 'not performance' tests/"
test-cov = "pytest -m 'not performance' --cov=./ --cov-report=xml tests/"
format = "ruff format cassis/ tests/"
lint = "ruff check cassis/ tests/"
typecheck = "pyright cassis/ tests/"
fix = "ruff check --fix cassis/ tests/"
[tool.ruff]
line-length = 120
target-version = "py39"
[tool.ruff.lint]
# Equivalent to flake8's E9,F63,F7,F82 (syntax errors and undefined names)
select = [
"E9", # Runtime errors
"F63", # Invalid print syntax
"F7", # Syntax errors in type comments
"F82", # Undefined names in __all__
"F", # Pyflakes (includes undefined names, unused imports, etc.)
]
# Equivalent to flake8's --max-complexity=10
mccabe = { max-complexity = 10 }
[tool.ruff.lint.per-file-ignores]
# Allow star imports in test files for test utilities
"**/{tests,docs,tools}/*" = [ "F403", "F405" ]
[tool.pytest.ini_options]
testpaths = ["tests"]