1
1
[tool .mypy ]
2
2
ignore_missing_imports = true
3
3
no_implicit_optional = true
4
- scripts_are_modules = true
5
4
plugins = [
6
- " pydantic.mypy"
5
+ " pydantic.mypy" ,
6
+ ]
7
+ scripts_are_modules = true
8
+
9
+ [tool .pytest .ini_options ]
10
+ # Add the specified `OPTS` to the set of command line arguments as if they had
11
+ # been specified by the user.
12
+ addopts = " -Werror::FutureWarning --log-cli-level=INFO -sv --durations=0"
13
+ # The defined variables will be added to the environment before any tests are
14
+ # run, part of pytest-env plugin
15
+ env = [
16
+ " DISABLE_SYMLINKS_IN_WINDOWS_TESTS=1" ,
17
+ " HF_TOKEN=" ,
18
+ " HUGGINGFACE_CO_STAGING=1" ,
19
+ " HUGGING_FACE_HUB_TOKEN=" ,
7
20
]
8
21
9
22
[tool .ruff ]
10
- # Ignored rules:
11
- # "E501" -> line length violation
12
- ignore = [" E501" ]
13
- select = [" E" , " F" , " I" , " W" ]
14
- line-length = 119
15
23
exclude = [
16
24
" .eggs" ,
17
25
" .git" ,
@@ -32,20 +40,19 @@ exclude = [
32
40
" dist" ,
33
41
" venv" ,
34
42
]
43
+ # Ignored rules:
44
+ # "E501" -> line length violation
45
+ ignore = [" E501" ]
46
+ line-length = 119
47
+ select = [" E" , " F" , " I" , " W" ]
35
48
36
49
[tool .ruff .lint .isort ]
37
- lines-after-imports = 2
38
50
known-first-party = [" huggingface_hub" ]
51
+ lines-after-imports = 2
39
52
40
- [tool .pytest .ini_options ]
41
- # Add the specified `OPTS` to the set of command line arguments as if they had
42
- # been specified by the user.
43
- addopts = " -Werror::FutureWarning --log-cli-level=INFO -sv --durations=0"
44
- # The defined variables will be added to the environment before any tests are
45
- # run, part of pytest-env plugin
46
- env = [
47
- " HF_TOKEN=" ,
48
- " HUGGING_FACE_HUB_TOKEN=" ,
49
- " HUGGINGFACE_CO_STAGING=1" ,
50
- " DISABLE_SYMLINKS_IN_WINDOWS_TESTS=1" ,
51
- ]
53
+ [tool .tomlsort ]
54
+ all = true
55
+ in_place = true
56
+ spaces_before_inline_comment = 2 # Match Python PEP 8
57
+ spaces_indent_inline_array = 4 # Match Python PEP 8
58
+ trailing_comma_inline_array = true
0 commit comments