nassauwinter / zephyr-python-api

Python wrappers for Zephyr Scale API
Apache License 2.0
1 stars 4 forks source link

Fix PR check: Pylint on python 3.11 #20

Closed nassauwinter closed 5 months ago

nassauwinter commented 5 months ago

Job output:

tox: py311
  py311: commands[0]> pipenv install --dev --skip-lock
  Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own for any project. You can set PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and create its own instead. You can set PIPENV_VERBOSITY=-1 to suppress this warning.
  The flag --skip-lock has been reintroduced (but is not recommended).  Without 
  the lock resolver it is difficult to manage multiple package indexes, and hash 
  checking is not provided.  However it can help manage installs with current 
  deficiencies in locking across platforms.
  Installing dependencies from Pipfile...
  Installing dependencies from Pipfile...
  To activate this project's virtualenv, run pipenv shell.
  Alternatively, run a command inside the virtualenv with pipenv run.
  py[31](https://github.com/nassauwinter/zephyr-python-api/actions/runs/8686674623/job/23819125124?pr=19#step:6:32)1: commands[1]> python --version
  Python 3.11.9
  py311: commands[2]> pip --version
  pip 24.0 from /home/runner/work/zephyr-python-api/zephyr-python-api/.tox/py311/lib/python3.11/site-packages/pip (python 3.11)
  py311: commands[3]> pylint --version
  pylint 3.1.0
  astroid 3.1.0
  Python 3.11.9 (main, Apr  2 2024, 15:20:57) [GCC 9.4.0]
  py311: commands[4]> pylint --rcfile .pylintrc zephyr
  pylint: Command line or configuration file:1: UserWarning: 'BaseException' is not a proper value for the 'overgeneral-exceptions' option. Use fully qualified name (maybe 'builtins.BaseException' ?) instead. This will cease to be checked at runtime when the configuration upgrader is released.
  pylint: Command line or configuration file:1: UserWarning: 'Exception' is not a proper value for the 'overgeneral-exceptions' option. Use fully qualified name (maybe 'builtins.Exception' ?) instead. This will cease to be checked at runtime when the configuration upgrader is released.
  ************* Module zephyr.scale.zephyr_session
  zephyr/scale/zephyr_session.py:96:12: R17[37](https://github.com/nassauwinter/zephyr-python-api/actions/runs/8686674623/job/23819125124?pr=19#step:6:38): Use 'yield from' directly instead of yielding each element one by one (use-yield-from)