/
pyproject.toml
75 lines (66 loc) · 2.16 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
[build-system]
requires = ["setuptools>=60", "setuptools-scm>=8.0"]
build-backend = "setuptools.build_meta"
[project]
name = "posit-sdk"
description = "Posit SDK for Python"
readme = "README.md"
requires-python = ">=3.8"
license = { file = "LICENSE" }
keywords = ["posit", "sdk"]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries",
"Typing :: Typed",
]
dynamic = ["version"]
dependencies = ["requests>=2.31.0,<3"]
[project.urls]
Source = "https://github.com/posit-dev/posit-sdk-py"
Issues = "https://github.com/posit-dev/posit-sdk-py/issues"
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = ["--import-mode=importlib"]
[tool.setuptools_scm]
version_file = "src/posit/_version.py"
[tool.ruff]
line-length = 79
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = "dynamic"
[tool.ruff.lint]
select = ["D"]
ignore = [
# NumPy style docstring convention with noted exceptions.
# https://docs.astral.sh/ruff/faq/#does-ruff-support-numpy-or-google-style-docstrings
#
# This docstring style works with [quartodoc](https://machow.github.io/quartodoc/get-started/overview.html).
#
'D101', # TODO(#135) implement docstring for public class
'D103', # TODO(#135) implement docstring for public functions
'D104', # TODO(#135) implement docstring for public package
'D105', # TODO(#135) implement docstring for magic methods
'D107',
'D203',
'D212',
'D213',
'D100', # TODO(#135) implement docstring for public modules
'D102', # TODO(#135) implement docstring for public methods
'D401', # TODO(#135) fix imperative mood warnings
'D402',
'D413',
'D415',
'D416',
'D417',
'D418', # The Python Language Server can accomdate documentation for individual methods.
# TODO(#135) resarch D418 and determine if we should continue ignoring it.
]
[tool.ruff.lint.per-file-ignores]
"examples/*" = ["D"]
"tests/*" = ["D"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"