-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
170 lines (155 loc) · 5.45 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
[build-system]
requires = ["setuptools >=65.0.0"]
build-backend = "setuptools.build_meta"
[project]
name = "duty-board"
authors = [{name = "Jorrick Sleijster", email = "[email protected]"}]
description = "Package to display an overview of all active Duty rosters you have at your Company using iCalendars."
readme = "README.md"
license = {file = "LICENSE"}
classifiers = [
"Intended Audience :: Information Technology",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Communications",
"Topic :: Communications :: Conferencing",
"Topic :: Office/Business",
"Topic :: Office/Business :: Office Suites",
"Topic :: Internet",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Typing :: Typed",
"License :: OSI Approved :: MIT License",
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
dynamic = ["version"]
requires-python = ">=3.8"
dependencies = [
"alembic >=1.12.1, < 2.0.0",
"fastapi >= 0.87.0",
"gunicorn >= 21.2.0",
"ical-library >= 0.1.0",
"itsdangerous >= 2.1.2",
"pendulum >= 2.0.0,<3.0.0",
"prometheus-client >= 0.20.0",
"prometheus-fastapi-instrumentator >= 6.1.0",
"psycopg2-binary >= 2.9.0",
"pydantic >= 2.4.0,<3.0.0",
"pytz >= 2022.6",
"requests >= 2.28.1",
"sqladmin >= 0.8.0",
"sqlalchemy >= 2.0.23, < 3.0.0",
"tzlocal >= 4.2",
"uvicorn >= 0.20.0"
]
[project.optional-dependencies]
doc = [
"mkdocs >= 1.3.0, < 2.0.0",
"mkdocs-material >= 8.3.9, < 9.0.0",
"mkdocstrings[python] >= 0.19.0, < 1.0.0",
"termynal >= 0.2.0, < 1.0.0",
]
dev = [
"docker>=6.1.3,<7.0.0",
"httpx >=0.25.2, < 1.0.0", # For FastAPI test client
"ruff >= 0.1.4, < 1.0.0", # For formatting & linting
"mypy >= 1.6.1,<2.0.0", # For type checking
"pre-commit >= 2.19.0, < 3.0.0", # To ensure code quality on point of commint
"pytest >= 7.4.3, < 8.0.0", # For running tests
"pytest-cov >= 4.0.0, < 5.0.0", # For getting tests coverage
"pytest-asyncio >= 0.21.1, < 1.0.0", # For running async tests
"requests_mock >=1.11.0 , < 2.0.0", # For mocking the iCalendar response in tests
"sqlalchemy[mypy] >= 2.0.23, < 3.0.0", # For getting the SQLAlchemy mypy plugin
"types-pytz >= 2022.6.0.1", # To get types on pytz
"types-tzlocal >= 4.2.2.0", # To get types of tzlocal
]
ldap = [
"ldap3 >= 2.9.1, <3.0.0",
"Pillow >= 10.1.0, <11.0.0"
]
[project.urls]
Home = "https://github.com/Jorricks/DutyBoard"
Documentation = "https://github.com/Jorricks/DutyBoard"
Source = "https://github.com/Jorricks/DutyBoard"
PullRequests = "https://github.com/Jorricks/DutyBoard/pulls"
Issues = "https://github.com/Jorricks/DutyBoard/issues"
[project.scripts]
DutyBoard = "duty_board.__main__:cli"
[tool.setuptools.dynamic]
version = {attr = "duty_board.__version__"}
#readme = {file = "README.md"}
[tool.setuptools.packages.find]
where = ["."] # list of folders that contain the packages (["."] by default)
include = ["duty_board*"] # package names should match these glob patterns (["*"] by default)
exclude = [] # exclude packages matching these glob patterns (empty by default)
namespaces = false # to disable scanning PEP 420 namespaces (true by default)
[tool.ruff]
fix = true
ignore = ["E501", "TRY003", "ERA001", "N812", "COM812"]
line-length = 120
target-version = "py38"
select = [
'F', # pyflakes
'E', # pycodestlyes errors
'W', # pycodestyles warnings
'I', # isort
'N', # PEP8-naming
'UP', # pyupgrade
'S', # flake8-bandit
'B', # flake8-bugbear
'COM', # flake8-commas
'C4', # flake8-comprehensions
'T10', # flake8-debugger
'DTZ', # flake8-datetimez
'INP', # flake8-no-pep420
'PIE', # flake8-pie
'T20', # flake8-print
'PT', # flake8-pytest
'Q', # flake8-quotes
'RET', # flake8-return
'SIM', # flake8-simplify
'ARG', # flake8-unused-arguments
'PTH', # flake8-use-pathlib
'ERA', # eradicate (discuss)
'PL', # pylint
'TRY', # tryceratops
'RUF', # ruff
'C' # Macarbe
]
[tool.ruff.per-file-ignores]
"duty_board/alembic/**" = ["N999"] # Do not error about invalid name
"duty_board/alchemy/add_sqladmin.py" = ["RUF012"] # Ignore missing ClassVar annotation.
"duty_board/models/generate_fake_data.py"= ["S311", "PLR2004"] # Allow pseudo-random & magic values
"duty_board/web_helpers/generate_typescript_api.py" = ["T201", "T203"]
"tests/*" = ["ARG001", "S101", "PLR2004", "T201"] # assert is allowed in test files
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.isort]
known-first-party = ["duty_board"]
section-order=["future", "standard-library", "third-party", "first-party", "local-folder"]
[tool.mypy]
python_version = "3.8"
ignore_missing_imports = "True"
scripts_are_modules = "True"
plugins = ["sqlalchemy.ext.mypy.plugin"]
[[tool.mypy.overrides]]
module = [
"pytz",
"pytz.exceptions",
"pytz.tzinfo",
"tzlocal"
]
ignore_missing_imports = true
[tool.coverage.run]
omit = [
"duty_board/web_helpers/generate_typescript_api.py"
]