[{"data":1,"prerenderedAt":346},["ShallowReactive",2],{"repo-pylint-dev-pylint-zh-CN":3,"i18n-pylint-dev-pylint-zh-CN":343},{"mirrorPool":4,"detail":13,"relatedProjects":244},[5,9],{"key":6,"label":7,"base":8,"type":6},"github","mirror.github","https:\u002F\u002Fgithub.com\u002F",{"key":10,"label":11,"base":12,"type":10},"auto-proxy","mirror.autoProxy","https:\u002F\u002Fgh-proxy.com\u002F",{"owner":14,"repo":15,"repoId":16,"repoUrl":17,"starCount":18,"language":19,"description":20,"languages":21,"screenshots":25,"homepage":26,"pushedAt":27,"ownerAvatar":28,"ownerName":14,"ownerBio":29,"lastSyncTime":30,"lastReleaseTime":31,"tags":32,"license":40,"category":41,"subgroup":42,"releases":43},"pylint-dev","pylint",47671127,"https:\u002F\u002Fgithub.com\u002Fpylint-dev\u002Fpylint",5751,"Python","It's not just a linter that annoys you!",{"Python":22,"Mermaid":23,"HTML":24,"Awk":24},99.3,0.6,0,[],"https:\u002F\u002Fpylint.readthedocs.io\u002Fen\u002Flatest\u002F","2026-11-15","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F121692054?v=4","An organization that focuses on pylint and its ecosystem","2026-11-15T17:27:46.612911+00:00","2026-11-14T21:41:02Z",[33,34,35,36,37,38,39],"closember","code-quality","hacktoberfest","linter","pep8","static-analysis","static-code-analysis","GPL-2.0","development","代码质量工具",[44,71,100,128,152,173,198,222],{"tag":45,"publishAt":31,"semVer":46,"prerelease":49,"assets":50},"v4.1.4",[47,48,47],4,1,false,[51,56,61,66],{"fileName":52,"sizeMb":53,"sha256":54,"downloadCount":47,"originUrl":55},"pylint-4.1.4-py3-none-any.whl",0.56,"b39fcc762ec4a7fe385d01b8e170fd996847297cdc0e3850bdda1435c74cfd95","https:\u002F\u002Fgithub.com\u002Fpylint-dev\u002Fpylint\u002Freleases\u002Fdownload\u002Fv4.1.4\u002Fpylint-4.1.4-py3-none-any.whl",{"fileName":57,"sizeMb":58,"sha256":59,"downloadCount":47,"originUrl":60},"pylint-4.1.4.tar.gz",1.69,"4c9176dc6c9f1b98b742195f01899b290369d5a27b4b41d1014c17f2f96b26f1","https:\u002F\u002Fgithub.com\u002Fpylint-dev\u002Fpylint\u002Freleases\u002Fdownload\u002Fv4.1.4\u002Fpylint-4.1.4.tar.gz",{"fileName":62,"sizeMb":63,"sha256":64,"downloadCount":47,"originUrl":65},"v4.1.4.tar.gz",1.62,"8e9b3971147b4c657369db35829a64c2313295f7cf7e758d4357294fdda3063b","https:\u002F\u002Fgithub.com\u002Fpylint-dev\u002Fpylint\u002Freleases\u002Fdownload\u002Fv4.1.4\u002Fv4.1.4.tar.gz",{"fileName":67,"sizeMb":68,"sha256":69,"downloadCount":47,"originUrl":70},"v4.1.4.zip",3.09,"2fd2e4cbfa46ae44557fe22e694be4ddbf81a4216d39b355d8b7017109829649","https:\u002F\u002Fgithub.com\u002Fpylint-dev\u002Fpylint\u002Freleases\u002Fdownload\u002Fv4.1.4\u002Fv4.1.4.zip",{"tag":72,"publishAt":73,"semVer":74,"prerelease":49,"assets":76},"v4.1.3","2026-10-11T07:41:22Z",[47,48,75],3,[77,82,88,94],{"fileName":78,"sizeMb":53,"sha256":79,"downloadCount":80,"originUrl":81},"pylint-4.1.3-py3-none-any.whl","a85357cae24f33ad8d86c8f3daaa92c600ae4012b54a57299cee76000e9364cf",13,"https:\u002F\u002Fgithub.com\u002Fpylint-dev\u002Fpylint\u002Freleases\u002Fdownload\u002Fv4.1.3\u002Fpylint-4.1.3-py3-none-any.whl",{"fileName":83,"sizeMb":84,"sha256":85,"downloadCount":86,"originUrl":87},"pylint-4.1.3.tar.gz",1.67,"9928603068edfa0d1a3c167f174b099d4b97c3db75d32d0fcdd029770b4713a9",20,"https:\u002F\u002Fgithub.com\u002Fpylint-dev\u002Fpylint\u002Freleases\u002Fdownload\u002Fv4.1.3\u002Fpylint-4.1.3.tar.gz",{"fileName":89,"sizeMb":90,"sha256":91,"downloadCount":92,"originUrl":93},"v4.1.3.tar.gz",1.6,"80ef0e2a2b2c553faf93d835d858451bac9a3b87b84fbb65de6b2635bbcd57f5",12,"https:\u002F\u002Fgithub.com\u002Fpylint-dev\u002Fpylint\u002Freleases\u002Fdownload\u002Fv4.1.3\u002Fv4.1.3.tar.gz",{"fileName":95,"sizeMb":96,"sha256":97,"downloadCount":98,"originUrl":99},"v4.1.3.zip",3.08,"d04377765faf8057baf566a5e7b28bb4c16ebd0be2db00a68641b7261efe8e8d",19,"https:\u002F\u002Fgithub.com\u002Fpylint-dev\u002Fpylint\u002Freleases\u002Fdownload\u002Fv4.1.3\u002Fv4.1.3.zip",{"tag":101,"publishAt":102,"semVer":103,"prerelease":49,"assets":105},"v4.1.2","2026-10-02T22:13:57Z",[47,48,104],2,[106,111,116,122],{"fileName":107,"sizeMb":53,"sha256":108,"downloadCount":109,"originUrl":110},"pylint-4.1.2-py3-none-any.whl","e34c8636edc7d60a2eaadca4ad6c18a49e202361987a26e81b2a17fa92be28e1",9,"https:\u002F\u002Fgithub.com\u002Fpylint-dev\u002Fpylint\u002Freleases\u002Fdownload\u002Fv4.1.2\u002Fpylint-4.1.2-py3-none-any.whl",{"fileName":112,"sizeMb":113,"sha256":114,"downloadCount":109,"originUrl":115},"pylint-4.1.2.tar.gz",1.66,"235f13dc418c0041c649b42a5c35c99f2ffc6ca8b6a7574958eac5335906a68a","https:\u002F\u002Fgithub.com\u002Fpylint-dev\u002Fpylint\u002Freleases\u002Fdownload\u002Fv4.1.2\u002Fpylint-4.1.2.tar.gz",{"fileName":117,"sizeMb":118,"sha256":119,"downloadCount":120,"originUrl":121},"v4.1.2.tar.gz",1.59,"e158b119b717ebd50365b8f571f7f78fb555da5b168b49ce029ac77d7bd68e8b",7,"https:\u002F\u002Fgithub.com\u002Fpylint-dev\u002Fpylint\u002Freleases\u002Fdownload\u002Fv4.1.2\u002Fv4.1.2.tar.gz",{"fileName":123,"sizeMb":124,"sha256":125,"downloadCount":126,"originUrl":127},"v4.1.2.zip",3.05,"23aa58761512fe8a966d9297482a9f2698b6faca769b66440298308ff6c26ded",11,"https:\u002F\u002Fgithub.com\u002Fpylint-dev\u002Fpylint\u002Freleases\u002Fdownload\u002Fv4.1.2\u002Fv4.1.2.zip",{"tag":129,"publishAt":130,"semVer":131,"prerelease":49,"assets":132},"v4.1.1","2026-09-29T21:09:11Z",[47,48,48],[133,138,143,148],{"fileName":134,"sizeMb":53,"sha256":135,"downloadCount":136,"originUrl":137},"pylint-4.1.1-py3-none-any.whl","84901850af1c67240afbe7b0ef696b7ab391ed4838e4ffc48511661026ebc565",10,"https:\u002F\u002Fgithub.com\u002Fpylint-dev\u002Fpylint\u002Freleases\u002Fdownload\u002Fv4.1.1\u002Fpylint-4.1.1-py3-none-any.whl",{"fileName":139,"sizeMb":113,"sha256":140,"downloadCount":141,"originUrl":142},"pylint-4.1.1.tar.gz","47538540de0a563ff0b6cb781330944b0c9c1a130986ad1c183116ed37ec4538",15,"https:\u002F\u002Fgithub.com\u002Fpylint-dev\u002Fpylint\u002Freleases\u002Fdownload\u002Fv4.1.1\u002Fpylint-4.1.1.tar.gz",{"fileName":144,"sizeMb":118,"sha256":145,"downloadCount":146,"originUrl":147},"v4.1.1.tar.gz","ba0eecd67523e801eeb2f33dcc56e2ca3adadda0728fbee1957f2826a5f0a939",8,"https:\u002F\u002Fgithub.com\u002Fpylint-dev\u002Fpylint\u002Freleases\u002Fdownload\u002Fv4.1.1\u002Fv4.1.1.tar.gz",{"fileName":149,"sizeMb":124,"sha256":150,"downloadCount":109,"originUrl":151},"v4.1.1.zip","636edf5db1f50013e9154e5e1644cfdb10460a9d6b5a6427ce0514c9d2b66319","https:\u002F\u002Fgithub.com\u002Fpylint-dev\u002Fpylint\u002Freleases\u002Fdownload\u002Fv4.1.1\u002Fv4.1.1.zip",{"tag":153,"publishAt":154,"semVer":155,"prerelease":49,"assets":156},"v4.1.0","2026-09-29T20:00:00Z",[47,48,24],[157,161,165,169],{"fileName":158,"sizeMb":53,"sha256":159,"downloadCount":109,"originUrl":160},"pylint-4.1.0-py3-none-any.whl","74ab6cd63a1022ad187bb665973c788f8db88cf76c7fe2de616a6a6962b15fa1","https:\u002F\u002Fgithub.com\u002Fpylint-dev\u002Fpylint\u002Freleases\u002Fdownload\u002Fv4.1.0\u002Fpylint-4.1.0-py3-none-any.whl",{"fileName":162,"sizeMb":113,"sha256":163,"downloadCount":136,"originUrl":164},"pylint-4.1.0.tar.gz","ff14f4cf5401b8d2345350925a3c3ee23ddc6d4201a8ba510682a6dc6794be64","https:\u002F\u002Fgithub.com\u002Fpylint-dev\u002Fpylint\u002Freleases\u002Fdownload\u002Fv4.1.0\u002Fpylint-4.1.0.tar.gz",{"fileName":166,"sizeMb":118,"sha256":167,"downloadCount":120,"originUrl":168},"v4.1.0.tar.gz","05c4c1f38a0ff699556d02a38b40c3748f84866ebf22b27bb97f40a63de8c207","https:\u002F\u002Fgithub.com\u002Fpylint-dev\u002Fpylint\u002Freleases\u002Fdownload\u002Fv4.1.0\u002Fv4.1.0.tar.gz",{"fileName":170,"sizeMb":124,"sha256":171,"downloadCount":109,"originUrl":172},"v4.1.0.zip","ee12aa35a991a7ead2fddad7ae699a88670f3c2dd8fbb74390a5a0c75e3f4a38","https:\u002F\u002Fgithub.com\u002Fpylint-dev\u002Fpylint\u002Freleases\u002Fdownload\u002Fv4.1.0\u002Fv4.1.0.zip",{"tag":174,"publishAt":175,"semVer":176,"prerelease":49,"assets":177},"v4.0.10","2026-09-29T15:47:29Z",[47,24,136],[178,183,188,193],{"fileName":179,"sizeMb":180,"sha256":181,"downloadCount":146,"originUrl":182},"pylint-4.0.10-py3-none-any.whl",0.52,"c259421f734e6262407b6a421a26f9513b13ac2c5ac2c160775c1658afb57fea","https:\u002F\u002Fgithub.com\u002Fpylint-dev\u002Fpylint\u002Freleases\u002Fdownload\u002Fv4.0.10\u002Fpylint-4.0.10-py3-none-any.whl",{"fileName":184,"sizeMb":185,"sha256":186,"downloadCount":109,"originUrl":187},"pylint-4.0.10.tar.gz",1.53,"bf19280b10f2185bfbc898a28ac0b85c958af2e6d684a94984e12d3ac975d9f4","https:\u002F\u002Fgithub.com\u002Fpylint-dev\u002Fpylint\u002Freleases\u002Fdownload\u002Fv4.0.10\u002Fpylint-4.0.10.tar.gz",{"fileName":189,"sizeMb":190,"sha256":191,"downloadCount":120,"originUrl":192},"v4.0.10.tar.gz",1.46,"5b5c5c555ab40280948d42ecc480b555e2d2b7d53d1c69c8f6ab23527755f404","https:\u002F\u002Fgithub.com\u002Fpylint-dev\u002Fpylint\u002Freleases\u002Fdownload\u002Fv4.0.10\u002Fv4.0.10.tar.gz",{"fileName":194,"sizeMb":195,"sha256":196,"downloadCount":146,"originUrl":197},"v4.0.10.zip",2.79,"7c3e0cb92f0e1794fc9a6caf1db9b97f98efaf785566c12232859e815bda84de","https:\u002F\u002Fgithub.com\u002Fpylint-dev\u002Fpylint\u002Freleases\u002Fdownload\u002Fv4.0.10\u002Fv4.0.10.zip",{"tag":199,"publishAt":200,"semVer":201,"prerelease":49,"assets":202},"v4.0.9","2026-09-23T15:25:58Z",[47,24,109],[203,208,213,217],{"fileName":204,"sizeMb":180,"sha256":205,"downloadCount":206,"originUrl":207},"pylint-4.0.9-py3-none-any.whl","c4ba5bbaf1e70ecf05f08cd7d6091ea04824b79a2b2d9f5b10dc25fc34cb1124",14,"https:\u002F\u002Fgithub.com\u002Fpylint-dev\u002Fpylint\u002Freleases\u002Fdownload\u002Fv4.0.9\u002Fpylint-4.0.9-py3-none-any.whl",{"fileName":209,"sizeMb":185,"sha256":210,"downloadCount":211,"originUrl":212},"pylint-4.0.9.tar.gz","6f1305780229ae720e89b8aff2b3ff857cbb268fbab98c8b586960267667ad34",21,"https:\u002F\u002Fgithub.com\u002Fpylint-dev\u002Fpylint\u002Freleases\u002Fdownload\u002Fv4.0.9\u002Fpylint-4.0.9.tar.gz",{"fileName":214,"sizeMb":190,"sha256":215,"downloadCount":146,"originUrl":216},"v4.0.9.tar.gz","bfdb87a67df29e72208485f33dab20df9f67d6d5843240f5d759179f20fdff60","https:\u002F\u002Fgithub.com\u002Fpylint-dev\u002Fpylint\u002Freleases\u002Fdownload\u002Fv4.0.9\u002Fv4.0.9.tar.gz",{"fileName":218,"sizeMb":219,"sha256":220,"downloadCount":109,"originUrl":221},"v4.0.9.zip",2.78,"5fd7217dd45b86156c8a976e515241d1d564f6392ce28557d696da5ed71470df","https:\u002F\u002Fgithub.com\u002Fpylint-dev\u002Fpylint\u002Freleases\u002Fdownload\u002Fv4.0.9\u002Fv4.0.9.zip",{"tag":223,"publishAt":224,"semVer":225,"prerelease":49,"assets":226},"v4.0.8","2026-08-29T12:21:15Z",[47,24,146],[227,231,235,239],{"fileName":228,"sizeMb":180,"sha256":229,"downloadCount":98,"originUrl":230},"pylint-4.0.8-py3-none-any.whl","3341c08c0aabaa4adc71516de0969f3ba5c692b56c75af4dcb4d242823fbe363","https:\u002F\u002Fgithub.com\u002Fpylint-dev\u002Fpylint\u002Freleases\u002Fdownload\u002Fv4.0.8\u002Fpylint-4.0.8-py3-none-any.whl",{"fileName":232,"sizeMb":185,"sha256":233,"downloadCount":98,"originUrl":234},"pylint-4.0.8.tar.gz","1c1b2128bde5ff5e966801413080b6384d42a5782718d528c906dbb6beab94ed","https:\u002F\u002Fgithub.com\u002Fpylint-dev\u002Fpylint\u002Freleases\u002Fdownload\u002Fv4.0.8\u002Fpylint-4.0.8.tar.gz",{"fileName":236,"sizeMb":190,"sha256":237,"downloadCount":126,"originUrl":238},"v4.0.8.tar.gz","f086a62970bcfb4e3fb81c84d956588620a14f76d7d8a8b647ee6131692b9a41","https:\u002F\u002Fgithub.com\u002Fpylint-dev\u002Fpylint\u002Freleases\u002Fdownload\u002Fv4.0.8\u002Fv4.0.8.tar.gz",{"fileName":240,"sizeMb":241,"sha256":242,"downloadCount":86,"originUrl":243},"v4.0.8.zip",2.77,"2a31af5951f38ec1d70fc2efe16755dae5fbb872056b0c384ed1f7d72455aa35","https:\u002F\u002Fgithub.com\u002Fpylint-dev\u002Fpylint\u002Freleases\u002Fdownload\u002Fv4.0.8\u002Fv4.0.8.zip",[245,268,285,300,315,331],{"owner":246,"repo":247,"repoId":248,"category":41,"subgroup":42,"language":249,"tags":250,"starCount":257,"ownerUid":258,"latestTag":259,"platforms":260,"lastReleaseTime":265,"downloadCount":266,"description":267},"astral-sh","ruff",523043277,"Rust",[36,37,251,252,247,253,254,38,39,255,256],"python","python3","rust","rustpython","style-guide","styleguide",51318,115962839,"0.17.6",[261,262,263,264],"windows","mac","linux","other","2026-11-19T15:57:37Z",6751,"Ruff 是用 Rust 编写的极快 Python 代码检查与格式化工具，一个工具即可替代 Flake8、isort、Black 等多个工具，适合大型项目与持续集成场景。",{"owner":269,"repo":270,"repoId":271,"category":41,"subgroup":42,"language":272,"tags":273,"starCount":278,"ownerUid":279,"latestTag":280,"platforms":281,"lastReleaseTime":282,"downloadCount":283,"description":284},"koalaman","shellcheck",6731432,"Haskell",[274,275,276,36,277,38],"bash","developer-tools","haskell","shell",40388,2818758,"v0.11.0",[262,263,264],"2025-08-04T00:27:19Z",21298555,"一款GPLv3许可的Shell脚本静态分析工具，为bash\u002Fsh脚本提供警告和建议，帮助发现语法问题、语义错误和潜在的陷阱。",{"owner":286,"repo":287,"repoId":288,"category":41,"subgroup":42,"language":289,"tags":290,"starCount":293,"ownerUid":294,"latestTag":295,"platforms":296,"lastReleaseTime":297,"downloadCount":298,"description":299},"AlDanial","cloc",42029482,"Perl",[287,291,292],"count-lines","programming-language",23669,1459933,"v2.12",[261],"2026-11-13T05:14:32Z",209,"统计多种编程语言源代码中的空行、注释行和物理行数。",{"owner":301,"repo":302,"repoId":303,"category":41,"subgroup":42,"language":304,"tags":305,"starCount":308,"ownerUid":309,"latestTag":310,"platforms":311,"lastReleaseTime":312,"downloadCount":313,"description":314},"realm","SwiftLint",35732214,"Swift",[34,35,36,306,38,307],"linting","swift",19748,7575099,"0.65.1",[261,262,263,264],"2026-08-21T20:29:47Z",519979,"强制执行 Swift 风格和约定的工具，基于 SwiftSyntax。",{"owner":316,"repo":317,"repoId":318,"category":41,"subgroup":42,"language":319,"tags":320,"starCount":324,"ownerUid":325,"latestTag":326,"platforms":327,"lastReleaseTime":328,"downloadCount":329,"description":330},"golangci","golangci-lint",132145189,"Go",[321,322,323,317,36],"ci","go","golang",19443,35628013,"v2.15.0",[261,262,263,264],"2026-10-16T11:33:37Z",780,"一个快速的 Go 语言代码检查工具运行器，支持并行执行、缓存、YAML 配置和主流 IDE 集成，包含超过一百种检查器。",{"owner":332,"repo":333,"repoId":334,"category":41,"subgroup":42,"language":19,"tags":335,"starCount":336,"ownerUid":337,"latestTag":338,"platforms":339,"lastReleaseTime":340,"downloadCount":341,"description":342},"microsoft","pyright",175129788,[],15689,6154722,"1.1.414",[264],"2026-09-09T20:40:05Z",1107,"Pyright 是微软推出的 Python 静态类型检查器，功能完整、面向高性能与大型代码库设计，提供命令行工具与 VS Code 扩展。",{"description":344,"readmeHtml":345},"Pylint 是 Python 静态代码分析器，无需运行代码即可检查错误、强制编码规范、发现代码坏味道并给出重构建议，适合各规模 Python 项目。","\u003Ch2 id=\"项目概述\">项目概述\u003C\u002Fh2>\u003Cp>Pylint 是 Python 静态代码分析器，在不运行代码的情况下分析源码，检查错误、强制编码规范、发现代码坏味道并给出重构建议。它基于内部代码表示 astroid 做类型推断，即使代码没有完整类型标注也能发现更多问题。Pylint 高度可配置，支持插件扩展自定义检查，并附带 pyreverse 类图生成器与 symilar 重复代码查找器。\u003C\u002Fp>\n\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>项目\u003C\u002Fth>\n\u003Cth>内容\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\u003Ctr>\n\u003Ctd>语言\u003C\u002Ftd>\n\u003Ctd>Python\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>运行要求\u003C\u002Ftd>\n\u003Ctd>Python 3.11+\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>类型\u003C\u002Ftd>\n\u003Ctd>静态代码分析器\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>许可\u003C\u002Ftd>\n\u003Ctd>GPL-2.0\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\u003C\u002Ftable>\n\u003Cblockquote>\n\u003Cp>不跑代码也能查出错误与坏味道的深度检查器。\u003C\u002Fp>\n\u003C\u002Fblockquote>\n\u003Ch2 id=\"主要功能\">主要功能\u003C\u002Fh2>\u003Cul>\n\u003Cli>\u003Cstrong>错误检查\u003C\u002Fstrong>：不运行代码即可发现潜在错误\u003C\u002Fli>\n\u003Cli>\u003Cstrong>规范强制\u003C\u002Fstrong>：按编码标准强制执行团队规范\u003C\u002Fli>\n\u003Cli>\u003Cstrong>坏味道检测\u003C\u002Fstrong>：识别重复代码、过长函数等代码坏味道\u003C\u002Fli>\n\u003Cli>\u003Cstrong>类型推断\u003C\u002Fstrong>：基于 astroid 推断实际值，无完整类型标注也能检查\u003C\u002Fli>\n\u003Cli>\u003Cstrong>重构建议\u003C\u002Fstrong>：对代码改进给出可操作建议\u003C\u002Fli>\n\u003Cli>\u003Cstrong>插件生态\u003C\u002Fstrong>：支持自定义插件与 pylint-django 等现成插件\u003C\u002Fli>\n\u003Cli>\u003Cstrong>附带工具\u003C\u002Fstrong>：内置 pyreverse 类图生成与 symilar 重复代码检测\u003C\u002Fli>\n\u003Cli>\u003Cstrong>高度可配置\u003C\u002Fstrong>：检查项可逐条启用或禁用\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"适用人群\">适用人群\u003C\u002Fh2>\u003Cul>\n\u003Cli>Python 开发者\u003C\u002Fli>\n\u003Cli>遗留项目维护者\u003C\u002Fli>\n\u003Cli>代码质量负责人\u003C\u002Fli>\n\u003Cli>开源项目维护者\u003C\u002Fli>\n\u003Cli>需要深度静态分析的技术团队\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"快速上手\">快速上手\u003C\u002Fh2>\u003Col>\n\u003Cli>安装 Pylint\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Cdiv class=\"code-block\">\u003Cpre>\u003Ccode class=\"hljs language-bash\">pip install pylint\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\u003Col start=\"2\">\n\u003Cli>检查单个文件或项目\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Cdiv class=\"code-block\">\u003Cpre>\u003Ccode class=\"hljs language-bash\">pylint mymodule.py\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\u003Col start=\"3\">\n\u003Cli>遗留项目建议先只看错误\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Cdiv class=\"code-block\">\u003Cpre>\u003Ccode class=\"hljs language-bash\">pylint --errors-only mymodule.py\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\u003Col start=\"4\">\n\u003Cli>按需在配置中逐步启用更多检查类别\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Ch2 id=\"核心优势\">核心优势\u003C\u002Fh2>\u003Cul>\n\u003Cli>\u003Cstrong>推断能力强\u003C\u002Fstrong>：不依赖完整类型标注也能发现深层次问题\u003C\u002Fli>\n\u003Cli>\u003Cstrong>检查更全面\u003C\u002Fstrong>：比多数 linter 覆盖更多检查项\u003C\u002Fli>\n\u003Cli>\u003Cstrong>可扩展\u003C\u002Fstrong>：插件机制支持为内部库编写专属检查\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"系统要求\">系统要求\u003C\u002Fh2>\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>项目\u003C\u002Fth>\n\u003Cth>要求\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\u003Ctr>\n\u003Ctd>操作系统\u003C\u002Ftd>\n\u003Ctd>Linux、macOS、Windows\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>语言环境\u003C\u002Ftd>\n\u003Ctd>Python 3.11 及以上\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>拼写检查\u003C\u002Ftd>\n\u003Ctd>需额外安装 pylint[spelling] 与 enchant 库\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\u003C\u002Ftable>\n\u003Ch2 id=\"注意事项\">注意事项\u003C\u002Fh2>\u003Cul>\n\u003Cli>\u003Cstrong>渐进采用\u003C\u002Fstrong>：老项目建议先用 \u003Ccode>--errors-only\u003C\u002Fcode>，再逐步放开检查\u003C\u002Fli>\n\u003Cli>\u003Cstrong>速度权衡\u003C\u002Fstrong>：深度推断带来更慢的速度，可与 ruff 等快速工具互补使用\u003C\u002Fli>\n\u003Cli>\u003Cstrong>第三方库\u003C\u002Fstrong>：部分第三方库需安装对应 pylint 插件才能完整支持\u003C\u002Fli>\n\u003C\u002Ful>\n",1795754183625]