-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
112 lines (101 loc) · 2.29 KB
/
pyproject.toml
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
[build-system]
requires = ["setuptools>=60.0.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "pecore"
description = "Plausibility Evaluation of Context Reliance"
readme = "README.md"
license = { file = "LICENSE" }
authors = [
{name = "Gabriele Sarti", email = "[email protected]"},
]
version = "0.1.0"
requires-python = ">=3.8"
dependencies = [
"numpy",
"pandas",
"sacrebleu",
"datasets",
"torch",
"transformers",
"inseq",
"tqdm",
"scikit-learn",
"stanza",
"strenum",
"sentencepiece",
"tqdm",
"unbabel-comet",
"black",
"pytest",
"ruff",
]
[project.urls]
homepage = "https://github.com/gsarti/pecore"
[project.scripts]
pecore-viz = "pecore.cli:pecore_viz"
[tool.setuptools]
py-modules = ["pecore"]
[tool.ruff]
target-version = "py38"
exclude = [
".git",
".vscode",
".github",
"__pycache__",
"docs/source/conf.py",
"old",
"build",
"htmlcov",
"dev_examples",
"dist",
".tox",
"temp",
"*.egg",
"venv",
".venv",
]
fix = true
ignore = [
"B006", # mutable default argument
"C901", # function too complex
"E501", # line too long (handled by format)
"E731", # do not assign a lambda expression, use a def
"E741", # ambiguous variable name
"F722", # syntax error in forward annotation (as used by jaxtyping)
"F821", # undefined name
"PLR2004", # unnamed numerical constants used
"PLR0912", # too many branches
"PLR0913", # too many arguments
"PLR0915", # too many statements
"W191", # indentation contains tabs (handled by format)
]
line-length = 119
select = [
"E", # pycodestyle errors
"F", # pyflakes
"W", # pycodestyle warnings
"C", # flake8-comprehensions
#"D", # flake8-docstrings
"B", # flake8-bugbear
"I", # isort
"UP", # flake8-pyupgrade
"PLC", # flake8-pylint
"PLE", # flake8-pylint
"PLR", # flake8-pylint
"PLW", # flake8-pylint
]
src = ["pecore", "scripts", "tests"]
extend-include = ["*.ipynb"]
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"]
"**/examples/*" = ["B018", "E402"]
[tool.ruff.isort]
known-first-party = ["inseq"]
order-by-type = true
[tool.ruff.pylint]
max-branches = 20
[tool.ruff.pyupgrade]
keep-runtime-typing = true
[tool.ruff.pydocstyle]
convention = "google"