-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
135 lines (124 loc) · 3.4 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
[build-system]
requires = ["flit_core >=3.4"]
build-backend = "flit_core.buildapi"
[project]
name = "rred_reports"
authors = [
{ name = "UCL ARC", email = "[email protected]" },
]
description = "Extract RRED data from REDCap, transforms and populate templates. Allows automated sending of reports via email"
readme = "README.md"
requires-python = ">=3.9"
classifiers = [
"Development Status :: 1 - Planning",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering",
]
dynamic = ["version"]
dependencies = [
"exchangelib == 4.9.0",
"docx2pdf == 0.1.8",
"dynaconf == 3.2.5",
"loguru == 0.6.0",
"openpyxl == 3.1.1",
"pandas == 1.5.3",
"pandas-dataclasses == 0.12.0",
"pypdf == 3.8.1",
"python-docx == 0.8.11",
"numpy == 1.24.2",
"tabulate == 0.9.0",
"tomli == 2.0.1",
"tomli-w == 1.0.0",
"typer == 0.7.0",
"msal == 1.29.0"
]
[project.optional-dependencies]
test = [
"pytest >=7",
"pytest-cov >=4",
"pytest-mock >=3.10.0",
"email-validator==1.3.0",
"loguru_caplog >= 0.2.0",
]
dev = [
"pytest >=7",
"pytest-cov >=4",
"pytest-mock >=3.10.0",
"pre-commit >= 3",
"loguru_caplog >= 0.2.0",
]
[project.urls]
Homepage = "https://github.com/UCL-ARC/rred-reports"
"Bug Tracker" = "https://github.com/UCL-ARC/rred-reports/issues"
Wiki = "https://github.com/UCL-ARC/rred-reports/wiki"
Changelog = "https://github.com/UCL-ARC/rred-reports/releases"
[project.scripts]
rred = "rred_reports.cli:app"
[tool.pytest.ini_options]
minversion = "7.0"
addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config"]
xfail_strict = true
filterwarnings = ["error"]
log_cli_level = "INFO"
testpaths = [
"tests",
]
[tool.black]
line-length = 150
[tool.ruff]
select = [
"E", "F", "W", # flake8
"B", "B904", # flake8-bugbear
"I", # isort
"ARG", # flake8-unused-arguments
"C4", # flake8-comprehensions
"EM", # flake8-errmsg
"ICN", # flake8-import-conventions
"ISC", # flake8-implicit-str-concat
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"RET", # flake8-return
"RUF", # Ruff-specific
"SIM", # flake8-simplify
"T20", # flake8-print
"UP", # pyupgrade
"YTT", # flake8-2020
]
extend-ignore = ["PLR", "E501"]
line-length = 150
target-version = "py39"
typing-modules = ["rred_reports._compat.typing"]
src = ["src"]
unfixable = ["T20", "F841"]
exclude = ["cli.py"]
[tool.ruff.per-file-ignores]
"tests/**" = ["T20"]
"noxfile.py" = ["T20"]
"src/rred_reports/reports/interface.py" = ["I001"]
"tests/test_redcap_interface.py" = ["PT004", "ARG001"]
[tool.pylint]
py-version = "3.9"
ignore-paths= ["src/rred_reports/_version.py"]
reports.output-format = "colorized"
similarities.ignore-imports = "yes"
messages_control.disable = [
"design",
"fixme",
"line-too-long",
"missing-module-docstring",
"wrong-import-position",
"abstract-class-instantiated"
]
generated-members= "pandas.*"