-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
95 lines (81 loc) · 1.95 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
[tool.towncrier]
package = "lsst.ci_middleware"
package_dir = "python"
filename = "doc/lsst.ci_middleware/CHANGES.rst"
directory = "doc/changes"
title_format = "obs_base {version} ({project_date})"
issue_format = "`{issue} <https://jira.lsstcorp.org/browse/{issue}>`_"
[[tool.towncrier.type]]
directory = "feature"
name = "New Features"
showcontent = true
[[tool.towncrier.type]]
directory = "api"
name = "API Changes"
showcontent = true
[[tool.towncrier.type]]
directory = "bugfix"
name = "Bug Fixes"
showcontent = true
[[tool.towncrier.type]]
directory = "perf"
name = "Performance Enhancement"
showcontent = true
[[tool.towncrier.type]]
directory = "misc"
name = "Other Changes and Additions"
showcontent = true
[[tool.towncrier.type]]
directory = "removal"
name = "An API Removal or Deprecation"
showcontent = true
[tool.black]
line-length = 110
target-version = ["py310"]
[tool.isort]
profile = "black"
line_length = 110
[tool.lsst_versions]
write_to = "python/lsst/ci/middleware/version.py"
[tool.pytest.ini_options]
addopts = "--import-mode=importlib" # Recommended as best practice
# Some unit tests open registry database and don't close it.
open_files_ignore = ["gen3.sqlite3"]
[tool.ruff]
line-length = 110
target-version = "py310"
exclude = [
"__init__.py",
"python/lsst/ci/middleware/data/*.py"
]
[tool.ruff.lint]
ignore = [
"N802",
"N803",
"N806",
"N812",
"N815",
"N816",
"N999",
"D107",
"D105",
"D102",
"D104",
"D100",
"D200",
"D205",
"D400",
]
select = [
"E", # pycodestyle
"F", # pyflakes
"N", # pep8-naming
"W", # pycodestyle
]
extend-select = [
"RUF100", # Warn about unused noqa
]
[tool.ruff.lint.pycodestyle]
max-doc-length = 79
[tool.ruff.lint.pydocstyle]
convention = "numpy"