Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade static and publishing deps #166

Merged
merged 2 commits into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions src/pytest_mypy.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ def pytest_collect_file(path, parent): # type: ignore


class MypyFile(pytest.File):

"""A File that Mypy will run on."""

@classmethod
Expand All @@ -161,7 +160,6 @@ def collect(self):


class MypyItem(pytest.Item):

"""A Mypy-related test Item."""

MARKER = "mypy"
Expand Down Expand Up @@ -194,7 +192,6 @@ def repr_failure(self, excinfo):


class MypyFileItem(MypyItem):

"""A check for Mypy errors in a File."""

def runtest(self):
Expand All @@ -221,7 +218,6 @@ def reportinfo(self):


class MypyStatusItem(MypyItem):

"""A check for a non-zero mypy exit status."""

def runtest(self):
Expand All @@ -233,7 +229,6 @@ def runtest(self):

@attr.s(frozen=True, kw_only=True)
class MypyResults:

"""Parsed results from Mypy."""

_abspath_errors_type = Dict[str, List[str]]
Expand Down
10 changes: 5 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,18 @@ testpaths = tests
passenv = TWINE_*
constrain_package_deps = false
deps =
build[virtualenv] ~= 0.9.0
twine ~= 4.0.0
build[virtualenv] ~= 1.0.0
twine ~= 5.0.0
commands =
{envpython} -m build --outdir {envtmpdir} .
twine {posargs:check} {envtmpdir}/*

[testenv:static]
deps =
bandit ~= 1.7.0
black ~= 22.3.0
flake8 ~= 4.0.0
mypy >= 0.900, < 0.910
black ~= 24.2.0
flake8 ~= 7.0.0
mypy ~= 1.8.0
commands =
black --check src tests
flake8 src tests
Expand Down
Loading