]> www.infradead.org Git - users/willy/linux.git/commitdiff
gitignore: allow .pylintrc to be tracked
authorWangYuli <wangyuli@uniontech.com>
Mon, 23 Jun 2025 07:19:33 +0000 (15:19 +0800)
committerJonathan Corbet <corbet@lwn.net>
Wed, 2 Jul 2025 23:10:04 +0000 (17:10 -0600)
The .pylintrc file was introduced by commit 02df8e3b333c ("docs: add a
.pylintrc file with sys path for docs scripts") to provide Python path
configuration for documentation scripts. However, the generic ".*" rule
in .gitignore causes this tracked file to be ignored, leading to warnings
during kernel builds.

Add !.pylintrc to the exception list to explicitly allow this
configuration file to be tracked by git, consistent with other
development tool configuration files like .clang-format and .rustfmt.toml.

This resolves the build warning:
  .pylintrc: warning: ignored by one of the .gitignore files

Fixes: 02df8e3b333c ("docs: add a .pylintrc file with sys path for docs scripts")
Signed-off-by: WangYuli <wangyuli@uniontech.com>
Reviewed-by: Miguel Ojeda <ojeda@kernel.org>
Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/1A357750FF71847E+20250623071933.311947-1-wangyuli@uniontech.com
.gitignore

index bf5ee6e01cd42aa321a827076c7a6e14a79e8ba1..929054df5212d68a32a1f5ee2b267389fcd1c8db 100644 (file)
@@ -114,6 +114,7 @@ modules.order
 !.gitignore
 !.kunitconfig
 !.mailmap
+!.pylintrc
 !.rustfmt.toml
 
 #