Skip to content

Commit

Permalink
Merge pull request #2042 from PyCQA/bugfix/packaging-pypoetry
Browse files Browse the repository at this point in the history
Fix packaging pypoetry
  • Loading branch information
staticdev committed Dec 15, 2022
2 parents 501855c + b4b41e8 commit 4641ed8
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 16 deletions.
4 changes: 0 additions & 4 deletions setup.cfg → .flake8
@@ -1,7 +1,3 @@
[tool:pytest]
testpaths = tests


[flake8]
max-line-length = 100
# Ignore non PEP 8 compliant rules as suggested by black
Expand Down
13 changes: 8 additions & 5 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 15 additions & 6 deletions pyproject.toml
Expand Up @@ -32,9 +32,6 @@ classifiers = [
"Topic :: Utilities",
]
urls = { Changelog = "https://github.com/pycqa/isort/blob/main/CHANGELOG.md" }
packages = [
{ include = "isort" },
]
include = [
{ path = "tests", format = "sdist" },
{ path = "ACKNOWLEDGEMENTS.md" },
Expand Down Expand Up @@ -89,13 +86,25 @@ smmap2 = "^3.0.1"
gitdb2 = "^4.0.2"
libcst = "^0.3.18"
mypy-extensions = "^0.4.3"
toml = "^0.10.2"
pre-commit = ">=2.13.0"
pytest-benchmark = "^3.4.1"
toml = "^0.10.2"
types-pkg-resources = "^0.1.2"
pre-commit = "^2.13.0"
types-colorama = "^0.4.2"
types-toml = "^0.1.3"
vulture = "^1.0"
vulture = ">=1.0"

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

[tool.coverage.run]
branch = true
source = ["git_portfolio", "tests"]

[tool.coverage.report]
show_missing = true
fail_under = 100

[tool.poetry.scripts]
isort = "isort.main:main"
Expand Down
14 changes: 13 additions & 1 deletion tests/integration/test_projects_using_isort.py
Expand Up @@ -74,7 +74,19 @@ def test_websockets(tmpdir):

def test_airflow(tmpdir):
git_clone("https://github.com/apache/airflow.git", tmpdir)
run_isort([str(tmpdir), "--skip-glob", "*.pyi", "--skip", "tests"])
run_isort(
[
str(tmpdir),
"--skip-glob",
"*.pyi",
"--skip",
"tests",
"--skip",
"docker_tests",
"--skip",
"docs",
]
)


def test_typeshed(tmpdir):
Expand Down

0 comments on commit 4641ed8

Please sign in to comment.