[v1,1/2] git: ignore standard python files

Message ID 20221103132926.445627-2-juraj.linkes@pantheon.tech (mailing list archive)
State Superseded, archived
Delegated to: Thomas Monjalon
Headers
Series python gitignore and line length |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Juraj Linkeš Nov. 3, 2022, 1:29 p.m. UTC
  These are python byte-compiled/optimized/dll files and IDE files.

Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
---
 .gitignore | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
  

Comments

Juraj Linkeš Nov. 4, 2022, 9:16 a.m. UTC | #1
Adding folks I forgot to add

> -----Original Message-----
> From: Juraj Linkeš <juraj.linkes@pantheon.tech>
> Sent: Thursday, November 3, 2022 2:29 PM
> Cc: dev@dpdk.org; Juraj Linkeš <juraj.linkes@pantheon.tech>
> Subject: [PATCH v1 1/2] git: ignore standard python files
> 
> These are python byte-compiled/optimized/dll files and IDE files.
> 
> Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
> ---
>  .gitignore | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/.gitignore b/.gitignore
> index 212c7aa28e..fbec0ce441 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -33,8 +33,10 @@ GRTAGS
>  tags
>  TAGS
> 
> -# ignore python bytecode files
> -*.pyc
> +# python byte-compiled/optimized/dll files __pycache__/ *.py[cod]
> +*$py.class
> 
>  # ignore default build directory, and directories from test-meson-builds.sh
> build
> --
> 2.30.2
  
Bruce Richardson Nov. 4, 2022, 9:26 a.m. UTC | #2
On Thu, Nov 03, 2022 at 01:29:25PM +0000, Juraj Linkeš wrote:
> These are python byte-compiled/optimized/dll files and IDE files.
> 
> Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
> ---
>  .gitignore | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/.gitignore b/.gitignore
> index 212c7aa28e..fbec0ce441 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -33,8 +33,10 @@ GRTAGS
>  tags
>  TAGS
>  
> -# ignore python bytecode files
> -*.pyc
> +# python byte-compiled/optimized/dll files
> +__pycache__/
> +*.py[cod]
> +*$py.class
>  

Looks harmless :-)

Acked-by: Bruce Richardson <bruce.richardson@intel.com>
  

Patch

diff --git a/.gitignore b/.gitignore
index 212c7aa28e..fbec0ce441 100644
--- a/.gitignore
+++ b/.gitignore
@@ -33,8 +33,10 @@  GRTAGS
 tags
 TAGS
 
-# ignore python bytecode files
-*.pyc
+# python byte-compiled/optimized/dll files
+__pycache__/
+*.py[cod]
+*$py.class
 
 # ignore default build directory, and directories from test-meson-builds.sh
 build