-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
121 lines (104 loc) · 2.6 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
113
114
115
116
117
118
119
120
121
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "submitit_oar"
authors = [
{name = "Yao Chi", email = "yao.chi@inria.fr"},
]
description = "OAR plugin for Submitit"
readme = "README.md"
requires-python = ">=3.8"
keywords = ["submitit", "oar"]
classifiers=[
"License :: OSI Approved :: MIT License",
"Topic :: System :: Distributed Computing",
"Development Status :: 5 - Production/Stable",
]
dependencies = [
"cloudpickle>=1.2.1",
"typing_extensions>=3.7.4.2",
"submitit==1.5.1"
]
dynamic = ["version"]
[project.entry-points.submitit]
executor = "submitit_oar.oar:OarExecutor"
job_environment = "submitit_oar.oar:OarJobEnvironment"
[project.urls]
Source = "https://github.com/ychiat35/submitit_oar.git"
Tracker = "https://github.com/ychiat35/submitit_oar.git/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",
"types-pkg_resources>=0.1.2",
"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
show_missing = true
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