-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
103 lines (91 loc) · 2.01 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
[project]
name = 'sonyci'
description = 'A Sony Ci api client'
authors = [{ name = 'WGBH-MLA', email = '[email protected]' }]
dependencies = [
"pydantic~=2.9",
"requests-oauth2client~=1.6",
"loguru~=0.7",
]
requires-python = '>=3.8'
readme = 'README.md'
license = { text = 'MIT' }
dynamic = ['version']
[project.scripts]
ci = 'sonyci.__main__:app'
[project.optional-dependencies]
test = [
"pytest~=8.3",
"vcrpy~=6.0",
"pytest-vcr~=1.0",
"pytest-cov~=5.0",
"pytest-sugar~=1.0",
"pytest-xdist~=3.6",
"urllib3~=1.26",
]
cli = [
"typer[all]~=0.12",
]
cli-ci = [
"typer~=0.12",
]
tui = [
"trogon~=0.5",
]
docs = [
"mkdocs~=1.6",
"mkdocs-material~=9.5",
"mkdocs-git-revision-date-localized-plugin~=1.2",
"mike~=2.1",
"mkdocstrings[python]~=0.26",
"mkdocs-jupyter~=0.24",
]
[build-system]
requires = ['pdm-backend']
build-backend = 'pdm.backend'
[tool.pdm]
version = { source = 'file', path = 'sonyci/_version.py' }
[tool.pdm.dev-dependencies]
dev = [
"ruff~=0.6",
"black~=24.8",
"pre-commit~=3.5",
]
[tool.pdm.scripts]
test = 'pytest --vcr-record=none'
docs = 'mkdocs serve'
lint = 'ruff check . --fix'
format = 'black -S .'
[tool.pytest.ini_options]
testpaths = ['tests']
markers = ['no_ci: marks tests to skip on CI']
[tool.coverage.run]
omit = ['tests/*']
[tool.ruff.lint.flake8-quotes]
inline-quotes = 'single'
[tool.ruff.lint]
select = [
'B', # flake8-bugbear
'C4', # flake8-comprehensions
'C90', # mccabe
'E', # pycodestyle errors
'ERA', # eradicate
'F', # pyflakes
'I', # isort
'INT', # flake8-gettext
'N', # pep8-naming
'PIE', # flake8-pie,
'PLC', # pylint - convention
'PLE', # pylint - error
'PLW', # pylint - warning
'Q', # flake8-quotes
'RET', # flake8-return,
'RUF', # Ruff-specific rules
'SIM', # flake8-simplify
'UP', # pyupgrade
'W', # pycodestyle warnings
]
ignore = [
'B008', # Do not perform function call in argument defaults
'E501', # line too long
]