Alina Lozovskaya commited on
Commit
8383ea5
·
1 Parent(s): 7539bf4

Rework pyproject.toml

Browse files
Files changed (1) hide show
  1. pyproject.toml +51 -26
pyproject.toml CHANGED
@@ -10,51 +10,76 @@ description = ""
10
  readme = "README.md"
11
  requires-python = ">=3.10"
12
  dependencies = [
13
- "reachy_mini",
14
- "reachy_mini_dances_library",
15
- "reachy_mini_toolbox",
16
- "openai>=2.1",
17
  "fastrtc",
18
- "aiortc==1.13.0",
 
 
 
19
  "onnxruntime",
20
- "PyGObject>=3.42.2, <=3.46.0",
 
 
 
 
 
 
21
  "torch",
22
  "transformers",
23
- "num2words",
24
- "dotenv",
25
  "ultralytics",
26
- "supervision",
27
- "mediapipe>=0.10.14",
28
  ]
29
 
30
- [tool.uv.sources]
31
- reachy-mini-dances-library = { path = "../reachy_mini_dances_library", editable = true }
32
- reachy-mini = { git = "ssh://git@github.com/pollen-robotics/reachy_mini.git", branch = "develop" }
33
- reachy-mini-toolbox = { git = "ssh://git@github.com/pollen-robotics/reachy_mini_toolbox.git", branch = "main" }
34
- fastrtc = { git = "ssh://git@github.com/gradio-app/fastrtc.git", branch = "main" }
35
 
36
- [project.optional-dependencies]
37
  dev = ["pytest", "ruff==0.12.0"]
38
 
39
- [project.scripts]
40
- reachy-mini-conversation-demo = "reachy_mini_conversation_demo.main:main"
 
 
 
41
 
42
  [tool.setuptools]
43
  package-dir = { "" = "src" }
44
  include-package-data = true
45
 
46
-
47
  [tool.setuptools.packages.find]
48
  where = ["src"]
49
 
50
-
51
  [tool.setuptools.package-data]
52
- reachy_mini = ["**/*"] # Inclut tous les fichiers non .py
53
 
54
  [tool.ruff]
55
- exclude = []
56
- lint.extend-select = ["I", "D"]
57
- lint.ignore = [
58
- "D203", # Incompatible with D211
59
- "D213", # Incompatible with D212
 
 
 
 
 
 
60
  ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  readme = "README.md"
11
  requires-python = ">=3.10"
12
  dependencies = [
13
+ "aiortc>=1.13.0",
 
 
 
14
  "fastrtc",
15
+ "gradio>=5.49.0",
16
+ "huggingface_hub>=0.34.4",
17
+ "mediapipe>=0.10.14",
18
+ "num2words",
19
  "onnxruntime",
20
+ "openai>=2.1",
21
+ "PyGObject>=3.42.2,<=3.46.0",
22
+ "python-dotenv",
23
+ "reachy_mini_dances_library",
24
+ "reachy_mini_toolbox",
25
+ "reachy_mini",
26
+ "supervision",
27
  "torch",
28
  "transformers",
 
 
29
  "ultralytics",
 
 
30
  ]
31
 
32
+ [project.scripts]
33
+ reachy-mini-conversation-demo = "reachy_mini_conversation_demo.main:main"
 
 
 
34
 
35
+ [dependency-groups]
36
  dev = ["pytest", "ruff==0.12.0"]
37
 
38
+ [tool.uv.sources]
39
+ reachy_mini_dances_library = { path = "../reachy_mini_dances_library", editable = true }
40
+ reachy_mini = { git = "ssh://git@github.com/pollen-robotics/reachy_mini.git", branch = "develop" }
41
+ reachy_mini_toolbox = { git = "ssh://git@github.com/pollen-robotics/reachy_mini_toolbox.git", branch = "main" }
42
+ fastrtc = { git = "ssh://git@github.com/gradio-app/fastrtc.git", branch = "main" }
43
 
44
  [tool.setuptools]
45
  package-dir = { "" = "src" }
46
  include-package-data = true
47
 
 
48
  [tool.setuptools.packages.find]
49
  where = ["src"]
50
 
 
51
  [tool.setuptools.package-data]
52
+ reachy_mini_conversation_demo = ["images/*"]
53
 
54
  [tool.ruff]
55
+ line-length = 119
56
+ exclude = [".venv", "dist", "build", "**/__pycache__", "*.egg-info", ".mypy_cache", ".pytest_cache"]
57
+
58
+ [tool.ruff.lint]
59
+ select = [
60
+ "E", # pycodestyle errors
61
+ "F", # pyflakes
62
+ "W", # pycodestyle warnings
63
+ "I", # isort
64
+ "C4", # flake8-comprehensions
65
+ "D", # pydocstyle
66
  ]
67
+ ignore = [
68
+ "E501", # handled by formatter
69
+ "D203", # blank line before class docstring (conflicts with D211)
70
+ "D213", # summary on second line (conflicts with D212)
71
+ ]
72
+
73
+ [tool.ruff.lint.isort]
74
+ length-sort = true
75
+ lines-after-imports = 2
76
+ no-lines-before = ["standard-library", "local-folder"]
77
+ known-local-folder = ["reachy_mini_conversation_demo"]
78
+ known-first-party = ["reachy_mini", "reachy_mini_dances_library", "reachy_mini_toolbox"]
79
+ split-on-trailing-comma = true
80
+
81
+ [tool.ruff.format]
82
+ quote-style = "double"
83
+ indent-style = "space"
84
+ skip-magic-trailing-comma = false
85
+ line-ending = "auto"