-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
140 lines (129 loc) · 3.09 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
[build-system]
build-backend = "hatchling.build"
requires = [
"hatch-vcs",
"hatchling>=1.20",
]
[project]
name = "otaclient-iot-logging-server"
description = "A logging server that uploads logs sent from otaclient to AWS cloudwatch."
readme = "README.md"
license = { text = "LICENSE.md" }
requires-python = ">=3.8"
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Operating System :: Unix",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dynamic = [
"version",
]
dependencies = [
"aiohttp>=3.10.2,<3.11",
"awsiot-credentialhelper>=0.6,<0.7",
"boto3>=1.34.35,<1.35",
"botocore==1.34.35,<1.35",
"pydantic>=2.6,<3",
"pydantic-settings>=2.2.1,<3",
"pyyaml>=6.0.1,<7",
"typing-extensions>=4",
]
optional-dependencies.dev = [
"black==24.1.1",
"coverage==7.4.1",
"flake8==6.1",
"hatch",
"isort==5.13.2",
"pytest==7.4.4",
"pytest-asyncio==0.23.4",
"pytest-env==1.1.3",
"pytest-mock==3.12",
]
urls.Homepage = "https://github.com/tier4/otaclient-iot-logging-server"
urls.Source = "https://github.com/tier4/otaclient-iot-logging-server"
scripts.iot_logging_server = "otaclient_iot_logging_server.__main__:main"
[tool.hatch.envs.dev]
type = "virtual"
features = [
"dev",
]
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "src/otaclient_iot_logging_server/_version.py"
[tool.hatch.build.targets.sdist]
exclude = [
"/.github",
"/docs",
]
[tool.hatch.build.targets.wheel]
only-include = [
"src",
]
sources = [
"src",
]
[tool.ruff]
target-version = "py311"
# NOTE: not include tests and tools for now
include = [
"pyproject.toml",
"src/**/*.py",
"tests/**/*.py",
]
lint.select = [
"A", # flake8-builtins
"B", # flake8-bugbear
"E4",
"E7",
"E9",
"F", # pyflakes
"I", # isort
"ICN", # flake8-import-conventions
"Q", # flake8-quotes
]
lint.ignore = [
"E203", # (white space before ':'): this error conflicts with black linting
"E266", # (too many leading '#'): sometimes we use multiple # for separting sections
"E701", # (multiple statements on one line)
"S101", # (use of assert): mostly we use assert for typing
]
[tool.pytest.ini_options]
env = [
"AWS_PROFILE_INFO=tests/data/aws_profile_info.yaml",
"GREENGRASS_V1_CONFIG=tests/data/gg_v1_cfg.json",
"GREENGRASS_V2_CONFIG=tests/data/gg_v2_cfg.yaml",
]
asyncio_mode = "auto"
log_auto_indent = true
log_format = "%(asctime)s %(levelname)s %(filename)s %(funcName)s,%(lineno)d %(message)s"
log_cli = true
log_cli_level = "INFO"
pythonpath = [
"src",
]
testpaths = [
"tests",
]
[tool.coverage.run]
branch = true
source = [
"otaclient_iot_logging_server",
]
relative_files = true
[tool.coverage.report]
exclude_also = [
"def __repr__",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
show_missing = true
skip_empty = true