Skip to content

Commit

Permalink
Fixed issues with tests
Browse files Browse the repository at this point in the history
  • Loading branch information
legopitstop committed Jul 1, 2024
1 parent 8965de1 commit cdd0354
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 9 deletions.
1 change: 1 addition & 0 deletions debug.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
mypy serverjars
flake8 serverjars
pytest
tox
18 changes: 18 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
[build-system]
requires = ["setuptools>=42.0", "wheel"]
build-backend = "setuptools.build_meta"

[tool.pytest.ini_options]
addopts = "--cov=serverjars"
testpaths = ["tests"]

[tool.mypy]
mypy_path = "serverjars"
check_untyped_defs = true
disallow_any_generics = true
ignore_missing_imports = true
no_implicit_optional = true
show_error_codes = true
strict_equality = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
no_implicit_reexport = true
2 changes: 1 addition & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
flake8==3.9.2
tox==3.24.3
tox==4.15.1
pytest==6.2.5
pytest-cov==2.12.1
mypy===0.910
16 changes: 8 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[tox]
minversion = 3.8.0
envlist = py36, py37, py38, py39, flake8, mypy
envlist = py38, py39, py310, py311, flake8, mypy
isolated_build = true

[gh-actions]
python =
3.6: py36, mypy, flake8
3.7: py37
3.8: py38
3.8: py38, mypy, flake8
3.9: py39
3.10: py310
3.11: py311

[testenv]
setenv =
Expand All @@ -19,12 +19,12 @@ commands =
pytest --basetemp={envtmpdir}

[testenv:flake8]
basepython = python3.6
basepython = python3.8
deps = flake8
commands = flake8 geysermc tests
commands = flake8 serverjars tests

[testenv:mypy]
basepython = python3.6
basepython = python3.8
deps =
-r{toxinidir}/requirements_dev.txt
commands = mypy geysermc
commands = mypy serverjars

0 comments on commit cdd0354

Please sign in to comment.