Skip to content

Commit

Permalink
from test - from dev - Bump version: 1.0.2 → 1.0.3 into test (#5)Auto…
Browse files Browse the repository at this point in the history
…matically created pull request for release v1.0.3-dev into testbranch. into prod (#6)

Automatically created pull request for release v1.0.3-test into prod
branch.
  • Loading branch information
JuanVilla424 authored Oct 24, 2024
2 parents 906dae6 + ad4a85e commit 0c9b69c
Show file tree
Hide file tree
Showing 4 changed files with 147 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 1.0.1
current_version = 1.0.3
commit = True
tag = False

Expand Down
1 change: 1 addition & 0 deletions INSTALL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Install
143 changes: 143 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
# 🧰 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 <branch_name> 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(<scope>): 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.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "scripts"
version = "1.0.1"
version = "1.0.3"
description = "CICD Core Scripts"
authors = ["B <[email protected]>"]
license = "Apache 2.0"
Expand All @@ -12,7 +12,7 @@ python = "^3.12"
setuptools = "^75.2.0"
idna="^3.0"
certifi="^2024.8.30"
bump2version="^1.0.1"
bump2version="^1.0.0"

[tool.poetry.group.dev.dependencies]
pre-commit = "^4.0.0"
Expand Down

0 comments on commit 0c9b69c

Please sign in to comment.