Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juanvilla424/scripts
CICD Core Scripts - https://scripts.bridgefusion.icu
https://github.com/juanvilla424/scripts
actions base baseline cicd core github python scripts workflow
Last synced: 20 days ago
JSON representation
CICD Core Scripts - https://scripts.bridgefusion.icu
- Host: GitHub
- URL: https://github.com/juanvilla424/scripts
- Owner: JuanVilla424
- License: gpl-3.0
- Created: 2024-10-23T14:46:42.000Z (24 days ago)
- Default Branch: main
- Last Pushed: 2024-10-26T20:25:29.000Z (21 days ago)
- Last Synced: 2024-10-26T22:27:02.460Z (21 days ago)
- Topics: actions, base, baseline, cicd, core, github, python, scripts, workflow
- Language: Python
- Homepage: https://scripts.bridgefusion.icu/
- Size: 70.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# 🗄️ Scripts Repository
This repository contains a collection of base Python scripts that are invoked by the CI/CD processes of other repositories, especially the template repository. These scripts are used for formatting, checking files, version control, and updating the year in file headers or documentation.
## 📚 Table of Contents
- [Features](#-features)
- [Getting Started](#-getting-started)
- [Installation](#-installation)
- [Contributing](#-contributing)
- [License](#-license)
- [Contact](#-contact)## 🌟 Features
- **Formatting Scripts**: Format code files according to specified style guidelines.
- **File Checking Scripts**: Check files for compliance, correctness, and other criteria.
- **Version Control Scripts**: Manage version numbers in your project.
- **Year Update Scripts**: Update the year in file headers or documentation.## 🚀 Getting Started
To use these scripts in your project, add this repository as a submodule.
### 🔨 Installation
1. Add the scripts repository as a submodule in your project:
```bash
git submodule add https://github.com/JuanVilla424/scripts.git
```or, using branch
```bash
git submodule add -b https://github.com/JuanVilla424/scripts.git
```2. Update the submodule when there are changes:
```bash
git submodule update --remote --merge
```## 🤝 Contributing
**Contributions are welcome! To contribute to this repository, please follow these steps**:
1. **Fork the Repository**
2. **Create a Feature Branch**
```bash
git checkout -b feature/your-feature-name
```3. **Commit Your Changes**
```bash
git commit -m "feat(): your feature commit message - lower case"
```4. **Push to the Branch**
```bash
git push origin feature/your-feature-name
```5. **Open a Pull Request into** `dev` **branch**
Please ensure your contributions adhere to the Code of Conduct and Contribution Guidelines.
### 🔧 Environment Setup
**Mandatory: Setting Up a Python Virtual Environment**
Setting up a Python virtual environment ensures that dependencies are managed effectively and do not interfere with other projects.
1. **Create a Virtual Environment**
```bash
python -m venv venv
```2. **Activate the Virtual Environment**
On Unix or MacOS:
```bash
source venv/bin/activate
```On Windows:
```bash
powershell.exe -ExecutionPolicy Bypass -File .\venv\Scripts\Activate.ps1
```3. **Upgrade pip**
```bash
python -m ensurepip
pip install --upgrade pip
```4. **Install Dependencies**
```bash
pip install -r requirements.txt
pip install poetry
poetry lock
poetry install
```- Deactivate the Virtual Environment
When you're done, deactivate the environment:
```bash
deactivate
```### 🛸 Pre-Commit Hooks
**Install and check pre-commit hooks**: MD files changes countermeasures, python format, python lint, yaml format, yaml lint, version control hook, changelog auto-generation
```bash
pre-commit install
pre-commit install -t pre-commit
pre-commit install -t pre-push
pre-commit autoupdate
pre-commit run --all-files
```## 📫 Contact
For any inquiries or support, please open an issue or contact [[email protected]](mailto:[email protected]).
---
## 📜 License
2024 - This project is licensed under the [GNU General Public License v3.0](https://www.gnu.org/licenses/gpl-3.0.en.html). You are free to use, modify, and distribute this software under the terms of the GPL-3.0 license. For more details, please refer to the [LICENSE](LICENSE) file included in this repository.