taichi-dev/taichi

Enable pylint for python/taichi folder

Open

#3,107 创建于 2021年10月8日

在 GitHub 查看
 (2 评论) (2 反应) (1 负责人)C++ (2,384 fork)batch import
enhancementgood first issuewelcome contribution

仓库指标

Star
 (28,195 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Currently if you run pylint python/taichi/ there're a lot of warnings/errors. We'd like to get rid of these and run pylint in CI. Also in .pylintrc we skip a few checkers but it'd be nice to enable some of them back, e.g. import-outside-toplevel.

This work is good for new contributors, and you're welcome to submit one PR per pylint checker/rule.

  • singleton comparison (C0121)
  • import outside top level (C0415)
  • redefined-outer-name (W0621)
  • redefined-builtins (W0622)
  • consider using from import (R0402)
  • use f-string (C0209)
  • no-self-use (R0201)
  • useless-super-delegation (W0235)
  • redefined-outer-name (W0621)
  • unused-variable (W0612)
  • no-else-return (R1705)
  • reimport (W0404)
  • unused-import (W0611)
  • wildcard-import (W0401)

Reference: https://pylint.pycqa.org/en/latest/technical_reference/features.html

贡献者指南