Skip to content

Commit

Permalink
Merge pull request #2115 from SauravMaheshkar/main
Browse files Browse the repository at this point in the history
chore: move configurations to `pyproject.toml`
  • Loading branch information
staticdev committed Apr 1, 2023
2 parents c59f28d + 7d1a499 commit 76a71b1
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 28 deletions.
20 changes: 0 additions & 20 deletions .coveragerc

This file was deleted.

5 changes: 0 additions & 5 deletions .isort.cfg

This file was deleted.

29 changes: 26 additions & 3 deletions pyproject.toml
Expand Up @@ -90,16 +90,32 @@ vulture = ">=1.0"
jinja2 = "<3.1.0"

[tool.coverage.paths]
source = ["src", "*/site-packages"]
source = [
"isort/",
".tox/*/lib/python*/site-packages/isort/",
".tox/*/lib/site-packages/isort/"
]
tests = ["tests", "*/tests"]

[tool.coverage.run]
branch = true
source = ["git_portfolio", "tests"]
source = ["isort", "tests"]
omit = [
"isort/_vendored/*",
"tests/*",
"isort/deprecated/*",
]

[tool.coverage.report]
show_missing = true
fail_under = 100
fail_under = 99
exclude_lines = [
"pragma: no cover",
"except ImportError:",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
"raise NotImplementedError",
]

[tool.poetry.scripts]
isort = "isort.main:main"
Expand Down Expand Up @@ -136,3 +152,10 @@ module = "tests.*"
allow_untyped_defs = true
allow_incomplete_defs = true
allow_untyped_calls = true

[tool.isort]
profile = "hug"
src_paths = ["isort", "tests"]
skip = [
"tests/unit/example_crlf_file.py"
]

0 comments on commit 76a71b1

Please sign in to comment.