File size: 1,019 Bytes
2f5127c
f7dbe1f
2f5127c
 
 
 
f7dbe1f
 
 
 
 
 
 
70596d0
2f5127c
 
 
 
 
 
 
 
f7dbe1f
 
 
 
2f5127c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f7dbe1f
 
2f5127c
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
[project]
name = "trl-example"
version = "0.0.0"
requires-python = ">=3.13"

dependencies = [
  "accelerate>=1.7.0",
  "datasets>=3.6.0",
  "deepspeed>=0.17.1",
  "huggingface[cli]>=0.0.1",
  "peft>=0.15.2",
  "torch>=2.7.1",
  "transformers>=4.52.4",
  "trl>=0.18.2",
]

[tool.ruff]
target-version = "py39"
line-length = 119

[tool.ruff.lint]
ignore = [
  "B028", # warning without explicit stacklevel
  "C408", # dict() calls (stylistic)
  "C901", # function complexity
  "E501",
]
extend-select = ["E", "F", "I", "W", "UP", "B", "T", "C"]

[tool.ruff.lint.per-file-ignores]
# Allow prints in auxiliary scripts
"examples/**.py" = ["T201"]
"scripts/**.py" = ["T201"]
# Ignore import violations in all `__init__.py` files.
"__init__.py" = ["F401"]

[tool.ruff.lint.isort]
lines-after-imports = 2
known-first-party = ["trl"]

[tool.pytest.ini_options]
markers = [
  "slow: marks tests as slow (deselect with '-m \"not slow\"')",
  "low-priority: marks tests as low priority (deselect with '-m \"not low-priority\"')",
]