-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
113 lines (98 loc) · 2.82 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
[tool.poetry]
name = "welkin"
version = "0.1.6"
description = "Python Welkin Health API Wrapper."
authors = ["Sam Morgan <[email protected]>"]
license = "GPL-3.0-or-later"
readme = "README.md"
repository = "https://github.com/lightmatter/welkin-health"
documentation = "https://welkin.readthedocs.io"
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
]
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/lightmatter/welkin-health/issues"
[tool.poetry.dependencies]
python = "^3.8"
requests = "^2.31.0"
portalocker = "^2.8.2"
inflection = "^0.5.1"
[tool.poetry.group.dev.dependencies]
pre-commit = "^3.5.0"
ruff = "^0.3.6"
[tool.poetry.group.test.dependencies]
pytest = "^8.0.2"
pytest-cov = "^4.1.0"
pytest-dotenv = "^0.5.2"
pytest-vcr = "^1.0.2"
pytest-xdist = "^3.5.0"
[tool.poetry.group.docs.dependencies]
Sphinx = "7.1.2"
sphinx-autoapi = "^3.0.0"
sphinx-rtd-theme = "^2.0.0"
myst-parser = "^2.0.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_also = ["if TYPE_CHECKING:"]
[tool.coverage.run]
omit = ["test/*"]
[tool.pytest.ini_options]
addopts = ["-n=auto"]
env_files = [".env", ".env.example"]
[tool.ruff]
cache-dir = "~/.cache/ruff"
extend-exclude = ["*migrations/*"]
line-length = 92
target-version = "py38"
show-fixes = true
[tool.ruff.lint]
ignore = [
"D1", # Missing docstrings
"D205", # 1 blank line required between summary line and description (does not allow wrapping of summary lines)
"D407", # Dashed underline after doc section (not compatible with google style)
]
select = [ # https://docs.astral.sh/ruff/rules
"F", # pyflakes
"E", # pycodestyle
"W", # pycodestyle
"C90", # mccabe
"I", # isort
"N", # pep8-naming
"D", # pydocstyle
"UP", # pyupgrade
"B", # flake8-bugbear
"S", # flake8-bandit
"A", # flake8-builtins
"C4", # flake8-comprehensions
"DTZ", # flake8-datetimez
"ISC", # flake8-implicit-str-concat
"EXE", # flake8-executable
"PT", # flake8-pytest-style
"Q", # flake8-quotes
"RET", # flake8-return
"TCH", # flake8-type-checking
"SIM", # flake8-simplify
"T20", # flake8-print
"TID", # flake8-tidy-imports
"ERA", # eradicate
"PL", # pylint
"RUF", # ruff
]
unfixable = ["D407"]
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
mark-parentheses = false
[tool.ruff.lint.isort]
combine-as-imports = true
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402"]
"**/{tests,docs}/*" = ["S", "PLR2004", "PLR0913"]
"**/conftest.py" = ["S", "PLR2004", "PLR0913"]
"**/test*.py" = ["S", "PLR2004", "PLR0913"]
[tool.ruff.lint.pydocstyle]
convention = "google"