pyproject.toml 857 Bytes
Newer Older
liangjing's avatar
v1  
liangjing committed
1
2
# Copyright (c) 2023, NVIDIA CORPORATION.  All rights reserved.

liangjing's avatar
liangjing committed
3
4
5
6
7
8
[build-system]
requires = [
    "setuptools",
    "pybind11",
]

liangjing's avatar
v1  
liangjing committed
9
10
11
[tool.isort]
profile = "black"  # black-compatible
line_length = 100  # should match black parameters
liangjing's avatar
liangjing committed
12
py_version = 310  # python 3.8 as a target version
liangjing's avatar
v1  
liangjing committed
13
14
15
16
17
18
19
20
21
22
23
known_first_party = ["megatron"]  # FIRSTPARTY section
known_third_party = ["transformer_engine"]  # THIRDPARTY section
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
default_section = "THIRDPARTY"
extend_skip = ["setup.py"]

[tool.black]
line_length = 100
skip_string_normalization = true
# recongized by future versions, disallows to reformat code with incompatible versions
# Matches NeMO version so people working on both codebases don't need two different version of black installed
liangjing's avatar
liangjing committed
24
25
required_version = "24"  
skip_magic_trailing_comma = true