pychecker help

老Mac mini续命记:Thunderbolt转接eGPU实战GTX 1050Ti 外接显卡坞(eGPU)常被视为新平台专属,但通过Thunderbolt协议转接,老设备也能突破图形性能瓶颈。Thunderbolt 1接口虽仅有10Gbps带宽,但配合PCIe设备映射,依然能驱动标准显卡完成渲染加速。在macOS High Sierra中,NVIDIA Web Driver的版本匹配与SIP设置是启用GTX 1050Ti的关键;而在Windows 10 Boot Camp环境下,雷电驱动的枚举顺序决定了显卡能否被正确识别。这套方案让2012 late Mac mini借助Razer Cor 阅读详情
pychecker --help
Usage for: checker.py [options] PACKAGE ...

    PACKAGEs can be a python package, module or filename

Long options can be preceded with no- to turn off (e.g., no-namedargs)

Category
  Options:           Change warning for ... [default value]

Major Options:
      --only         only warn about files passed on the command line [off]
  -e, --level        the maximum error level of warnings to be displayed
  -#, --limit        the maximum number of warnings to be displayed [10]
  -F, --config       specify .pycheckrc file to use
      --quixote      support Quixote's PTL modules
      --evil         list of evil C extensions that crash the interpreter [[]]
      --keepgoing    ignore import errors [off]

Error Control:
  -i, --import       unused imports [on]
  -k, --pkgimport    unused imports from __init__.py [on]
  -M, --reimportself module imports itself [on]
  -X, --reimport     reimporting a module [on]
  -x, --miximport    module does import and from ... import [on]
  -l, --local        unused local variables, except tuples [on]
  -t, --tuple        all unused local variables, including tuples [off]
  -9, --members      all unused class data members [off]
  -v, --var          all unused module variables [off]
  -p, --privatevar   unused private module variables [on]
  -g, --allglobals   report each occurrence of global warnings [off]
  -n, --namedargs    functions called with named arguments (like keywords) [off]
  -a, --initattr     Attributes (members) must be defined in __init__() [off]
  -I, --initsubclass Subclass.__init__() not defined [off]
  -u, --callinit     Baseclass.__init__() not called [on]
  -0, --abstract     Subclass needs to override methods that only throw exceptions [on]
  -N, --initreturn   Return None from __init__() [on]
  -8, --unreachable  unreachable code [off]
  -2, --constCond    a constant is used in a conditional statement [on]
  -1, --constant1    1 is used in a conditional statement (if 1: or while 1:) [off]
      --stringiter   check if iterating over a string [on]
      --stringfind   check improper use of string.find() [on]
  -A, --callattr     Calling data members as functions [off]
  -y, --classattr    class attribute does not exist [on]
  -S, --self         First argument to methods [self]
      --classmethodargs First argument to classmethods [['cls', 'klass']]
  -T, --argsused     unused method/function arguments [on]
  -z, --varargsused  unused method/function variable arguments [on]
  -G, --selfused     ignore if self is unused in methods [off]
  -o, --override     check if overridden methods have the same signature [on]
      --special      check if __special__ methods exist and have the correct signature [on]
  -U, --reuseattr    check if function/class/method names are reused [on]
  -Y, --positive     check if using unary positive (+) which is usually meaningless [on]
  -j, --moddefvalue  check if modify (call method) on a parameter that has a default value [on]
      --changetypes  check if variables are set to different types [off]
      --unpack       check if unpacking a non-sequence [on]
      --unpacklen    check if unpacking sequence with the wrong length [on]
      --badexcept    check if raising or catching bad exceptions [on]
  -4, --noeffect     check if statement appears to have no effect [on]
      --modulo1      check if using (expr % 1), it has no effect on integers and strings [on]
      --isliteral    check if using (expr is const-literal), doesn't always work on integers and strings [on]
      --constattr    check if a constant string is passed to getattr()/setattr() [on]

Possible Errors:
  -r, --returnvalues check consistent return values [on]
  -C, --implicitreturns check if using implict and explicit return values [on]
  -O, --objattrs     check that attributes of objects exist [on]
  -7, --slots        various warnings about incorrect usage of __slots__ [on]
  -3, --properties   using properties with classic classes [on]
      --emptyslots   check if __slots__ is empty [on]
  -D, --intdivide    check if using integer division [on]
  -w, --shadow       check if local variable shadows a global [on]
  -s, --shadowbuiltin check if a variable shadows a builtin [on]

Security:
      --input        check if input() is used [on]
  -6, --exec         check if the exec statement is used [off]

Suppressions:
  -q, --stdlib       ignore warnings from files under standard library [off]
  -b, --blacklist    ignore warnings from the list of modules
             [['Tkinter', 'wxPython', 'gtk', 'GTK', 'GDK']]
  -Z, --varlist      ignore global variables not used if name is one of these values
             [['__version__', '__warningregistry__', '__all__', '__credits__', '__test__', '__author__', '__email__', '__revision__', '__id__', '__copyright__', '__license__', '__date__']]
  -E, --unusednames  ignore unused locals/arguments if name is one of these values
             [['_', 'empty', 'unused', 'dummy']]
      --missingattrs ignore missing class attributes if name is one of these values
             [[]]
      --deprecated   ignore use of deprecated modules/functions [on]

Complexity:
  -L, --maxlines     maximum lines in a function [200]
  -B, --maxbranches  maximum branches in a function [50]
  -R, --maxreturns   maximum returns in a function [10]
  -J, --maxargs      maximum # of arguments to a function [10]
  -K, --maxlocals    maximum # of locals in a function [40]
  -5, --maxrefs      maximum # of identifier references (Law of Demeter) [5]
  -m, --moduledoc    no module doc strings [off]
  -c, --classdoc     no class doc strings [off]
  -f, --funcdoc      no function/method doc strings [off]

Debug:
      --rcfile       print a .pycheckrc file generated from command line args
  -P, --printparse   print internal checker parse structures [off]
  -d, --debug        turn on debugging for checker [off]
      --findevil     print each class object to find one that crashes [off]
  -Q, --quiet        turn off all output except warnings [off]
  -V, --version      print the version of PyChecker and exit

PyChecker(Python语法检查工具) PyChecker是一个专门检查python语法和编程规范的工具,用它可以方便地查找python文件中不够规范的地方,改进你的python程序.里面包含安装包,官方网址,和一个测试文件,用法见文档。 立即下载

相关推荐

pychecker工具

python的代码语法检查工具,检查代码中有运行时不易进入的代码块中有问题的地方。

Python 代码分析工具:PyChecker、Pylint,简解

PyChecker PyChecker是Python代码的静态分析工具,它能够帮助查找Python代码中的bug,而且能够对代码的复杂度和难度提供警告。 PyChecker可以工作在多种方式之下。首先,PyChecker会检查导入文件中包含的模块,检查导入是否正确,同时检查函数中的类和方法是否正确: 全局量没有找到,比如没有导入模块 传递给函数、方法、构造器的参数数目错

笑洁 7317

Python语法垃圾回收机制原理解析

主要介绍了Python语法垃圾回收机制原理解析,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友可以参考下

python 静态分析_PyChecker:Python代码静态分析工具

1 概述PyChecker是Python代码的静态分析工具,它能够帮助查找Python代码的bug,而且能够对代码的复杂度和格式等提出警告。PyChecker可以工作在多种方式之下。首先,PyChecker会导入所检查文件中包含的模块,检查导入是否正确,同时检查文件中的函数、类和方法等。推荐阅读:Ubuntu 14.04安装Python 3.3.5PyChecker可以检查出来的问题有如下几种:全...

weixin_39539563的博客 654

保姆级教程:用Zemax 18.9复现单模光纤耦合仿真(附康宁SMF-28e参数)

本文提供了一份详细的Zemax 18.9单模光纤耦合仿真教程,以康宁SMF-28e为例,涵盖从软件设置、材料参数输入到系统构建和优化的全流程。通过光束耦合分析和物理光学传播(POP)技术,帮助用户准确模拟光纤耦合效率,并解决常见问题,适用于光学设计初学者和专业人士。

weixin_27330481的博客 313

Zabbix 简介、优缺点、基础原理

(8条消息) Zabbix 的基础概念、原理和架构_Lee木木的博客-优快云博客_zabbix架构类型Zabbix 的基础概念、原理和架构_Lee木木的博客-优快云博客_zabbix架构类型 --------------------------------------------------------------------------------------------------------------------------- 一、Zabbix 简介 Zabbix是由A...

weixin_50196615的博客 2037

Python代码分析工具:PyChecker、Pylint

1 概述PyChecker是Python代码的静态分析工具,它能够帮助查找Python代码的bug,而且能够对代码的复杂度和格式等提出警告。PyChecker可以工作在多种方式之下。首先,PyChecker会导入所检查文件中包含的模块,检查导入是否正确,同时检查文件中的函数、类和方法等。PyChecker可以检查出来的问题有如下几种:全局量没有找到,比如没有导入模块传递给函数...

weixin_33816946的博客 785

RK3568-MIPI屏幕调试实战:LCD初始化时序解析与转换

本文详细解析RK3568平台MIPI屏幕调试中的LCD初始化时序,重点介绍DCS Write与Generic Write数据类型的转换方法,并提供厂家时序到RK格式的实战转换案例。通过理解上电初始化时序的重要性,帮助开发者快速解决屏幕不亮、花屏等常见调试问题,提升RK3568硬件开发效率。

d6e7f8g9h的博客 186

pychecker 使用指南

PyChecker是一个对Python源代码进行语法检查的工具。 主页:http://pychecker.sourceforge.net PyChecker is a static analysis tool for finding bugs in Python source code. It finds problems that are typically caught by a

随笔记录 1933

从零组装一台会‘看’的无人机:手把手教你配置NUC机载电脑与D435深度相机(环境搭建篇)

本文详细介绍了如何从零开始组装一台具备视觉能力的智能无人机,重点讲解了NUC机载电脑与D435深度相机的配置方法。通过Ubuntu系统安装、ROS环境搭建、深度学习框架配置等步骤,帮助开发者实现无人机的自主避障和目标跟踪功能。文章还提供了性能优化和常见问题解决方案,是无人机视觉系统开发的实用指南。

weixin_30915275的博客 396

最新 抖音 X-Gorgon 0408 和8408 设备注册协议

抖音app先是检测了你的手机cpu架构,是x86还是armeabi,通过cpu架构的不同来调用so内不同的xg方法,所以导致现在最新版抖音app的xg算法有0408和8408两种。两种都是最新版,因为我发现当我使用oppo手机安装最新版抖音抓包的xg是8408,而当我用小米或者华为安装最新版抖音,抓包以后发现xg是0408。抖音IOS XG84 设备注册激活协议代码片段。...

Q44804487的博客 1万+

pychecker的使用

PyChecker是一个对Python源代码进行语法检查的工具。

426

深度学习入门:一文详解BP神经网络

在BP神经网络中,输入层和输出层的节点个数都是确定的,而隐含层节点个数不确定,那么应该设置为多少。实际上,隐含层节点个数的多少对神经网络的性能是有影响的,有一个经验公式可以确定隐含层。上面是对隐含层和输出层之间的权值和输出层的阀值计算调整量,而针对输入层和隐含层和隐含层的阀值调。在BP神经网络中,输入层节点没有阀值。神经网络,神经网络在机器学习中应用比较广泛,比如函数逼近,模式识别,分类,数据压缩,数据。要求输入模式要有足够的随机性,对输入模式的噪声比较敏感,即对于剧烈变化的输入模式,训。

Machine Learning with Tutors 4万+

PyChecker使用指南

简介<br />PyChecker是一个对Python源代码进行语法检查的工具。<br />主页:http://pychecker.sourceforge.net<br /><br />PyChecker is a static analysis tool for finding bugs in Python source code. It finds problems that are typically caught by a compiler for less dynamic languages, l

thoughtwise的专栏 3630

外骨骼机器人(二):自适应振荡器

振荡器是一种数学工具,可以用于实时跟踪、预测类周期信号的频率、相位、幅值等,而助行外骨骼机器人需要自动适应人体的行走频率、幅度,两者相结合,就能使助行外骨骼机器人拥有更舒适、更自然的行走步态。 ......

行者无疆的博客 4263

如何创建 SAP ABAP CDS View 的 Association

所以本文我们虽然学习了如何创建 SAP CDS View 的 association,知道了 association 是用来在 CDS View 里将两张数据库表关联起来,但根本不知道怎么使用这个 association. 而且从 association 的写法来看,似乎和本教程之前介绍 inner join,left join 这些数据库表的连接操作没什么区别,都是根据两张表的 carrid 和 connid 字段相同进行的连接。只看到了我们在 CDS View 源代码实现里,放出来的四个字段。

2007 年 ~ 2025 年,深耕 SAP 技术 18 年 904

解决PyCharm中报出 “Shadows built-in name xxx“ 的警告

解决PyCharm中报出 “Shadows built-in name ‘map’” 的警告 问题描述: PyCharm中报出 “Shadows built-in name xxx” 原因: xxx 函数名和内置的函数名称一致 解决办法: 换一个函数名称 在PyCharm中取消勾选:Setting -> Editor -> Inspections -> Shaowing built-ins ...

AUTUMN STUDIO 1万+

精雕软件(JDpaint) 5.5 绿色版

精雕软件(JDpaint) 5.5 绿色版精雕软件(JDpaint) 5.5 绿色版精雕软件(JDpaint) 5.5 绿色版

python PEP8问题及解决

1、shadows name ‘xxxx’ from outer scope 警告解决 在PyCharm中提示shadows name ‘xxxx’ from outer scope,当你在外部有个相同名称的变量在方法内部被重新指定了新的值,也就是说你在外部的相同名称的变量压根就没有任何作用。所以PyCharm就回提示这个信息。这个时候就需要我们去调整具体代码了。 python的变量作用域: 模块对应global, 最内层为local, 外层为nonlocal 变量查找顺序:内层作用域->外层-&g

liu0yun的博客 1922

android 蓝牙通讯demo

android 下蓝牙通讯demo,实现了发现蓝牙,使能蓝牙,通过蓝牙发送消息。

华为的C语言编程规范.pdf

华为技术有限公司内部技术规范。本规范制定了编写C语言程序的基本原则、规则和建议。从代码的清晰、简洁、可测试、安全、程序效率、可移植各个方面对C语言编程作出了具体指导。

PyChecker 在游戏引擎环境下的使用

           PyChecker 在游戏引擎环境下的使用             Horin|贺勤        Email: horin153@msn.com        Blog: http://blog.youkuaiyun.com/horin153/    用 Python 写程序,是否在软件发布版本中,还发现了一些低级的语法错误,比如变量名拼写错误、使用了没有导入的模块?是否担心因为测试逻

Horin与程序 9138

运行import一个包的时候出现:module = self._system_import(name, *args, **kwargs)

pycharm加载pip后的包无法运行的解决办法

XDFLYQ的博客 1188

关于python模块循环导入(circular imports)/相对导入(Relative Imports)/绝对导入(Absolute Imports)的官方资料

In general, don’t usefrom modulename import*.Doing so clutters the importer’s namespace. Some peopleavoid this idiom even with the few modules that were designed to be imported in this manner. Modul

anydroid的专栏 7151

Pychecker man

PYCHECKER(1)                                                                                 User Commands                                                                                 PYCHECKER(1)

凌风探梅的专栏 838

windows下Python3安装PyChecker模块

1,概述 PyChecker是Python代码的静态分析工具,它能够帮助查找Python代码的bug,而且能够对代码的复杂度和格式等提出警告。 PyChecker可以工作在多种方式之下。首先,PyChecker会导入所检查文件中包含的模块,检查导入是否正确,同时检查文件中的函数、类和方法等。 PyChecker可以检查出来的问题有如下几种: 全局量没有找到,比如没有导入模块 传递给函数、...

qq_34172340的博客 1769

python语法检查利器pychecker

一个很好的python语法检查工具

gqdw 6896

windows下安装使用pychecker

参考:http://fateful.blog.sohu.com/194713593.html 看python的时候,讲到测试!安装了一下pychecker: 1、下载pychecker包:http://sourceforge.net/projects/pychecker/; 2、cmd命令行进入解压文件夹,运行命令python setup.py install; 3、在python

渐行渐远 1075

时间序列压缩python_python中的序列解压缩

时间序列压缩pythonSequence unpacking in python allows you to take objects in a collection and store them in variables for later use. This is particularly useful when a function or method returns a sequence ...

weixin_26705651的博客 523
上一篇: 偏振式投影
下一篇: Pychecker man
凌风探梅
博客等级 码龄19年 2575粉丝 113原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值