Skip to content

Nurzhan2023/python-project-50

Repository files navigation

Hexlet tests and linter status:

Maintainability

Actions Status

Python CI

Test Coverage

Description

Gendiff is a command line utility for comparing two configuration files. The tool analyzes the files and the differences in a human-readable format.

Utility features:

  • Supports different input formats: yaml, json
  • Generating a report in the form of plain text, stylish and json

Installation

To install, clone the ropository and install using uv:

git clone https://github.com/Nurzhan2023/python-project-50.git
cd python-project-50
make install

Usage

To display usage information:

uv run gendiff -h

Command Line Options

- h, --help - display this help message and exit
- f FORMAT, --format FORMAT - set the output format(supported fotmats: plain, json, stylish)

Example of comparing two files:

gendiff gendiff/tests/file1.json gendiff/tests/file2.json

The output will appear in the following format:

{
 - follow: False
   host: hexlet.io
 - proxy: 123.124.53.22
 - timeout: 50
 + timeout: 20
 + verbose: True
}

Development

TESTS To run test, use the following command:

make test-coverage

LINTER To check the code with the linter, execute:

make lint

CI/CD

The project uses GitHub Actions for automated testing and linting. You can see status of the last commit at the top of this README

asciicast

asciicast

asciicast

asciicast

asciicast

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published