techfreakworm commited on
Commit
aa72c2d
·
unverified ·
1 Parent(s): 9a263a3

chore: pin runtime + dev dependencies and configure pytest/ruff

Browse files
Files changed (2) hide show
  1. pyproject.toml +16 -0
  2. requirements.txt +16 -0
pyproject.toml ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [tool.pytest.ini_options]
2
+ pythonpath = ["."]
3
+ markers = [
4
+ "gpu: marks tests that need a GPU (use --gpu to enable)",
5
+ ]
6
+
7
+ [tool.ruff]
8
+ line-length = 100
9
+ target-version = "py311"
10
+
11
+ [tool.ruff.lint]
12
+ select = ["E", "F", "I", "B", "UP"]
13
+ ignore = ["E501"] # line length is enforced by formatter, not linter
14
+
15
+ [tool.ruff.lint.per-file-ignores]
16
+ "tests/*" = ["E402"] # imports inside test functions are fine
requirements.txt ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ gradio>=5.0,<6.0
2
+ spaces>=0.30.0
3
+ huggingface_hub>=0.27.0
4
+ torch>=2.4.0
5
+ torchvision
6
+ torchaudio
7
+ numpy
8
+ Pillow
9
+ einops
10
+ safetensors
11
+ tqdm
12
+
13
+ # Dev / test
14
+ pytest>=8.0
15
+ pytest-asyncio>=0.23
16
+ ruff>=0.5