-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
55 lines (43 loc) · 1.43 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
[tool.poetry]
name = "python-template"
version = "0.1.0"
description = "Python template with opinionated setup of my personal preferences."
authors = ["Benedikt Fuchs <[email protected]>"]
license = "MIT"
readme = "README.md"
packages = [{ include = "python_template" }]
repository = "https://github.com/helpmefindaname/python-template"
[tool.poetry.scripts]
python_template = "python_template.cli:main"
[tool.poetry.dependencies]
python = "^3.9"
[tool.poetry.group.dev.dependencies]
pytest = "^7.2.0"
pytest-mypy = "^0.10.3"
pytest-ruff = "^0.4.1"
pytest-black-ng = "^0.4.1"
black = "^22.12.0"
ruff = "^0.6.4"
pytest-github-actions-annotate-failures = "^0.1.8"
pytest-xdist = "^3.1.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 120
target-version = ['py39']
[tool.ruff]
line-length = 120
target-version = 'py39'
[tool.pytest.ini_options]
addopts = "--mypy --black --ruff -n auto"
filterwarnings = [
"error",
"ignore:SelectableGroups dict interface is deprecated. Use select."
] # Convert all warnings to errors, imo warnings that are not treated as errors will be ignored by most people.
# My approach is to throw an error and let the programmar check if the error is intended (then add it to the filterwarnings) or not (then fix it!)
[tool.mypy]
ignore_missing_imports = true
disallow_untyped_calls = true
warn_unused_ignores = true
warn_no_return = true