-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
65 lines (57 loc) · 1.75 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
[tool.poetry]
name = "package-name" # TODO: set name and change {package_name} below
version = "0.0.0"
description = ""
license = "MIT"
authors = ["bakdata"]
readme = "README.md" # Could also do ["path/to/README0.md", "path/to/README1.md"]
# TODO
# repository = ""
# documentation = ""
# keywords = []
# classifiers = []
# [tool.poetry.scripts]
# start = "main:start"
[tool.poetry.dependencies]
python = "^3.10"
[tool.poetry.group.dev.dependencies]
pre-commit = "^4.0.1"
ruff = "^0.8.6"
pyright = {extras = ["nodejs"], version = "^1.1.382"}
pytest = "^8.3.3"
pytest-asyncio = "^0.24.0"
pytest-mock = "^3.14.0"
pytest-clarity = "^1.0.1"
pytest-cov = "^6.0.0"
[tool.ruff]
output-format = "grouped"
show-fixes = true
target-version = "py310"
[tool.ruff.lint]
# For a list of all possible rules visit https://docs.astral.sh/ruff/rules/
select = [
"F", # Pyflakes
"E", # pycodestyle Errors
"W", # pycodestyle Warnings
"C90", # mccabe
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"RUF", # Ruff-specific rules
]
ignore = [
# Rules in conflict with `ruff-format` -- START
"W191", # Checks for indentation that uses tabs. Spaces are preferred.
# "E111", # Checks for indentation with a non-multiple of 4 spaces, add when out of nursery
# "E114", # Checks for indentation of comments with a non-multiple of 4 spaces, add when out of nursery
# "E117", # Checks for over-indented code, add when out of nursery
"E501", # Line too long
# Rules in conflict with `ruff-format` -- END
"RUF012", # type class attrs with `ClassVar` -- Too strict/trigger-happy
]
[tool.pytest.ini_options]
testpaths = "tests"
addopts = "--cov={package_name} --cov-report term-missing"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"