-
Notifications
You must be signed in to change notification settings - Fork 6
/
pyproject.toml
62 lines (53 loc) · 1.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
[tool.black]
line-length = 120
verbose = 1
color = true
exclude = '''
/(
| .mypy_cache
| .pytest_cache
| venv
)/
'''
[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 120
src_paths = ["stable_gnn", "tests", "tutorials"]
skip = [".mypy_cache", ".pytest_cache" , "venv", "./venv"]
[tool.flake8]
max-line-length = 120
rst-roles = "class, func, ref"
rst-directives = "envvar, exception"
extend-ignore = "E203,E501,W503,D100,D105,D107,D400,D104,F401,DAR401"
docstring-convention = "pep257"
exclude=".git,*tests*,./venv,./build"
docstring_style = "sphinx"
[tool.mypy]
exclude=".git,*tests*,./venv,./build,.tests/,.mypy*,.pytest*,*.egg*"
# Disallow dynamic typing
disallow_any_unimported = false
disallow_subclassing_any = false
ignore_missing_imports = true
check_untyped_defs = true
strict_optional = true
no_implicit_reexport = false
# Disallow untyped definitions and calls
disallow_untyped_calls = true
disallow_incomplete_defs = true
# Configuring warnings
warn_unused_ignores = true
warn_redundant_casts = false
no_site_packages = true
# Misc things
strict_equality = false
allow_redefinition = true
[tool.pytest.ini_options]
addopts = "--capture=tee-sys -q"
log_cli = 1
testpaths = ["tests"]
[tool.coverage.run]
relative_files = true