| 1234567891011121314151617181920212223242526272829303132333435363738 |
- {
- // "python.pythonPath": "/usr/bin/python3",
- "python.defaultInterpreterPath": "/usr/local/python3.8/bin/python3",
- "python.formatting.provider": "yapf",
- "python.formatting.yapfArgs": [
- "--style",
- "{column_limit: 150}"
- ],
- "python.linting.pylintArgs": [
- "--extension-pkg-allow-list=pydantic", // from pydantic import BaseModel 报缺失
- "--function-naming-style=any", // 不限制函数名 命名规范
- "--argument-naming-style=any", // 不限制参数名 命名规范
- "--variable-naming-style=any", // 不限制变量名 命名规范
- "--attr-naming-style=any", // 不限制属性名 命名规范
- "--method-naming-style=any", // 不限制方法名 命名规范
- "--const-naming-style=any", // 不限制常量名 命名规范
- "--module-naming-style=any", // 不限制模块名 命名规范
- "--max-line-length=500", // 单行最大长度
- "--disable=C0116", // 忽略函数注释 missing-function-docstring
- "--disable=C0115", // 忽略类注释 missing-class-docstring
- "--disable=R0914", // 函数或方法有太多局部变量 too-many-locals
- "--disable=R0913", // 函数或方法接受太多参数 too-many-arguments
- "--disable=W0603", // 使用全局变量 global-statement
- "--disable=R0912", // 函数或方法有太多分支 too-many-branches
- "--disable=R0903", // 类的公共方法太少 too-few-public-methods
- "--disable=R0902", // 当类有太多实例属性时使用,尝试减少该属性以获得更简单 too-many-instance-attributes
- // "--disable=W1514", // 使用 open 而不明确指定编码 unspecified-encoding
- "--disable=W0703" // 捕获过于笼统的异常 broad-except
- ],
- "python.testing.pytestArgs": [
- ".",
- "-s",
- "-v"
- ],
- "python.testing.unittestEnabled": false,
- "python.testing.pytestEnabled": true
- // "python.analysis.extraPaths": ["data-fastq", "data-fastq/utils"] // import 当前目录python文件 报错
- }
|