-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
106 lines (93 loc) · 2.85 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "hadal"
description = "Tool for mining/alignment parallel texts"
readme = "README.md"
license = { file = "LICENSE" }
authors = [{ name = "Pavel Stepachev" }]
maintainers = [{ name = "Pavel Stepachev" }]
keywords = [
"machine translation",
"parallel corpora",
"text alignment",
"text processing",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
requires-python = ">=3.10"
dependencies = ["transformers>=4.0", "tqdm"]
dynamic = ["version"]
[project.optional-dependencies]
dev = ["black>=23.11", "coverage>=7.3", "pytest>=7.4", "pytest-cov>=4.1"]
docs = [
"mkdocs-material>=9.4",
"mkdocs-section-index>=0.3.8",
"mkdocs-gen-files>=0.5.0",
"mkdocs-literate-nav>=0.6.1",
"mkdocstrings>=0.23.0",
"mkdocstring-python>=1.7.3",
"pymdown-extensions>=10.3.1",
]
[project.urls]
"Homepage" = "https://github.com/rggdmonk/hadal"
"Bug Reports" = "https://github.com/rggdmonk/hadal/issues"
"Source" = "https://github.com/rggdmonk/hadal"
[tool.hatch.version]
path = "hadal/__init__.py"
[tool.ruff]
include = ["*.py", "*.pyi", "**/pyproject.toml", "*.ipynb"]
select = [
"E", # pycodestyle (E)
"W", # pycodestyle (W)
"F", # Pyflakes (F)
"I", # isort (I)
"B", # flake8-bugbear (B)
"N", # pep8-naming (N)
"UP", # pyupgrade (UP)
"FBT", # flake8-boolean-trap (FBT)
"A", # flake8-builtins (A)
"C4", # flake8-comprehensions (C4)
"EM", # flake8-errmsg (EM)
"G", # flake8-logging-format (G)
"PIE", # flake8-pie (PIE)
"PYI", # flake8-pyi (PYI)
"PT", # flake8-pytest-style (PT)
"SIM", # flake8-simplify (SIM)
"TCH", # flake8-type-checking (TCH)
"ARG", # flake8-unused-arguments (ARG)
"PTH", # flake8-use-pathlib (PTH)
"PL", # Pylint (PL)
"TRY", # tryceratops (TRY)
"NPY", # NumPy-specific rules (NPY)
"PERF", # Perflint (PERF)
"RUF", # Ruff-specific rules (RUF)
"ANN",
"FA",
"D",
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"PLR0913", # too many arguments in function call
"ANN101", # missing type annotation for self in method
]
[tool.ruff.per-file-ignores]
"hadal/tests/*" = ["ANN001", "ANN201", "S101", "ARG", "FBT", "D"]
"*.ipynb" = ["D100"]
"hadal/__init__.py" = ["D104"]
[tool.ruff.pydocstyle]
convention = "google"
[tool.black]
line-length = 130
[tool.pytest.ini_options]
pythonpath = ["."]
addopts = ["--cov=hadal", "--cov-report=html:coverage_report_html"]
filterwarnings = [
"ignore:.*distutils Version classes are deprecated. Use packaging.version instead*:DeprecationWarning", # faiss and setuptools
]
[tool.coverage.run]
omit = ["*/tests/*", "*/__init__.py"]