From 41c344cbd787a04b1a42cabd9d0cfc88fcbe0434 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Tue, 12 Apr 2022 21:28:29 +0200 Subject: [PATCH] Bump dev dependencies. (#123) * Bump dev dependencies. * Pinning is a lie. There **does not** exist a single set of pinned dependencies that work with all versions we say we work with (from 3.6 to 3.10). --- potodo/po_file.py | 2 +- requirements-dev.in | 7 --- requirements-dev.txt | 114 ++++--------------------------------------- tox.ini | 14 ++++-- 4 files changed, 21 insertions(+), 116 deletions(-) delete mode 100644 requirements-dev.in diff --git a/potodo/po_file.py b/potodo/po_file.py index f6498c6..3f958cd 100644 --- a/potodo/po_file.py +++ b/potodo/po_file.py @@ -20,7 +20,7 @@ class PoFileStats: self.path: Path = path self.filename: str = path.name self.mtime = os.path.getmtime(path) - self.pofile: polib.POFile = polib.pofile(self.path) + self.pofile: polib.POFile = polib.pofile(str(self.path)) self.directory: str = self.path.parent.name self.obsolete_entries: Sequence[polib.POEntry] = self.pofile.obsolete_entries() diff --git a/requirements-dev.in b/requirements-dev.in deleted file mode 100644 index 892aedf..0000000 --- a/requirements-dev.in +++ /dev/null @@ -1,7 +0,0 @@ --r requirements.txt -black -coverage -flake8 -mypy -pytest -tox diff --git a/requirements-dev.txt b/requirements-dev.txt index ae678ee..7f00325 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,105 +1,9 @@ -# -# This file is autogenerated by pip-compile -# To update, run: -# -# pip-compile requirements-dev.in -# -appdirs==1.4.4 - # via - # black - # virtualenv -attrs==20.3.0 - # via pytest -black==20.8b1 - # via -r requirements-dev.in -certifi==2020.12.5 - # via - # -r requirements.txt - # requests -chardet==4.0.0 - # via - # -r requirements.txt - # requests -click==7.1.2 - # via black -coverage==5.3.1 - # via -r requirements-dev.in -distlib==0.3.1 - # via virtualenv -filelock==3.0.12 - # via - # tox - # virtualenv -flake8==3.8.4 - # via -r requirements-dev.in -gitignore-parser==0.0.8 - # via -r requirements.txt -idna==2.10 - # via - # -r requirements.txt - # requests -iniconfig==1.1.1 - # via pytest -mccabe==0.6.1 - # via flake8 -mypy-extensions==0.4.3 - # via - # black - # mypy -mypy==0.790 - # via -r requirements-dev.in -packaging==20.8 - # via - # pytest - # tox -pathspec==0.8.1 - # via black -pluggy==0.13.1 - # via - # pytest - # tox -polib==1.1.0 - # via -r requirements.txt -py==1.10.0 - # via - # pytest - # tox -pycodestyle==2.6.0 - # via flake8 -pyflakes==2.2.0 - # via flake8 -pyparsing==2.4.7 - # via packaging -pytest==6.2.1 - # via -r requirements-dev.in -regex==2020.11.13 - # via black -requests==2.25.1 - # via -r requirements.txt -simple-term-menu==0.10.4 - # via -r requirements.txt -six==1.15.0 - # via - # tox - # virtualenv -toml==0.10.2 - # via - # black - # pytest - # tox -tox==3.20.1 - # via -r requirements-dev.in -typed-ast==1.4.2 - # via - # black - # mypy -typing-extensions==3.7.4.3 - # via - # black - # mypy -urllib3==1.26.4 - # via - # -r requirements.txt - # requests -virtualenv==20.2.2 - # via tox +-r requirements.txt +black +coverage +flake8 +mypy +pytest +tox +types-requests +types-polib diff --git a/tox.ini b/tox.ini index 0b81a6f..4a5ade2 100644 --- a/tox.ini +++ b/tox.ini @@ -12,17 +12,19 @@ skip_covered = True show_missing = True [tox] -envlist = py36, py37, py38, py39, flake8, mypy, black, coverage +envlist = py3{6,7,8,9,10}, flake8, mypy, black, coverage skip_missing_interpreters = True [testenv] -deps = -r requirements-dev.txt +deps = + coverage + pytest commands = coverage run -m pytest setenv = COVERAGE_FILE={toxworkdir}/.coverage.{envname} [testenv:coverage] -depends = py36, py37, py38, py39 +depends = py38, py39, py310 parallel_show_output = True skip_install = True setenv = COVERAGE_FILE={toxworkdir}/.coverage @@ -32,12 +34,18 @@ commands = [testenv:flake8] skip_install = True +deps = flake8 commands = flake8 tests/ potodo/ [testenv:black] skip_install = True +deps = black commands = black --check --diff tests/ potodo/ [testenv:mypy] skip_install = True +deps = + mypy + types-requests + types-polib commands = mypy --ignore-missing-imports --strict potodo/