From c23e342048c799f9d31d635aa62e9a768fe6c998 Mon Sep 17 00:00:00 2001 From: Abdeali Chharchhoda Date: Tue, 15 Oct 2024 00:37:17 +0530 Subject: [PATCH 1/2] refactor: Enhance `gitignore_template` with additional directories and files --- frappe/utils/boilerplate.py | 59 +++++++++++++++++++++++++++++++++---- 1 file changed, 54 insertions(+), 5 deletions(-) diff --git a/frappe/utils/boilerplate.py b/frappe/utils/boilerplate.py index bf95a624a9..922e121435 100644 --- a/frappe/utils/boilerplate.py +++ b/frappe/utils/boilerplate.py @@ -632,13 +632,62 @@ app_license = "{app_license}" """ -gitignore_template = """.DS_Store +gitignore_template = """# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class *.pyc -*.egg-info -*.swp +*.py~ + +# Distribution / packaging +.Python +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +*.egg-info/ +.installed.cfg +*.egg tags -node_modules -__pycache__""" +MANIFEST + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Dependency directories +node_modules/ +jspm_packages/ + +# IDEs and editors +.vscode/ +.vs/ +.idea/ +.kdev4/ +*.kdev4 +*.DS_Store +*.swp +*.comp.js +.wnf-lang-status +*debug.log + +# Helix Editor +.helix/ + +# Aider AI Chat +.aider* +""" github_workflow_template = """ name: CI From dabaf45b173e62348a31c59756b4f028ad589fa9 Mon Sep 17 00:00:00 2001 From: Abdeali Chharchhoda Date: Tue, 15 Oct 2024 00:44:35 +0530 Subject: [PATCH 2/2] refactor: Removed first empty line from `github` workflows template --- frappe/utils/boilerplate.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/frappe/utils/boilerplate.py b/frappe/utils/boilerplate.py index 922e121435..5c1402f698 100644 --- a/frappe/utils/boilerplate.py +++ b/frappe/utils/boilerplate.py @@ -689,8 +689,7 @@ jspm_packages/ .aider* """ -github_workflow_template = """ -name: CI +github_workflow_template = """name: CI on: push: @@ -876,8 +875,7 @@ ci: submodules: false """ -linter_workflow_template = """ -name: Linters +linter_workflow_template = """name: Linters on: pull_request: @@ -974,8 +972,7 @@ Pre-commit is configured to use the following tools for checking and formatting {app_license} """ -readme_ci_section = """ -### CI +readme_ci_section = """### CI This app can use GitHub Actions for CI. The following workflows are configured: