forked from WycliffeAssociates/DOC
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
99 lines (98 loc) · 2.47 KB
/
Copy pathpyproject.toml
File metadata and controls
99 lines (98 loc) · 2.47 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
94
95
96
97
98
99
[project]
name = "DOC"
version = "2025.05.26"
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
]
license = "MIT"
# We use pip-tools to generate requirements.txt files for pinned
# dependences, but this stanza is for other projects relying on DOC as
# a package to take advantage of it as a library.
dependencies = [
"aiofiles",
"celery",
"celery-types",
"docxtpl",
"fastapi[all]",
"filelock",
"flower",
"html-for-docx",
"html2docx",
"gunicorn",
"jinja2",
"orjson",
"pydantic",
"email-validator",
"python-dotenv",
"pyyaml",
"redis",
"requests",
"termcolor",
"toolz",
"uvicorn",
"weasyprint",
"types-PyYAML",
"types-Markdown",
"types-beautifulsoup4",
"types-ujson",
"types-orjson",
"types-requests",
"types-termcolor",
"types-toml",
"types-setuptools",
]
[build-system]
requires = [
"setuptools>=61",
"wheel",
"cython",
"mypy",
]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["backend", "tests"]
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = ["tests"]
log_cli = true
addopts = [
"--tb=long",
"--showlocals",
# "-x",
# "--pdb",
# "--maxfail=4",
# "--last-failed",
"--failed-first",
# "--log-file=tests_output.log",
"--log-cli-level=DEBUG",
"--strict-markers",
]
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::SyntaxWarning",
]
markers = [
"datafiles", # : Load datafiles fixture
"slow", # : Marks tests as slow (deselect with '-m "not slow"')
"randomized", # : Tests that are randomly built combinatorically at runtime using fixtures and not suitable for ci/cd production runs
"english_randomized", # Tests that are randomly selected
# combinatorically for English at runtime using fixtures and not suitable for
# ci/cd production runs
"docx", # : Marks the majority of tests that test generation of docx output so that they can be run in isolation during development.
"all", # : Marks a single test which exercises potentially all languages.
"focus", # : Marks a subset of tests which we want to run instead
# of the whole suite
"stet", # : Marks tests for the STET system
"passages", # : Marks tests for the PASSAGES system
"usfm_fixes", # : Marks test for programmatically fixed USFM
]
# Speed up pytest collection times
norecursedirs = [
"docs",
"*.egg-info",
".git",
]
[tool.isort]
profile = "black"
multi_line_output = 3