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

Weird behavior with tests not being executed #18

Open
lenoqt opened this issue Feb 8, 2022 · 0 comments
Open

Weird behavior with tests not being executed #18

lenoqt opened this issue Feb 8, 2022 · 0 comments

Comments

@lenoqt
Copy link

lenoqt commented Feb 8, 2022

Hi, I am having the following tox.ini file, and the testenv is not being created and tests not running.

[tox]
min_version = 3.10
env_list = py310, lint, typecheck

[testenv]
groups = dev
commands =
    pdm run pytest

[testenv:lint]
groups = lint
skip_install = true
commands =
    pdm run black --check bash_log2nl/
    pdm run pflake8 bash_log2nl/

[testenv:typecheck]
groups = typecheck
skip_install = true
commands =
    pdm run mypy bash_log2nl/

These are the logs.

using tox.ini: /Users/gustavo.barrios/Documents/Projects/bash-log2nl/tox.ini (pid 15076)
using tox-3.24.5 from /Users/gustavo.barrios/Documents/Projects/bash-log2nl/__pypackages__/3.10/lib/tox/__init__.py (pid 15076)
lint reusing: /Users/gustavo.barrios/Documents/Projects/bash-log2nl/.tox/lint
[15088] /Users/gustavo.barrios/Documents/Projects/bash-log2nl$ /usr/local/opt/[email protected]/bin/python3.10 -m pip freeze --path .tox/lint/__pypackages__/3.10/lib >.tox/lint/log/lint-83.log
lint installed: black==22.1.0,click==8.0.3,flake8==4.0.1,mccabe==0.6.1,mypy-extensions==0.4.3,pathspec==0.9.0,platformdirs==2.4.1,pycodestyle==2.8.0,pyflakes==2.4.0,pyproject-flake8==0.0.1a2,toml==0.10.2,tomli==2.0.0
lint run-test-pre: PYTHONHASHSEED='2566144580'
lint run-test: commands[0] | pdm run -p /Users/gustavo.barrios/Documents/Projects/bash-log2nl/.tox/lint black --check bash_log2nl/
[15101] /Users/gustavo.barrios/Documents/Projects/bash-log2nl$ /usr/local/bin/pdm run -p .tox/lint black --check bash_log2nl/
All done! ✨ 🍰 ✨
6 files would be left unchanged.
lint run-test: commands[1] | pdm run -p /Users/gustavo.barrios/Documents/Projects/bash-log2nl/.tox/lint pflake8 bash_log2nl/
[15106] /Users/gustavo.barrios/Documents/Projects/bash-log2nl$ /usr/local/bin/pdm run -p .tox/lint pflake8 bash_log2nl/
typecheck reusing: /Users/gustavo.barrios/Documents/Projects/bash-log2nl/.tox/typecheck
[15114] /Users/gustavo.barrios/Documents/Projects/bash-log2nl$ /usr/local/opt/[email protected]/bin/python3.10 -m pip freeze --path .tox/typecheck/__pypackages__/3.10/lib >.tox/typecheck/log/typecheck-29.log
typecheck installed: mypy==0.931,mypy-extensions==0.4.3,tomli==2.0.0,typing_extensions==4.0.1
typecheck run-test-pre: PYTHONHASHSEED='2566144580'
typecheck run-test: commands[0] | pdm run -p /Users/gustavo.barrios/Documents/Projects/bash-log2nl/.tox/typecheck mypy bash_log2nl/
[15128] /Users/gustavo.barrios/Documents/Projects/bash-log2nl$ /usr/local/bin/pdm run -p .tox/typecheck mypy bash_log2nl/
bash_log2nl/validators.py:51: error: Statement is unreachable  [unreachable]
bash_log2nl/validators.py:55: error: Statement is unreachable  [unreachable]
bash_log2nl/models.py:16: error: Variable "bash_log2nl.models.Base" is not valid as a type  [valid-type]
bash_log2nl/models.py:16: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
bash_log2nl/models.py:16: error: Invalid base class "Base"  [misc]
bash_log2nl/models.py:78: error: Variable "bash_log2nl.models.Base" is not valid as a type  [valid-type]
bash_log2nl/models.py:78: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
bash_log2nl/models.py:78: error: Invalid base class "Base"  [misc]
bash_log2nl/models.py:111: error: Variable "bash_log2nl.models.Base" is not valid as a type  [valid-type]
bash_log2nl/models.py:111: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
bash_log2nl/models.py:111: error: Invalid base class "Base"  [misc]
bash_log2nl/models.py:124: error: Variable "bash_log2nl.models.Base" is not valid as a type  [valid-type]
bash_log2nl/models.py:124: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
bash_log2nl/models.py:124: error: Invalid base class "Base"  [misc]
bash_log2nl/models.py:137: error: Variable "bash_log2nl.models.Base" is not valid as a type  [valid-type]
bash_log2nl/models.py:137: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
bash_log2nl/models.py:137: error: Invalid base class "Base"  [misc]
bash_log2nl/parsers.py:9: error: Missing type parameters for generic type "list"  [type-arg]
bash_log2nl/parsers.py:17: error: "AST" has no attribute "value"  [attr-defined]
bash_log2nl/parsers.py:25: error: Missing type parameters for generic type "dict"  [type-arg]
bash_log2nl/parsers.py:25: error: Missing type parameters for generic type "list"  [type-arg]
bash_log2nl/parsers.py:25: error: Missing type parameters for generic type "Dict"  [type-arg]
bash_log2nl/parsers.py:25: error: Missing type parameters for generic type "List"  [type-arg]
bash_log2nl/parsers.py:33: error: Missing type parameters for generic type "dict"  [type-arg]
bash_log2nl/parsers.py:33: error: Missing type parameters for generic type "list"  [type-arg]
bash_log2nl/parsers.py:33: error: Missing type parameters for generic type "Dict"  [type-arg]
bash_log2nl/parsers.py:33: error: Missing type parameters for generic type "List"  [type-arg]
bash_log2nl/parsers.py:38: error: Missing type parameters for generic type "Dict"  [type-arg]
bash_log2nl/parsers.py:50: error: Missing type parameters for generic type "Dict"  [type-arg]
bash_log2nl/configs.py:53: error: Missing return statement  [return]
Found 25 errors in 4 files (checked 6 source files)
ERROR: InvocationError for command /usr/local/bin/pdm run -p .tox/typecheck mypy bash_log2nl/ (exited with code 1)
___________________________________ summary ____________________________________
  lint: commands succeeded
ERROR:   typecheck: commands failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant