-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
109 lines (91 loc) · 2.02 KB
/
pyproject.toml
File metadata and controls
109 lines (91 loc) · 2.02 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
[build-system]
requires = ["uv_build>=0.9.22,<0.10.0"]
build-backend = "uv_build"
[project]
name = "afl-sim"
version = "0.1.0"
description = "A simulator for asynchronous federated learning."
readme = "README.md"
authors = [
{ name = "Charikleia Iakovidou", email = "chariako@u.northwestern.edu" }
]
requires-python = ">=3.12"
license = { text = "MIT" }
classifiers = [
"Programming Language :: Python :: 3.12",
"Operating System :: OS Independent",
]
dependencies = [
"loguru>=0.7.3",
"matplotlib>=3.10.8",
"numpy>=2.4.0",
"pydantic>=2.12.5",
"pydantic-settings>=2.12.0",
"pyyaml>=6.0.3",
"torch>=2.9.1",
"torchvision>=0.24.1",
"typer>=0.21.1",
]
[project.scripts]
afl-sim = "afl_sim.cli:app"
[dependency-groups]
dev = [
"mypy>=1.19.1",
"pytest>=9.0.2",
"ruff>=0.14.11",
"types-pyyaml>=6.0.12.20250915",
"pre-commit>=4.5.1",
"pytest-cov>=7.0.0",
]
# ruff
[tool.ruff]
line-length = 88
indent-width = 4
target-version = "py312"
[tool.ruff.lint]
# E: pycodestyle, F: Pyflakes, I: isort, B: flake8-bugbear, UP: pyupgrade
select = ["E", "F", "I", "B", "UP"]
ignore = ["E501"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
# mypy
[tool.mypy]
python_version = "3.12"
strict = true
ignore_missing_imports = false
files = ["src", "tests"]
[[tool.mypy.overrides]]
module = [
"matplotlib.*",
"loguru.*",
"torchvision.*",
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
disallow_incomplete_defs = false
check_untyped_defs = true
# pytest
[tool.pytest]
minversion = "9.0"
addopts = "-ra -q --strict-markers --cov=afl_sim --cov-report=html"
testpaths = ["tests"]
markers = [
"slow: marks tests as slow",
"integration: marks tests as integration",
]
pythonpath = ["src"]
# coverage
[tool.coverage.run]
branch = true
source = ["afl_sim"]
[tool.coverage.report]
show_missing = true
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
]
[tool.coverage.html]
directory = "htmlcov"