-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
93 lines (82 loc) · 1.9 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
# PEP 518: https://www.python.org/dev/peps/pep-0518/
[tool.poetry]
name = "chargeamps"
version = "1.8.2"
readme = "README.md"
description = "Charge-Amps API bindings for Python"
authors = ["Jakob Schlyter <[email protected]>"]
license = "BSD-2-Clause"
repository = "https://github.com/kirei/python-chargeamps"
packages = [
{ include = "chargeamps" }
]
keywords = [
"ev"
]
classifiers = [
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
]
[tool.poetry.scripts]
chargeamps = "chargeamps.cli:main"
[tool.poetry.dependencies]
python = "^3.11"
aiohttp = "^3.10.5"
PyJWT = "^2.9.0"
isoduration = "^20.11.0"
ciso8601 = "^2.3.1"
pydantic = "^2.9.2"
[tool.poetry.group.dev.dependencies]
pytest = ">=7.4.3"
pytest-ruff = "^0.3.2"
ruff = ">=0.8.3"
pytest-asyncio = "^0.23.8"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.isort]
profile = "black"
[tool.pylama.linter.pycodestyle]
max_line_length = 120
[tool.pylama.linter.mccabe]
complexity = 40
[tool.mypy]
ignore_missing_imports = true
disallow_untyped_calls = false
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_subclassing_any = true
disallow_untyped_decorators = true
warn_redundant_casts = true
warn_return_any = true
warn_unused_ignores = true
warn_unused_configs = true
no_implicit_optional = true
strict_optional = true
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
]
ignore = ["E501", "I001", "SIM102"]
exclude = ["examples/*"]
[tool.ruff.lint.isort]
known-first-party = [
"chargeamps",
]
combine-as-imports = true
split-on-trailing-comma = false