-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
138 lines (127 loc) · 3.6 KB
/
pyproject.toml
File metadata and controls
138 lines (127 loc) · 3.6 KB
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
[project]
name = "easyssp-simulation-examples-python"
version = "1.0.0"
description = "Examples project for the easySSP Simulation Python Client."
repository = "https://github.com/exxcellent/easyssp-simulation-examples-python"
keywords = ["easySSP", "python", "client", "simulation", "examples"]
authors = [
{ name = "easySSP Dev Team", email = "easyssp-dev@exxcellent.de" }
]
license = { text = "MIT" }
license-files = ["LICENSE"]
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"easyssp-simulation-client>=1.0.0",
"pydantic>=2.11.3",
]
classifiers = [
"Programming Language :: Python :: 3.11",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
[project.urls]
Homepage = "https://www.easy-ssp.com"
"Release Changelog" = "https://github.com/exxcellent/easyssp-simulation-examples-python/releases"
Source = "https://github.com/exxcellent/easyssp-simulation-examples-python"
[dependency-groups]
lint = [
"mypy>=1.15.0",
"ruff>=0.11.0",
]
[tool.uv]
default-groups = ["lint"]
[tool.mypy]
files = ['demo']
disallow_any_unimported = true
no_implicit_optional = true
check_untyped_defs = true
warn_unused_ignores = true
show_error_codes = true
[tool.ruff]
target-version = "py312"
line-length = 100
fix = true
[tool.ruff.lint]
select = [
"A",
"B",
"C",
"E",
"F",
"G",
"I",
"N",
"Q",
"S",
"T",
"W",
"ANN",
"ARG",
"BLE",
"COM",
"DJ",
"DTZ",
"EM",
"ERA",
"EXE",
"FBT",
"ICN",
"INP",
"ISC",
"NPY",
"PD",
"PGH",
"PIE",
"PL",
"PT",
"PTH",
"PYI",
"RET",
"RSE",
"RUF",
"SIM",
"SLF",
"TID",
"TRY",
"UP",
"YTT",
]
ignore = [
"ANN", # Type hints related, let mypy handle these.
"COM812", # "Trailing comma missing". If black is happy, I'm happy.
"E501", # "Line too long". If black is happy, I'm happy.
"EM101", # "Exception must not use a string literal, assign to variable first"
"EM102", # "Exception must not use an f-string literal, assign to variable first"
"PTH", # User Pathlib stuff over os.*. Should migrate to Pathlib at some point.
"RET504", # "Unnecessary variable assignment before `return` statement"
"S101", # "Use of `assert` detected"
"SIM108", # "Use ternary operator ...". Ternary is harmful for readability in some cases.
"TRY003", # "Avoid specifying long messages outside the exception class"
"PLR0913", # Many langchain calls need more than 5 args, so this is impractical
"INP001", # not really an issue, __int__ is old news anyway
"EXE001", # code is executed on AWS, we don't need the exec bit
"ERA001", # comments are okay
"S108", # temp files on AWS are okay
"T201", # print() is love, print() is life
"FBT001", # come on now, booleans aren't allowed in functions as positional args?
"FBT002", # more of the same
"FBT003", # more of the same
"ARG001", # allow unaccessed args, we're still in a dev phase
"G004", # allow logging with f strings
"ISC001",
"PLR2004", # Magic numbers
"E701", # Multiple statements on one line (colon)
"BLE001", # Do not catch blind exception: `Exception`
"S106", # hardcoded password
]
# Enable isort-compatible import formatting
# Organizes imports alphabetically and categorically (stdlib, third-party, local)
[tool.ruff.lint.isort]
combine-as-imports = true
force-sort-within-sections = true
# Avoid redundant noqa comments for non-existent violations
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101", "S603"]