forked from AFPy/potodo
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).
This commit is contained in:
parent
7efa7a0fbc
commit
41c344cbd7
|
@ -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()
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
-r requirements.txt
|
||||
black
|
||||
coverage
|
||||
flake8
|
||||
mypy
|
||||
pytest
|
||||
tox
|
|
@ -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
|
||||
|
|
14
tox.ini
14
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/
|
||||
|
|
Loading…
Reference in New Issue