-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
54 lines (46 loc) · 1.21 KB
/
pyproject.toml
File metadata and controls
54 lines (46 loc) · 1.21 KB
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
[project]
name = "bricks"
version = "0.1.0"
description = "Add your description here"
authors = [
{ name = "JimLundin", email = "jimeriklundin@gmail.com" }
]
dependencies = [
]
readme = "README.md"
requires-python = ">= 3.12"
[project.scripts]
hello = "bricks:hello"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.ruff]
fix = true
unsafe-fixes = true
[tool.ruff.lint]
select = ["ALL"]
[tool.ruff.per-file-ignores]
"tests/**/*.py" = [
"INP001",
"D",
# at least this three should be fine in tests:
"S101", # asserts allowed in tests...
"ARG", # Unused function args -> fixtures nevertheless are functionally relevant...
"FBT", # Don't care about booleans as positional arguments in tests, e.g. via @pytest.mark.parametrize()
# The below are debateable
"PLR2004", # Magic value used in comparison, ...
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
]
[tool.rye]
managed = true
dev-dependencies = [
"pytest>=7.4.4",
"ruff>=0.1.11",
"pytest-cov>=4.1.0",
]
[tool.pytest.ini_options]
pythonpath = "."
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["src/bricks"]