forked from flux-framework/flux-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
54 lines (48 loc) · 1.47 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
[tool.black]
target-version = ['py36']
force-exclude = "/^(env/|src/bindings/python/flux/utils)/"
[tool.isort]
profile = "black" # needed for black/isort compatibility
skip = [
"src/bindings/python/flux/job/kvs.py",
"src/bindings/python/flux/job/__init__.py",
"src/bindings/python/flux/resource/__init__.py"]
[tool.mypy]
python_version = "3.6"
files = ["src/cmd/**/*.py", "src/bindings/python/flux", "t/python/*.py"]
mypy_path = ["src/bindings/python", "t/python/tap", "t/python"]
allow_redefinition = true
exclude = ["src/bindings/python/flux/utils/parsedatetime", "env/", "src/bindings/python/flux/utils/tomli"]
# Having the cache makes spurious errors about looking up handle
# It's slightly slower, but more correct to not have it
cache_dir="/dev/null"
namespace_packages = true
ignore_errors = true
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "subflux"
ignore_errors = true
ignore_missing_imports = true
follow_imports = 'skip'
[[tool.mypy.overrides]]
module = [
"_flux._core",
"_flux._security",
"_flux._hostlist",
"_flux._idset",
"_flux._rlist",
"_flux.cffi",
"setuptools",
"flux.utils",
"flux.utils.parsedatetime",
"flux.utils.tomli",
"tomllib",
"pycotap",
# These are temporary while we find a way to generate stubs for flux.constants
"flux.job.list",
"flux.core.handle",
"python.t1000-service-add-remove"
]
ignore_errors = true
ignore_missing_imports = true
follow_imports = 'skip'