Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 23, 2024
1 parent 3a7ed54 commit e93cf3b
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 23 deletions.
44 changes: 22 additions & 22 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
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"
Expand Down
1 change: 0 additions & 1 deletion src/codecrumbs/_attribute.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
...
Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/test_rewrite.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=[
Expand Down
1 change: 1 addition & 0 deletions tests/test_calling_expression.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
PYTEST_DONT_REWRITE
"""

import ast
import sys

Expand Down

0 comments on commit e93cf3b

Please sign in to comment.