/YAML-Format-Fixer-fe

Dlask app to fix YAML formatting

Primary LanguageHTML

YAML Format Fixer

Overview

YAML Format Fixer is a Flask web application designed to fix formatting issues in YAML files. It allows users to upload YAML files, processes them to ensure proper formatting, and then provides both the fixed YAML file and a report detailing the changes made.

Features

  • Upload YAML files for formatting.
  • Automatic addition of necessary YAML document markers.
  • Adjustment of comment indentation for consistency.
  • Removal of unnecessary trailing whitespaces.
  • Download the fixed YAML file and a report of changes.
  • View changes directly on the web page for immediate review.

Prerequisites

Before running this application, ensure you have the following installed:

  • Python 3
  • Flask
  • Other dependencies (refer to requirements.txt)

Installation

To set up the application on your local machine:

  1. Clone the repository:

git clone https://github.com//YAML-Format-Fixer-fe.git

csharp

  1. Change into the project directory:

cd YAML-Format-Fixer-fe

markdown

  1. Install required Python packages:

pip install -r requirements.txt

yaml

Usage

To run the application:

  1. Start the Flask server:

python app.py

csharp

  1. Open your web browser and navigate to http://127.0.0.1:5000.
  2. Upload a YAML file using the provided form.
  3. View the changes and download the processed file and change report.

Contributing

Contributions to this project are welcome! Please fork the repository and submit a pull request with your changes.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Make sure to replace with your actual GitHub username or organization name. Also, if there are additional steps specific to your project or other details you'd like to include, feel free to add them to the README.

Once you've created the README file, place it in the root directory of your repository. A well-documented README helps users understand how to use your project and encourages contributions from the community.