linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] gitignore: allow .pylintrc to be tracked
@ 2025-06-23  7:19 WangYuli
  2025-06-23  8:08 ` Miguel Ojeda
  2025-07-02 23:10 ` Jonathan Corbet
  0 siblings, 2 replies; 4+ messages in thread
From: WangYuli @ 2025-06-23  7:19 UTC (permalink / raw)
  To: masahiroy, ojeda, nathan, alan.maguire, laurent.pinchart,
	kris.van.hees, linux, tamird, vegard.nossum, ardb, mchehab+huawei,
	lizhijian
  Cc: linux-kernel, corbet, zhanjun, niecheng1, guanwentao, WangYuli

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>
---
 .gitignore | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.gitignore b/.gitignore
index bf5ee6e01cd4..929054df5212 100644
--- a/.gitignore
+++ b/.gitignore
@@ -114,6 +114,7 @@ modules.order
 !.gitignore
 !.kunitconfig
 !.mailmap
+!.pylintrc
 !.rustfmt.toml
 
 #
-- 
2.50.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] gitignore: allow .pylintrc to be tracked
  2025-06-23  7:19 [PATCH] gitignore: allow .pylintrc to be tracked WangYuli
@ 2025-06-23  8:08 ` Miguel Ojeda
  2025-06-23 18:25   ` Mauro Carvalho Chehab
  2025-07-02 23:10 ` Jonathan Corbet
  1 sibling, 1 reply; 4+ messages in thread
From: Miguel Ojeda @ 2025-06-23  8:08 UTC (permalink / raw)
  To: WangYuli
  Cc: masahiroy, ojeda, nathan, alan.maguire, laurent.pinchart,
	kris.van.hees, linux, tamird, vegard.nossum, ardb, mchehab+huawei,
	lizhijian, linux-kernel, corbet, zhanjun, niecheng1, guanwentao

On Mon, Jun 23, 2025 at 9:20 AM WangYuli <wangyuli@uniontech.com> wrote:
>
> 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>

I haven't used the file, but dotted tool files should be in the list, so:

Reviewed-by: Miguel Ojeda <ojeda@kernel.org>

Thanks!

Cheers,
Miguel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] gitignore: allow .pylintrc to be tracked
  2025-06-23  8:08 ` Miguel Ojeda
@ 2025-06-23 18:25   ` Mauro Carvalho Chehab
  0 siblings, 0 replies; 4+ messages in thread
From: Mauro Carvalho Chehab @ 2025-06-23 18:25 UTC (permalink / raw)
  To: Miguel Ojeda
  Cc: WangYuli, masahiroy, ojeda, nathan, alan.maguire,
	laurent.pinchart, kris.van.hees, linux, tamird, vegard.nossum,
	ardb, lizhijian, linux-kernel, corbet, zhanjun, niecheng1,
	guanwentao

Em Mon, 23 Jun 2025 10:08:21 +0200
Miguel Ojeda <miguel.ojeda.sandonis@gmail.com> escreveu:

> On Mon, Jun 23, 2025 at 9:20 AM WangYuli <wangyuli@uniontech.com> wrote:
> >
> > 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>  
> 
> I haven't used the file, but dotted tool files should be in the list, so:
> 
> Reviewed-by: Miguel Ojeda <ojeda@kernel.org>
Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
> 
> Thanks!
> 
> Cheers,
> Miguel



Thanks,
Mauro

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] gitignore: allow .pylintrc to be tracked
  2025-06-23  7:19 [PATCH] gitignore: allow .pylintrc to be tracked WangYuli
  2025-06-23  8:08 ` Miguel Ojeda
@ 2025-07-02 23:10 ` Jonathan Corbet
  1 sibling, 0 replies; 4+ messages in thread
From: Jonathan Corbet @ 2025-07-02 23:10 UTC (permalink / raw)
  To: WangYuli, masahiroy, ojeda, nathan, alan.maguire,
	laurent.pinchart, kris.van.hees, linux, tamird, vegard.nossum,
	ardb, mchehab+huawei, lizhijian
  Cc: linux-kernel, zhanjun, niecheng1, guanwentao, WangYuli

WangYuli <wangyuli@uniontech.com> writes:

> 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>
> ---
>  .gitignore | 1 +
>  1 file changed, 1 insertion(+)

Applied, thanks.

jon

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-07-02 23:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-23  7:19 [PATCH] gitignore: allow .pylintrc to be tracked WangYuli
2025-06-23  8:08 ` Miguel Ojeda
2025-06-23 18:25   ` Mauro Carvalho Chehab
2025-07-02 23:10 ` Jonathan Corbet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).