-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
122 lines (106 loc) · 2.47 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
# See https://peps.python.org/pep-0621/
[project]
name = 'p_flir_ptu_d48e'
readme = 'README.md'
version = 'v1.2.0'
description = '.'
authors = [{ email = '[email protected]' }, { name = 'Dieter Vansteenwegen' }]
classifiers = [
'Development Status :: 4 - Beta',
'Programming Language :: Python',
]
requires-python = ">=3.7.3"
dynamic = ["dependencies"]
[tool.setuptools.dynamic]
dependencies = { file = ["requirements.txt"] }
[project.urls]
Homepage = 'https://waterhypernet.org/equipment/'
Repository = 'https://github.com/Panthyr/panthyr_flir_ptu_d48e.git'
Changelog = 'https://github.com/Panthyr/panthyr_flir_ptu_d48e/blob/master/CHANGELOG.md'
[build-system]
requires = ['setuptools', 'setuptools-scm']
# build-backend = 'setuptools.build.meta' # Generates 'ModuleNotFoundError: No module named 'setuptools.build'
[tool.setuptools.packages.find]
where = ['.'] # list of folders that contain the packages (['.'] by default)
include = ['panthyr_flir_ptu_d48e']
[project.scripts]
# worker = "p_core.worker.worker:main"
[tool.bandit]
exclude_dirs = ["tests"]
# tests = ["B201", "B301"]
# skips = ["B101", "B601"]
[tool.ruff]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
line-length = 100
indent-width = 4
[tool.ruff.lint]
select = [
# Pycodestyle errors
"E",
# Pycodestyle warnings
"W",
# Pyflakes
"F",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
# McCabe complex structure
"C901",
# PEP8 Naming
"N",
# Flake8-Bandit
"S",
# Flake8-builtins
"A",
# Flake8-commas
"COM",
# Flake8-datetimez
"DTZ",
# Flake8-errmsg
"EM",
# Flake8-use-pathlib
"PTH",
# tryceratops
"TRY",
]
ignore = [
# Use logging.exception instead of logging.error
"TRY400",
# Raising and catching exceptions in the same block may lead to confusion
"TRY301",
]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.format]
quote-style = "single"
indent-style = "space"
skip-magic-trailing-comma = false
exclude = ["*.pyi"]