[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v6 23/25] python: add .gitignore
From: |
Cleber Rosa |
Subject: |
Re: [PATCH v6 23/25] python: add .gitignore |
Date: |
Tue, 25 May 2021 15:36:10 -0400 |
On Wed, May 12, 2021 at 07:12:39PM -0400, John Snow wrote:
> Ignore *Python* build and package output (build, dist, qemu.egg-info);
> these files are not created as part of a QEMU build.
>
> Ignore miscellaneous cached python confetti (__pycache__, *.pyc,
> .mypy_cache).
>
> Ignore .idea (pycharm) .vscode, and .venv (pipenv et al).
>
> Signed-off-by: John Snow <jsnow@redhat.com>
> ---
> python/.gitignore | 19 +++++++++++++++++++
> 1 file changed, 19 insertions(+)
> create mode 100644 python/.gitignore
>
> diff --git a/python/.gitignore b/python/.gitignore
> new file mode 100644
> index 00000000000..e27c99e009c
> --- /dev/null
> +++ b/python/.gitignore
> @@ -0,0 +1,19 @@
> +# python bytecode cache
> +*.pyc
This is a duplicate from the parent .gitignore, so I would avoid it.
> +__pycache__/
And this one is interesting because, the only thing that *should* be
in __pycache__ dirs is .pyc files (covered by the parent .gitignore
file).
So, I get the same behavior without these two entries here, so I would
skip them. Let me know if you have any reason for explicitly
including them.
- Cleber.
signature.asc
Description: PGP signature
- Re: [PATCH v6 20/25] python: add devel package requirements to setuptools, (continued)
[PATCH v6 21/25] python: add avocado-framework and tests, John Snow, 2021/05/12
[PATCH v6 22/25] python: add Makefile for some common tasks, John Snow, 2021/05/12
[PATCH v6 23/25] python: add .gitignore, John Snow, 2021/05/12
- Re: [PATCH v6 23/25] python: add .gitignore,
Cleber Rosa <=
[PATCH v6 24/25] gitlab: add python linters to CI, John Snow, 2021/05/12
[PATCH v6 25/25] python: add tox support, John Snow, 2021/05/12