-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
126 lines (108 loc) · 2.75 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
# Project: mausy5043-common
# Hatchling https://packaging.python.org/en/latest/key_projects/#hatch
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "mausy5043-common"
#version = "1.12.1" # latest production version
version = "1.13.2" # latest test version
description = "Common python functions"
readme = "README.md"
requires-python = ">=3.11"
license = "MIT"
authors = [
{ name="Mausy5043" },
]
keywords = [
"private",
"Raspberry Pi",
"Debian Linux"
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"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",
"Operating System :: OS Independent",
]
dependencies = [
"numpy~=2.2",
"pandas~=2.2",
"pyarrow~=19.0",
]
[tool.hatch.build.targets.wheel.force-include]
"./pyproject.toml" = "mausy5043_common/pyproject.toml"
[project.urls]
"Homepage" = "https://github.com/Mausy5043/mausy5043-common"
"Bug Tracker" = "https://github.com/Mausy5043/mausy5043-common/issues"
# [tool.setuptools.package-data]
# "mausy5043-common" = ["py.typed"]
[tool.autopep8]
max_line_length = 98
in-place = true
recursive = true
aggressive = 2
ignore = [
# whitespace before ':': is enforced by black
"E203"
]
[tool.bandit]
skips = []
[tool.black]
line-length = 98
target-version = ["py39", "py310", "py311", "py312", "py313"]
[tool.isort]
profile = "black"
py_version="auto"
[tool.flake8]
max_line_length = 98
ignore = [
# function too complex: is what we do ;-)
"C901",
# whitespace before ':': is enforced by black
"E203",
# line too long: is checked by pylint
"E501",
# line break before binary: is against policy.
"W503",
]
[tool.mypy]
warn_return_any = true
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true
strict_equality = true
check_untyped_defs = true
disallow_subclassing_any = true
disallow_untyped_decorators = true
disallow_untyped_calls = true
no_implicit_reexport = true
extra_checks = true
[tool.pydocstyle]
inherit = false
convention = "google"
match = ".*\\.py"
[tool.ruff]
fix = true
indent-width = 4
line-length = 98
output-format = "concise"
include = ["pyproject.toml", "src/**/*.py", "tests/**/*.py"]
[tool.ruff.format]
indent-style = "space"
line-ending = "auto"
quote-style = "preserve"
[tool.ruff.lint]
select = ["B", "E", "F", "I", "SIM", "UP", "W"]
ignore = [
# line too long: formatter is leading
"E501"
]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# pylint is controlled by .pylintrc