Skip to content

Commit

Permalink
style: move isort and pytest config to pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
SauravMaheshkar committed Feb 23, 2023
1 parent 6175ee2 commit a78f8a0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 20 deletions.
24 changes: 24 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 changes: 0 additions & 20 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a78f8a0

Please sign in to comment.