git-metrics
git-metrics copied to clipboard
refactor: Make the project importable as a module
This PR introduces changes to make the project importable as a Python module and introduces more modern packaging standards.
- Moved all project files into the
git_metricssubfolder to create a proper Python module structure. - Updated the import statements in various modules to use explicit relative imports.
- Introduced
pyproject.tomlfile for PEP 517/518 standards, and addedsetup.pyto ensure compatibility with both traditional and modern packaging tools. - Added entry points in
setup.pyfor command-line scripts, makingcalculate_four_metrics.pyandgit_metrics.pyaccessible.
Background is: with these changes git-metrics can be used to instrument CI/CD pipelines to fetch the four DevOps metrics for reporting, enhancing the project's versatility.