-
Notifications
You must be signed in to change notification settings - Fork 88
/
Copy pathpyproject.toml
116 lines (105 loc) · 1.81 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
[tool.poetry]
name = "pyentrp"
version = "1.0.0"
description = "A Python library for computing entropy measures for time series analysis."
authors = ["Nikolay Donets <[email protected]>"]
license = "apache-2.0"
readme = "README.md"
packages = [
{"include" = "pyentrp"}
]
[tool.poetry.dependencies]
python = ">=3.9,<4.0"
numpy = ">=1.26,<3.0"
[tool.poetry.group.dev.dependencies]
black = ">=23.3,<25.0"
codecov = "^2.1.13"
commitizen = ">=3.2.2,<5.0.0"
pre-commit = ">=3.3.2,<5.0.0"
ruff = ">=0.5.0,<0.8.5"
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "$version"
version_type = "pep440"
version_provider = "poetry"
update_changelog_on_bump = true
major_version_zero = true
version_files = [
"setup.py:version"
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.coverage.report]
show_missing = true
fail_under = 90
[tool.black]
line-length = 120
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| venv
)/
'''
[tool.ruff]
line-length = 120
target-version = "py310"
fix = true
[tool.ruff.lint]
unfixable = []
select = [
# isort
"I",
# pyflakes
"F",
# pycodestyle
"E", "W",
# flake8-2020
"YTT",
# flake8-bugbear
"B",
# flake8-quotes
"Q",
# flake8-debugger
"T10",
# flake8-gettext
"INT",
# pylint
"PLC", "PLE", "PLR", "PLW",
# misc lints
"PIE",
# flake8-pyi
"PYI",
# tidy imports
"TID",
# implicit string concatenation
"ISC",
# type-checking imports
"TCH",
# comprehensions
"C4",
# pygrep-hooks
"PGH",
# Ruff-specific rules
"RUF",
# NumPy-specific rules
"NPY",
# pydocstyle
"D",
]
ignore = [
"D100", "D104",
"D203", "D213"
]
[tool.ruff.lint.per-file-ignores]
"**/{tests}/*" = ["D101", "D102", "D103"]