Skip to content

chore: introduce pre-commit#10

Open
slowy07 wants to merge 1 commit intoCERN:masterfrom
slowy07:pre-commit-configuration
Open

chore: introduce pre-commit#10
slowy07 wants to merge 1 commit intoCERN:masterfrom
slowy07:pre-commit-configuration

Conversation

@slowy07
Copy link

@slowy07 slowy07 commented Jun 13, 2024

adding pre-commit configuration for better development and maintain with introduce some lib including

  • ruff ( formatter and linter )
    replace for black formatter and flake8 linter, cause ruff are configuraable and more quick for formatting and linting on python projects

  • builtin pre-commit configuration

    • check-yaml
    • end-of-file-fixer
    • trailing whitespace
    • requirements txt fixer
  • ruff configuration
    configuration for ruff formatter and linter, which can dynamically config for specific project

reference:
- ruff: https://docs.astral.sh/ruff/
- pre-commit: https://pre-commit.com/

note: can configure with other development lib, and can use builtin or 3rd party lib

testimonial on other project ( geemap

image

Signed-off-by: slowy07 <slowy.arfy@gmail.com>
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.

1 participant