-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
97 lines (83 loc) · 2 KB
/
pyproject.toml
File metadata and controls
97 lines (83 loc) · 2 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
[project]
name = "fasteda"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"aiokafka>=0.12.0",
"click>=8.1.7",
"jwcrypto>=1.5.6",
"pydantic-settings>=2.7.0",
"pydantic>=2.10.3",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[dependency-groups]
dev = [
"mypy>=1.13.0",
"ruff>=0.8.3",
]
[tool.mypy]
python_version = "3.12"
enable_error_code = ["truthy-bool", "redundant-expr", "unused-awaitable"]
allow_redefinition = false
check_untyped_defs = true
disallow_untyped_decorators = true
# disallow_any_explicit = true
disallow_any_generics = true
disallow_untyped_calls = true
ignore_errors = false
implicit_reexport = false
local_partial_types = true
strict_optional = true
strict_equality = true
no_implicit_optional = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unreachable = true
warn_no_return = true
[[tool.mypy.overrides]]
module = [
"jwcrypto.*",
"aiokafka.*",
]
ignore_missing_imports = true
[tool.ruff]
line-length = 79
target-version = "py312"
[tool.ruff.lint]
extend-select = [
# Base
"A", # flake8-builtins
"N", # Naming
"B", # flake8-bugbear
"F", # Pyflakes
"C", # pycodestyle
"W", # pycodestyle
"E", # pycodestyle
# Imports and sorting
"I", # isort
"ICN", # flake8-import-conventions
"TID", # flake8-tidy-imports
# Logging
"G", # flake8-logging-format
"LOG", # flake8-logging
# Refactoring and comprehensions
"R", # Refactor
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
# Security checks (bandit and custom rules)
"S", # Bandit
# Python upgrades
"UP", # pyupgrade
# Type checking and annotations
"PT", # flake8-pytest-style
"PYI", # flake8-pyi
]
ignore = [
"COM812", # Conflict with format
"ISC001", # Conflict with format
]