-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
57 lines (48 loc) · 1.46 KB
/
Copy pathpyproject.toml
File metadata and controls
57 lines (48 loc) · 1.46 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
55
56
57
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "photorand"
version = "1.1.0"
authors = [{ name = "Daniel Illescas Romero", email = "dev@daniel-ir.eu" }]
description = "A True Random Number Generator using raw camera sensor data."
readme = "README.md"
requires-python = ">=3.11"
dependencies = ["rawpy>=0.26.1", "numpy>=2.0.0", "cryptography>=46.0.0"]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
[project.scripts]
photorand = "photorand.cli.main:main"
[project.urls]
Homepage = "https://github.com/illescasDaniel/photorand"
[project.optional-dependencies]
dev = ["pytest", "ruff"]
build = ["vermin", "build", "twine"]
examples = ["imageio", "matplotlib"]
# --- RUFF (Linter & Import Sorter) ---
[tool.ruff]
line-length = 160
target-version = 'py312'
src = ['src']
[tool.ruff.lint]
# Enable specific rules:
# F = Pyflakes (Finds unused imports/variables)
# I = isort (Sorts imports)
# E = pycodestyle errors
select = ['F', 'I', 'E']
# Allow fixing for all enabled rules (imports will be removed/sorted automatically)
fixable = ['ALL']
# --- RUFF end ---
[tool.ruff.lint.isort]
# Ensure compatibility with YAPF's vertical style
combine-as-imports = true
lines-after-imports = 2
[tool.pytest.ini_options]
log_cli = true
log_cli_level = "WARNING"
log_cli_format = "[%(levelname)s] %(message)s"
[tool.hatch.build]
exclude = ["examples", "tests/data"]