Skip to content

Commit

Permalink
Update dependencies in pyproject.toml and poetry.lock
Browse files Browse the repository at this point in the history
  • Loading branch information
tyutyutyu committed Mar 3, 2024
1 parent d9426db commit 6e45eb3
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 26 deletions.
56 changes: 55 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,23 @@ packages = [{ include = "msps", from = "src" }, { include = "tests" }]
[tool.poetry.dependencies]
python = ">=3.10"
rich = "^13.7.0"
typer = "^0.9.0"
coverage = "^7.4.3"
tox = "^4.13.0"

[tool.poetry.group.test.dependencies]
pytest = "^8.0.0"
typer = "^0.9.0"
coverage = "^7.4.3"
tox = "^4.13.0"

[tool.poetry.group.typing.dependencies]
mypy = "^1.8.0"

[tool.poetry.group.lint.dependencies]
pylint = "^3.0.3"


[tool.poetry.group.dev.dependencies]
black = "^24.2.0"
pytest-sugar = "^1.0.0"
pytest-cov = "^4.1.0"

[tool.poetry.scripts]
msps = "msps.__main__:main"
Expand Down
45 changes: 24 additions & 21 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,28 +1,31 @@
[tox]
requires =
tox>=4
env_list = lint, type, py{310,311,312}

[testenv]
description = run unit tests
deps =
pytest>=7
pytest-cov
pytest-sugar
skip_install = true
allowlist_externals = poetry
commands_pre =
poetry install
commands =
coverage run --branch --omit=tests/* --module pytest {posargs:tests}
coverage xml
poetry run pytest tests/ --import-mode importlib --cov=msps --cov-report=term-missing --cov-report=xml --cov-report=html

[testenv:lint]
description = run linters
skip_install = true
deps =
black==22.12
commands = black {posargs:.}
; [testenv]
;
; deps =
; commands =
; coverage run --branch --omit=tests/* --module pytest {posargs:tests}
; coverage xml

[testenv:type]
description = run type checks
deps =
mypy>=0.991
commands =
mypy {posargs:src tests}
; [testenv:lint]
; description = run linters
; skip_install = true
; deps =
; black==22.12
; commands = black {posargs:.}

; [testenv:type]
; description = run type checks
; deps =
; mypy>=0.991
; commands =
; mypy {posargs:src tests}

0 comments on commit 6e45eb3

Please sign in to comment.