-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml.rename.mako
61 lines (50 loc) · 1.27 KB
/
pyproject.toml.rename.mako
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
## Hey Emacs, this is -*- coding: utf-8 -*-
<%
project_name = utils.kebab_case(config["project_name"])
%>\
[tool.poetry]
name = "${project_name}"
version = "0.1.0"
description = ""
authors = ["ramblehead <rh@gmail.com>"]
readme = "README.md"
packages = [{ include = "poetry_utils", from = "utils" }]
[tool.poetry.scripts]
lint = "poetry_utils.scripts:lint"
cdaq-link = "cdaq_link.start:start"
[tool.poetry.dependencies]
python = "^3.11"
conan = "^2.0.9"
numpy = "^1.25.2"
[tool.poetry.group.dev.dependencies]
black = "^23.7.0"
pyright = "^1.1.318"
ruff = "^0.0.276"
mypy = "^1.4.1"
ruff-lsp = "^0.0.35"
[tool.ruff]
select = ["ALL"]
ignore = [
# No need
"DJ", # flake8-django
"UP009", # UTF-8 encoding declaration is unnecessary
# subprocess call with shell=True seems safe, but
# may be changed in the future; consider rewriting without shell
"S602",
"S607", # Starting a process with a partial executable path
# Should be enabled later when project is more mature
"D", # pydocstyle
# Should be enabled for releases
"ERA001", # eradicate (e.g. comments)
"T20", # flake8-print
]
line-length = 110
extend-exclude = [
"**/__pycache__",
"**/.*",
]
[tool.black]
line-length = 79
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"