-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
66 lines (59 loc) · 1.39 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
[tool.poetry]
authors = ["widal001 <[email protected]>"]
description = "Boilerplate code for basic python package"
license = "MIT License"
name = "boilerplate"
version = "0.1.0"
[tool.poetry.dependencies]
python = ">=3.11,<4.0"
[tool.poetry.group.dev.dependencies]
black = "^24.4.2"
mypy = "^1.10.0"
pre-commit = "^3.7.1"
pylint = "^3.2.2"
pytest = "^8.2.1"
pytest-cov = "^5.0.0"
ruff = "^0.4.4"
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0"]
# configures some basic black settings per this article:
# https://ljvmiranda921.github.io/notebook/2018/06/21/precommits-using-black-and-flake8/
[tool.black]
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| \.env
| _build
| buck-out
| build
| dist
| env
)/
'''
include = '\.pyi?$'
line-length = 79
[tool.pylint."MESSAGE CONTROL"]
disable = [
"R0903", # Disables too few public methods
"R0801", # Disables duplicate code warning
]
[tool.ruff]
line-length = 100
[tool.ruff.lint]
extend-safe-fixes = [
"D400", # docstrings should end with a period
"D415", # docstrings should end with a period, question mark, or exclamation point
]
ignore = [
"ANN101", # missing type annotation for self
"ANN102", # missing type annotation for cls
"D203", # no blank line before class
"D212", # multi-line summary first line
"FA", # flake8-future-annotations ruleset
]
select = ["ALL"]