-
Notifications
You must be signed in to change notification settings - Fork 124
/
pyproject.toml
112 lines (95 loc) · 2.33 KB
/
pyproject.toml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "submitit"
readme = "README.md"
authors = [{name = "Facebook AI Research"}]
requires-python = ">=3.8"
dynamic = ["version", "description"]
dependencies = [
"cloudpickle>=1.2.1",
"typing_extensions>=3.7.4.2"
]
# zip_safe = false
classifiers=[
"License :: OSI Approved :: MIT License",
"Topic :: System :: Distributed Computing",
"Development Status :: 5 - Production/Stable",
]
[project.urls]
Source = "https://github.com/facebookincubator/submitit"
Tracker = "https://github.com/facebookincubator/submitit/issues"
[project.optional-dependencies]
dev = [
# Test
"pytest>=7.4.2",
"pytest-asyncio>=0.15.0",
"pytest-cov>=4.1.0",
"coverage[toml]>=5.1",
# Format
"black==23.3.0",
"isort==5.11.5",
"pre-commit>=1.15.2",
# Linters
"mypy>=1.4.1",
"pylint>=3.0.0",
# Release
"flit>=3.5.1"
]
[tool.black]
line-length = 110
exclude = '''
/(
| \.git
| \.mypy_cache
| venv
)/
'''
[tool.isort]
profile = "black"
line_length = 110
skip_gitignore = true
[tool.pylint]
[tool.pylint."MESSAGES CONTROL"]
# disabled messages
# * no-member has a lot of false positive, mypy does it better
disable = """
broad-except,
fixme,
invalid-name,
logging-fstring-interpolation,
missing-docstring,
no-else-return,
no-member,
protected-access,
too-few-public-methods,
useless-import-alias,
unspecified-encoding
"""
[tool.pylint.DESIGN]
max-args = 6
[tool.pylint.FORMAT]
max-line-length = "140"
[tool.pylint.SIMILARITIES]
ignore-imports = "yes"
[tool.coverage]
[tool.coverage.run]
omit = ["*/test_*.py", "/tmp/pytest*/*"]
data_file = "test_results/coverage/coverage.bin"
[tool.coverage.html]
directory = "test_results/coverage_html"
[tool.coverage.xml]
output = "test_results/coverage/coverage.xml"
[tool.coverage.report]
fail_under = 90
exclude_lines = [
"pragma: no cover", # Re-enable the standard pragma
"raise NotImplementedError",
"^\\s+\\.\\.\\.$",
]
[tool.mypy]
show_error_codes = true
[[tool.mypy.overrides]]
module = ['cloudpickle', 'ipdb', 'pytest', 'setuptools']
ignore_missing_imports = true