Skip to content

DEVOPS-420 - Sharing pre-commit-hooks script in a python package#1

Merged
Swendart merged 33 commits intomainfrom
DEVOPS-420
Jul 17, 2024
Merged

DEVOPS-420 - Sharing pre-commit-hooks script in a python package#1
Swendart merged 33 commits intomainfrom
DEVOPS-420

Conversation

@Swendart
Copy link
Copy Markdown
Contributor

@Swendart Swendart commented Jul 10, 2024

DEVOPS-420 - Sharing pre-commit-hooks script

Description

Introduction of a Python package that bundles pre-configured Git hooks, facilitating their reuse and standardizing development practices within the team.

Warning points

  • Release version

After step

  • Create a realease
  • Modify each python projects and call this repository instead of a local one

Copy link
Copy Markdown
Contributor

@sebhmg sebhmg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see some suggestion and questions

Comment thread pyproject.toml Outdated
Comment thread .pre-commit-hooks.yaml Outdated
Comment thread .pre-commit-hooks.yaml Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread pyproject.toml Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread pre_commit_hooks/check_copyright.py Outdated
Comment thread tests/__init__.py Outdated
@Swendart Swendart requested a review from sebhmg July 14, 2024 20:42
sebhmg

This comment was marked as resolved.

Comment thread README.rst Outdated
Comment thread README.rst Outdated
@Swendart Swendart requested a review from sebhmg July 15, 2024 13:23
Copy link
Copy Markdown
Contributor

@sebhmg sebhmg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some more suggestions. Nothing big, getting to the end !

Comment thread .pre-commit-config.yaml Outdated
Comment thread .pre-commit-config.yaml Outdated
Comment thread .pre-commit-config.yaml Outdated
Comment thread .pre-commit-config.yaml Outdated
Comment thread hooks/__init__.py
Comment thread pyproject.toml Outdated
Comment thread hooks/__init__.py
Comment thread pyproject.toml Outdated
Comment thread pyproject.toml
Copy link
Copy Markdown
Contributor

@sebhmg sebhmg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see:

  • one small correction in.pre-commit config
  • suggestion for using company namespace according to PEP423

Comment thread .pre-commit-config.yaml Outdated
Comment thread hooks/check_copyright.py
@Swendart Swendart requested a review from sebhmg July 16, 2024 20:54
Copy link
Copy Markdown
Contributor

@sebhmg sebhmg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!
Projet and package name are good.

Not 100% sure having . in the repo name, since already under MiraGeoscience org. Maybe it could be pre-commit-hooks? Anyway, good to go as is !

Copy link
Copy Markdown
Contributor

@sebhmg sebhmg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not 100% sure having . in the repo name, since already under MiraGeoscience org. Maybe it could be pre-commit-hooks? Anyway, good to go as is !

After second thought, looking at https://github.com/MiraGeoscience/python-poetry-template/blob/main/.pre-commit-config.yaml, It think just http://github.com/MiraGeoscience/pre-commit-hooks looks better.

That one be the one last change here: renaming this repo, before making all other repos pointing to this one...

@Swendart
Copy link
Copy Markdown
Contributor Author

Perfect. I renamed it!

Copy link
Copy Markdown
Contributor

@sebhmg sebhmg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • fix URL in config file after repo renamed
  • minor: indentation style

Comment thread .pre-commit-config.yaml Outdated
Swendart and others added 3 commits July 17, 2024 09:35
@Swendart Swendart merged commit f099390 into main Jul 17, 2024
@Swendart Swendart deleted the DEVOPS-420 branch July 17, 2024 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants