-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathpyproject.toml
More file actions
73 lines (61 loc) · 1.82 KB
/
Copy pathpyproject.toml
File metadata and controls
73 lines (61 loc) · 1.82 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "picosnitch"
dynamic = ["version"]
requires-python = ">=3.12"
description = "Monitor network traffic per executable using BPF"
readme = "README.md"
license = "GPL-3.0-or-later"
classifiers = [
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Topic :: System :: Networking :: Monitoring",
"Topic :: System :: Monitoring",
]
[project.optional-dependencies]
sql = ["psycopg[binary]", "pymysql"]
all = ["picosnitch[sql]"]
[project.scripts]
picosnitch = "picosnitch.cli:start_picosnitch"
[project.urls]
Homepage = "https://github.com/elesiuta/picosnitch"
Documentation = "https://elesiuta.github.io/picosnitch/"
Repository = "https://github.com/elesiuta/picosnitch"
[tool.hatch.version]
path = "src/picosnitch/__init__.py"
[tool.hatch.build.targets.sdist]
include = [
"/src/picosnitch/",
"/hatch_build.py",
"/README.md",
"/LICENSE",
"/debian/picosnitch.service",
]
[tool.hatch.build.targets.wheel]
packages = ["src/picosnitch"]
exclude = ["src/picosnitch/bpf/vmlinux*.h"]
[tool.hatch.build.targets.wheel.hooks.custom]
path = "hatch_build.py"
[tool.hatch.build.targets.wheel.force-include]
"src/picosnitch/ui/static/app.js" = "picosnitch/ui/static/app.js"
"src/picosnitch/ui/static/favicon.svg" = "picosnitch/ui/static/favicon.svg"
"src/picosnitch/ui/static/index.html" = "picosnitch/ui/static/index.html"
"src/picosnitch/ui/static/style.css" = "picosnitch/ui/static/style.css"
[tool.ruff]
target-version = "py312"
line-length = 200
exclude = [".venv", "build", "dist"]
[tool.ruff.lint]
extend-select = ["I"] # import sorting
[dependency-groups]
dev = [
"pillow==12.3.0",
"playwright==1.61.0",
"pyan3==2.3.1",
"pytest==9.1.1",
"ruff==0.15.20",
"tach==0.35.0",
"ty==0.0.55",
]