Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
144 lines (129 loc) · 3.52 KB
/
Copy pathpyproject.toml
File metadata and controls
144 lines (129 loc) · 3.52 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
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
[build-system]
requires = ["hatchling>=1,<2", "hatch-vcs>=0.4,<1"]
build-backend = "hatchling.build"
[project]
name = "isic-cli"
description = "The official command line tool for interacting with the ISIC Archive."
readme = "README.md"
requires-python = ">=3.12"
license = "Apache-2.0"
maintainers = [{ name = "Kitware, Inc.", email = "kitware@kitware.com" }]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"click>=8.3.0",
"django-s3-file-field-client>=1.0.0",
# We expect girder-cli-oauth-client to drop oob support in the future
"girder-cli-oauth-client<1.0.0",
"humanize",
"isic-metadata>=5.0.0",
"more-itertools",
"packaging",
"requests",
"retryable-requests",
"rich",
"sentry-sdk>=2.0.0",
"tenacity",
]
dynamic = ["version"]
[project.urls]
Repository = "https://github.com/ImageMarkup/isic-cli"
"Bug Reports" = "https://github.com/ImageMarkup/isic-cli/issues"
[project.scripts]
isic = "isic_cli.cli:main"
[dependency-groups]
dev = [
"ipython",
"tox",
"tox-uv",
]
lint = [
"ruff==0.5.0",
]
type = [
"pyright",
]
test = [
"pytest",
"pytest-lazy-fixtures",
"pytest-mock",
]
package = [
"pyinstaller",
]
[tool.hatch.build]
only-include = [
"isic_cli",
]
[tool.hatch.version]
source = "vcs"
[tool.ruff]
line-length = 100
target-version = "py312"
extend-exclude = ["typings"]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
# Incompatible with formatter
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"COM812", # missing-trailing-comma
"COM819", # prohibited-trailing-comma
"D206", # indent-with-spaces
"D300", # triple-single-quotes
"E111", # indentation-with-invalid-multiple
"E114", # indentation-with-invalid-multiple-comment
"E117", # over-indented
"ISC001", # single-line-implicit-string-concatenation
"ISC002", # multi-line-implicit-string-concatenation
"Q", # flake8-quotes
"W191", # tab-indentation
"A003", # Class attribute is shadowing a Python builtin
"ANN", # flake8-annotations
"ARG001", # Unused function argument
"ARG002", # Unused method argument
"D1", # Missing docstring
"EM101", # Exception must not use a string literal, assign to variable first
"EM102", # Exception must not use an f-string literal, assign to variable first
"ERA001", # Found commented-out code
"FIX", # flake8-fixme
"TD002", # Missing author in TODO
"TD003", # Missing issue link on the line following this TODO
"TRY003", # Avoid specifying long messages outside the exception class
# Excessive
"RET503", # implict return
"RET506", # elif after raise
"PLR2004", # magic value used in comparison
]
[tool.ruff.lint.per-file-ignores]
"scripts/**" = [
"INP001", # File is part of an implicit namespace package
]
"tests/**" = [
"PLR0913", # Too many arguments to function call
"PLR2004", # Magic value used in comparison
"S", # flake8-bandit
"SLF001", # Private member accessed
]
[tool.ruff.format]
quote-style = "double"
[tool.ruff.lint.isort]
# Sort by name, don't cluster "from" vs "import"
force-sort-within-sections = true
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.pydocstyle]
convention = "pep257"
[tool.pytest.ini_options]
addopts = [
"--strict-markers",
"--showlocals",
"--verbose",
]