-
Notifications
You must be signed in to change notification settings - Fork 24
/
pyproject.toml
90 lines (73 loc) · 1.99 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
[project]
name = "rsconnect_python"
description = "Python integration with Posit Connect"
authors = [{ name = "Michael Marchetti", email = "mike@posit.co" }]
license = { file = "LICENSE.md" }
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.8"
dependencies = [
"typing-extensions>=4.8.0",
"pip>=10.0.0",
"semver>=2.0.0,<4.0.0",
"pyjwt>=2.4.0",
"click>=8.0.0",
]
dynamic = ["version"]
[project.scripts]
rsconnect = "rsconnect.main:cli"
[project.optional-dependencies]
test = [
"black==24.3.0",
"coverage",
"flake8-pyproject",
"flake8",
"httpretty",
"ipykernel",
"nbconvert",
"pyright",
"pytest-cov",
"pytest",
"setuptools>=61",
"setuptools_scm[toml]>=3.4",
"twine",
"types-Flask",
]
[project.urls]
Repository = "http://github.com/posit-dev/rsconnect-python"
Documentation = "https://docs.posit.co/rsconnect-python"
[build-system]
requires = ["setuptools>=61", "setuptools_scm[toml]>=3.4", "wheel"]
[tool.distutils.bdist_wheel]
universal = true
[tool.black]
line-length = 120
[tool.coverage.run]
omit = ["tests/*"]
[tool.flake8]
max_line_length = 120
show_source = true
exclude = [".git", ".venv", ".venv2", ".venv3", "__pycache__", ".cache"]
# The following codes are ignored so that `flake8` plays nicer with how `black`
# likes to format:
# - E203: whitespace before ':'
# - E231: missing whitespace after ',', ';', or ':'
# - E302: expected 2 blank lines, found 0
#
# ref:
# https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes
#
extend_ignore = ["E203", "E231", "E302"]
per-file-ignores = ["tests/test_metadata.py: E501"]
[tool.setuptools]
packages = ["rsconnect"]
[tool.setuptools_scm]
write_to = "rsconnect/version.py"
[tool.setuptools.package-data]
rsconnect = ["py.typed"]
[tool.pytest.ini_options]
markers = ["vetiver: tests for vetiver"]
[tool.pyright]
typeCheckingMode = "strict"
reportPrivateUsage = "none"
reportUnnecessaryIsInstance = "none"
reportUnnecessaryComparison = "none"