pyproject.toml 706 Bytes
Newer Older
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
1
2
3
[build-system]
requires = [
    "setuptools >= 40.6.2",
4
    "torch >= 1.4.0",
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
5
6
    "wheel >= 0.30.0"
]
7
build-backend = "setuptools.build_meta:__legacy__"
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
8
9
10
11
12
13
14
15
16

[tool.black]
line-length = 120
exclude = '''
/(
    \.git
  | \.mypy_cache
  | \.pytest_cache
  | build
17
  | docs
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
18
19
20
  | stubs
)/
'''
21
22

[tool.isort]
23
24
25
26
27
28
29
30
line_length = 120
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
skip_glob = ["build/*", "stubs/*"]
# Don't split "import" and "from".
force_sort_within_sections = true
31
known_third_party = ["benchmark_dataset", "datasets", "golden_configs", "helpers", "models", "numpy", "pytest", "recommonmark", "setuptools", "torch", "torch_pg", "torchtext", "torchvision"]