-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
151 lines (139 loc) · 4.86 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
[build-system]
requires = [
"setuptools>=42",
# Required to support dynmamic version
"girder~=3.1.20",
"girder-hashsum-download~=3.1.20",
"html-sanitizer>=2.4.1",
'tomli; python_version<"3.11"',
"versioneer",
]
build-backend = "setuptools.build_meta"
[project]
name = "slicer-package-manager"
description = "Manage Slicer application and extension packages."
authors = [
{name = "Pierre Assemat", email = "[email protected]"},
{name = "Jean-Christophe Fillion-Robin", email = "[email protected]"},
]
maintainers = [
{name = "Jean-Christophe Fillion-Robin", email = "[email protected]"},
]
readme = "README.rst"
keywords = ["girder-plugin", "slicer_package_manager"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
]
requires-python = ">=3.8"
dynamic = ["version"]
dependencies = [
"girder~=3.1.20",
"girder-hashsum-download~=3.1.20",
"html-sanitizer>=2.4.1",
]
[project.entry-points."girder.plugin"]
slicer_package_manager = "slicer_package_manager:GirderPlugin"
[project.optional-dependencies]
test = [
"pytest~=7.4.0", # See https://github.com/TvoroG/pytest-lazy-fixture/issues/63
"pytest-girder~=3.1.20",
"pytest-lazy-fixture",
"tox",
"virtualenv",
# lint
"ruff",
]
[project.urls]
Documentation = "https://slicer-package-manager.readthedocs.io"
Source = "https://github.com/girder/slicer_package_manager"
[tool.setuptools]
packages = [
"slicer_package_manager",
"slicer_package_manager.api",
"slicer_package_manager.models",
"tests",
]
py-modules = [
"slicer_package_manager._version",
]
zip-safe = false
[tool.setuptools.dynamic]
version = {attr = "slicer_package_manager.__version__"}
[tool.versioneer]
VCS = "git"
versionfile_source = "slicer_package_manager/_version.py"
versionfile_build = "slicer_package_manager/_version.py"
style = "pep440-post"
tag_prefix = ""
[tool.ruff]
select = [
"A", # flake8-builtins
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear
"BLE", # flake8-blind-except
"C4", # flake8-comprehensions
"COM", # flake8-commas
"D", # pydocstyle (aka flake8-docstrings)
"E", "F", "W", # flake8
"EXE", # flake8-executable
"EM", # flake8-errmsg
"G", # flake8-logging-format
"ICN", # flake8-import-conventions
"ISC", # flake8-implicit-str-concat
"N", # pep8-naming
"PIE", # flake8-pie
"PGH", # pygrep-hooks
"PL", # pylint
"PT", # flake8-pytest-style
"Q", # flake8-quotes
"RSE", # flake8-raise
"RUF", # Ruff-specific
"S", # flake8-bandit
"SIM", # flake8-simplify
"SLF", # flake8-self
"YTT", # flake8-2020
]
extend-exclude = [
"*/_vendor/bson/*.py",
"slicer_package_manager/_version.py",
]
force-exclude = true
extend-ignore = [
"B904", # raise-without-from-inside-except
"D10", # Missing docstring in *
"D200", # One-line docstring should fit on one line with quotes (fits-on-one-line)
"D203", # 1 blank line required before class docstring
"D205", # 1 blank line required between summary line and description
"D211", # No blank lines allowed before class docstring
"D212", # Multi-line docstring summary should start at the first line
"D213", # Multi-line docstring summary should start at the second line
"D400", # First line should end with a period
"D401", # First line should be in imperative mood; try rephrasing
"D415", # First line should end with a period, question mark, or exclamation point
"N802", # Function name should be lowercase.
"N803", # Argument name should be lowercase.
"N806", # Variable in function should be lowercase.
"N816", # mixedCase variable in global scope
"PLR0912", # Too many branches
"PLR0913", # Too many arguments to function call
"PLR2004", # agic value used in comparison, consider replacing 2 with a constant variable
"PLR5501", # Consider using `elif` instead of `else` then `if` to remove one indentation level
"Q000", # Remove bad quotes (bad-quotes-inline-string)
"Q003", # Change outer quotes to avoid escaping inner quotes
"S101", # assert
"S105", # hardcoded-password-string
"S310", # Audit URL open for permitted schemes. Allowing use of `file:` or custom schemes is often unexpected.
]
target-version = "py38"
line-length = 120
[tool.ruff.flake8-builtins]
builtins-ignorelist = ["copyright", "license"]
[tool.ruff.flake8-pytest-style]
fixture-parentheses = false
[tool.ruff.flake8-unused-arguments]
ignore-variadic-names = true
[tool.ruff.per-file-ignores]
"python_client/slicer_package_manager_client/__init__.py" = ["A002"] # Argument `all` is shadowing a python builtin