-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
122 lines (111 loc) · 2.84 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "swift-browser-ui"
dynamic = ["version"]
description = "Object browser Web UI for Openstack Swift API"
readme = "README.md"
requires-python = ">=3.12"
license = "MIT"
authors = [
{ name = "CSC Developers" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.12",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
]
dependencies = [
"aiohttp-session==2.12.1",
"aiohttp==3.10.10",
"redis==5.1.1",
"asyncpg==0.29.0",
"certifi==2024.8.30",
"click==8.1.7",
"cryptography==43.0.1",
"gunicorn==23.0.0",
"keystoneauth1==5.8.0",
"oidcrp==2.1.4",
"python-swiftclient==4.6.0",
"uvloop==0.20.0",
"msgpack==1.1.0",
]
[project.optional-dependencies]
docs = [
"sphinx==7.4.7",
"sphinx_rtd_theme==2.0.0",
]
test = [
"black==24.10.0",
"coverage==7.6.3",
"flake8-docstrings==1.7.0",
"flake8==7.1.1",
"mypy==1.12.0",
"pytest-cov==5.0.0",
"pytest-xdist==3.6.1",
"pytest==8.3.3",
"tox==4.21.2",
"setuptools==71.1.0",
]
ui_test = [
"pytest-timeout==2.3.1",
"pytest==8.3.3",
]
dev = [
"honcho==2.0.0",
"pre-commit==3.8.0",
"pyspelling==2.10",
"ruff==0.6.9",
"types-certifi",
"types-redis",
"types-requests",
]
[project.scripts]
swift-browser-ui = "swift_browser_ui.launcher:run_ui"
swift-sharing-request = "swift_browser_ui.launcher:run_request"
swift-upload-runner = "swift_browser_ui.launcher:run_upload"
swift-x-account-sharing = "swift_browser_ui.launcher:run_sharing"
[project.urls]
Source = "https://github.com/CSCfi/swift-browser-ui"
Documentation = "https://swift-browser-ui.readthedocs.io"
[tool.hatch.version]
path = "swift_browser_ui/__init__.py"
[tool.black]
line-length = 90
target-version = ['py312']
[tool.isort]
atomic = true
profile = "black"
line_length = 90
py_version=312
[tool.ruff]
line-length = 90
target-version = "py312"
# https://beta.ruff.rs/docs/rules/
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
# "ANN", # flake8-annotations
"C", # flake8-comprehensions
"B", # flake8-bugbear
"D", # pydocstyle
# "UP", # pyupgrade
"S", # Bandit
]
ignore = [
"ANN101", # Missing type annotation for `self` in method
"E501", # line too long, handled by black
"B904", # do not perform function calls in argument defaults
"PLR2004", # magic value used in comparison
"S113", # Probable use of requests call without timeout
"D203", # one-blank-line-before-class
"D213", # multi-line-summary-second-line
]
[tool.ruff.mccabe]
max-complexity = 15