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

New version of PYLINT issues warning #233

Closed
jnguiot opened this issue Apr 28, 2020 · 2 comments
Closed

New version of PYLINT issues warning #233

jnguiot opened this issue Apr 28, 2020 · 2 comments
Assignees
Labels

Comments

@jnguiot
Copy link
Member

jnguiot commented Apr 28, 2020

************* Module collectives.api
collectives\api.py:172:7: W1309: Using an f-string that does not have any interpolated variables (f-string-without-interpolation)
collectives\api.py:400:7: W1309: Using an f-string that does not have any interpolated variables (f-string-without-interpolation)
************* Module collectives.forms.auth
collectives\forms\auth.py:66:8: W1309: Using an f-string that does not have any interpolated variables (f-string-without-interpolation)
************* Module collectives.routes.administration
collectives\routes\administration.py:41:12: W1309: Using an f-string that does not have any interpolated variables (f-string-without-interpolation)
collectives\routes\administration.py:41:24: W1309: Using an f-string that does not have any interpolated variables (f-string-without-interpolation)
************* Module collectives.routes.auth
collectives\routes\auth.py:127:21: W1309: Using an f-string that does not have any interpolated variables (f-string-without-interpolation)

Checks are failing due to a new version of pylint (2.5.0) which issue a warning if an fstring is used without reason.

@jnguiot jnguiot self-assigned this Apr 28, 2020
@jnguiot
Copy link
Member Author

jnguiot commented Apr 28, 2020

On obtient aussi cette erreur:

Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.7.6/x64/bin/pylint", line 8, in <module>
    sys.exit(run_pylint())
  File "/opt/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/pylint/__init__.py", line 22, in run_pylint
    PylintRun(sys.argv[1:])
  File "/opt/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/pylint/lint/run.py", line 338, in __init__
    linter.check(args)
  [...]
  File "/opt/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/astroid/rebuilder.py", line 666, in _visit_functiondef
    body=[self.visit(child, newnode) for child in node.body],
  File "/opt/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/astroid/rebuilder.py", line 666, in <listcomp>
    body=[self.visit(child, newnode) for child in node.body],
  File "/opt/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/astroid/rebuilder.py", line 177, in visit
    return visit_method(node, parent)
  File "/opt/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/astroid/rebuilder.py", line 911, in visit_return
    newnode.postinit(self.visit(node.value, newnode))
  File "/opt/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/astroid/rebuilder.py", line 177, in visit
    return visit_method(node, parent)
  File "/opt/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/astroid/rebuilder.py", line 384, in visit_binop
    self._bin_op_classes[type(node.op)], node.lineno, node.col_offset, parent
KeyError: <class '_ast.Sub'>
##[error]Process completed with exit code 1.

@jnguiot
Copy link
Member Author

jnguiot commented Apr 28, 2020

Regarding the stacktrace, I have open a bug on pylint project. Our problem seems linked with dkim:
pylint-dev/pylint#3540

Cyr-GHub pushed a commit to Cyr-GHub/collectives that referenced this issue May 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant