File size: 1,047 Bytes
210ef30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
[project]
name = "prova-brain"
version = "0.1.0"
requires-python = ">=3.12"
dependencies = [
    "httpx>=0.27",
    "pydantic>=2.7",
    "python-dotenv>=1.0",
    "pyyaml>=6.0",
    "rich>=13.7",
    "tzdata>=2024.1",
]

[project.optional-dependencies]
dev = ["pytest>=8.2", "pytest-asyncio>=0.23", "ruff>=0.5"]

[tool.ruff]
line-length = 100
target-version = "py312"
# Eval reports quote whatever the model wrote, code blocks included. Formatting a transcript
# would rewrite the evidence, and `ruff format --check` failing on one is CI failing on a record
# of a test run rather than on the code.
extend-exclude = ["brain/evals/reports"]

[tool.ruff.lint]
select = ["E", "F", "I", "B", "UP"]

[tool.ruff.lint.per-file-ignores]
# Persona text is prose; long lines in it are the text itself.
"brain/persona/prova.py" = ["E501"]
"brain/tests/*" = ["E501"]
# A Kaggle notebook kept as a script: imports sit in the cells that use them.
"training/lora/*" = ["E402", "E501"]

[tool.pytest.ini_options]
testpaths = ["brain/tests"]
asyncio_mode = "auto"