diff --git a/pyproject.toml b/pyproject.toml index f7ef62f..e1879c7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,47 +1,47 @@ [build-system] -requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" +requires = ["poetry-core"] [tool.coverage.report] -exclude_lines = ["pragma: no cover","assert False[,^]","never_called\\(","if False:"] +exclude_lines = ["pragma: no cover", "assert False[,^]", "never_called\\(", "if False:"] [tool.coverage.run] -source = ["src","tests","codecrumbs"] -parallel = true branch = true data_file = "$TOP/.coverage" +parallel = true +source = ["src", "tests", "codecrumbs"] [tool.poetry] -name = "codecrumbs" -version = "0.1.0" -description = "leave codecrumbs behind so that other can adopt the changes" authors = ["Frank Hoffmann <15r10nk@polarbit.de>"] +classifiers = [ + "Development Status :: 4 - Beta", + "Framework :: Pytest", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + "Programming Language :: Python :: Implementation :: CPython" +] +description = "leave codecrumbs behind so that other can adopt the changes" +homepage = "https://github.com/15r10nk/codecrumbs" license = "MIT" +name = "codecrumbs" readme = "README.md" repository = "https://github.com/15r10nk/codecrumbs" -homepage = "https://github.com/15r10nk/codecrumbs" -classifiers = [ - "Development Status :: 4 - Beta", - "Framework :: Pytest", - "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", - "Operating System :: OS Independent", - "Programming Language :: Python :: Implementation :: CPython", -] +version = "0.1.0" [tool.poetry.dependencies] +asttokens = {version = "^2.2.1", python = ">=3.11"} +executing = {version = "^1.2.0", python = ">=3.11"} python = "^3.8" -executing = {version="^1.2.0", python=">=3.11"} -asttokens = {version="^2.2.1", python=">=3.11"} [tool.poetry.group.dev.dependencies] -pytest = "^7.2.0" -inline-snapshot = "^0.1.1" coverage = {extras = ["toml"], version = "^6.5.0"} -patch = "^1.16" +coverage-enable-subprocess = "^1.0" +inline-snapshot = "^0.1.1" mypy = "^0.990" +patch = "^1.16" +pytest = "^7.2.0" pytest-cov = "^4.0.0" -coverage-enable-subprocess = "^1.0" [tool.poetry.group.doc.dependencies] mkdocs = "^1.4.2" diff --git a/src/codecrumbs/_attribute.py b/src/codecrumbs/_attribute.py index 55b908d..c2d4f92 100644 --- a/src/codecrumbs/_attribute.py +++ b/src/codecrumbs/_attribute.py @@ -71,7 +71,6 @@ def attribute_renamed(new_name, *, since=None): ```pycon >>> class Test: ... old_method = attribute_renamed("new_method") - ... ... def new_method(self): ... return 5 ... diff --git a/tests/fixtures/test_rewrite.py b/tests/fixtures/test_rewrite.py index 148d997..e34f217 100644 --- a/tests/fixtures/test_rewrite.py +++ b/tests/fixtures/test_rewrite.py @@ -80,6 +80,7 @@ def func(): doctest.testfile(__file__,module_relative=False,globs=locals()) ''' + # a complicated way to say that doctest are not supported for python 3.11 @pytest.fixture( params=[ diff --git a/tests/test_calling_expression.py b/tests/test_calling_expression.py index 1edfe67..ba50b63 100644 --- a/tests/test_calling_expression.py +++ b/tests/test_calling_expression.py @@ -1,6 +1,7 @@ """ PYTEST_DONT_REWRITE """ + import ast import sys