style: move isort and pytest config to pyproject

This commit is contained in:
Saurav Maheshkar
2023-02-23 11:34:18 +00:00
parent 6175ee2c4c
commit a78f8a0495
2 changed files with 24 additions and 20 deletions
+24
View File
@@ -1,3 +1,27 @@
[tool.black]
line-length = 119
target-version = ['py36']
[tool.isort]
line_length = 119
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
lines_after_imports = 2
default_section = "FIRSTPARTY"
known_first_party = "pet"
known_third_party = [
"numpy",
"torch",
"accelerate",
"transformers",
]
[tool.pytest.ini_options]
doctest_optionflags = [
"NUMBER",
"NORMALIZE_WHITESPACE",
"ELLIPSIS",
]
-20
View File
@@ -1,23 +1,3 @@
[isort]
default_section = FIRSTPARTY
ensure_newline_before_comments = True
force_grid_wrap = 0
include_trailing_comma = True
known_first_party = pet
known_third_party =
numpy
torch
accelerate
transformers
line_length = 119
lines_after_imports = 2
multi_line_output = 3
use_parentheses = True
[flake8]
ignore = E203, E722, E501, E741, W503, W605
max-line-length = 119
[tool:pytest]
doctest_optionflags=NUMBER NORMALIZE_WHITESPACE ELLIPSIS