-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
122 lines (106 loc) · 3.16 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
# quickstart:
# pdm install
# pdm run pytest
# dependencies
# - use `pdm add <package>` and `pdm remove <package>` to manage dependencies
# - use `pdm add -d -G dev <packag>` to add a dev dependency
# - use `pdm update --update-all` to update dependencies
# - use `pdm install` to install dependencies
# usage:
# - use `pdm run <pythonfile>` to execute code
# - use `pdm run pytest` to perform unit tests
# line lengths:
# - Excessive line lengths aren't good. But rather then automatically
# breaking them and turning into vertical blocks we want to see the
# nastiness sticking out prominently.
[project]
name = "feeph.emc2101"
version = "0.3.0"
description = "library for I²C-based EMC2101 PWM fan controller"
authors = [
{name = "Feeph Aifeimei", email = "55798703+feeph@users.noreply.github.com"},
]
requires-python = ">=3.10,<3.13"
dependencies = [
"adafruit-blinka>=8.46.0",
"adafruit-board-toolkit>=1.1.0",
"feeph-i2c>=0.5.0,<1.0.0",
"gpiod>=2.1.0,<3.0.0",
"pyyaml>=6.0.0,<7.0.0",
"attrs~=24.2",
]
readme = "README.md"
license = {text = "GPL-3.0-or-later"}
repository = "https://github.com/feeph/libemc2101-python/"
keywords = [
"emc2101",
"i2c",
"smbus",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: System :: Hardware",
"Typing :: Typed",
]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
# -------------------------------------------------------------------------
# tooling
# -------------------------------------------------------------------------
# https://github.com/PyCQA/isort
# https://pycqa.github.io/isort/
[tool.isort]
# use the black profile but override "multi_line_output"
profile = "black"
line_length = 250
multi_line_output = 7
src_paths = ["feeph/", "tests/"]
# https://pypi.org/project/autopep8/
[tool.autopep8]
max_line_length = 250
ignore = ["E221", "E241"]
in-place = true
[tool.pdm]
distribution = true
# automatically update requirements.txt and requirements-dev.txt
# on `pdm lock`
[[tool.pdm.autoexport]]
filename = "requirements.txt"
groups = ["default"]
[[tool.pdm.autoexport]]
filename = "requirements-dev.txt"
groups = ["dev", "tools"]
[tool.pdm.build]
includes = ["feeph/"]
source-includes = ["tests/"]
[tool.pdm.dev-dependencies]
dev = [
"types-PyYAML>=6.0.12.20240311",
]
tools = [
"autopep8 ~= 2.2",
"copier ~= 9.3",
"coverage-lcov ~= 0.3",
"flake8 ~= 7.0",
"mypy ~= 1.10",
"pylint ~= 3.2",
"pytest-cov ~= 5.0",
"pytest-sugar ~= 1.0",
]
# during development: fetch all packages in our namespace from TestPyPI
#
# this config is used exclusively by pdm and has no impact on regular
# consumers using `pip install <package>` to install the package
[[tool.pdm.source]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
include_packages = ["feeph-*"]
[tool.pylint."MESSAGES CONTROL"]
fail-under = 8
max-line-length = 250
disable = "no-else-return,use-list-literal"