Skip to content

cuenca-validations python 3.11 support and pre-commit actions #343

@alexviquez

Description

@alexviquez

Add to the matrix test the support of 3.11 cuenca-validations and add a pre-commit action to validate:

  • linter
  • EOF line
  • add exclusion .ipnyb files (Jupiter notebooks)
  • Check yml
  • trailling-whitespace
    This is an example on how to do it:
exclude: '.*\.ipynb$'

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
  rev: v4.3.0
  hooks:
  - id: check-yaml
    args: ['--unsafe']
  - id: check-toml
  - id: end-of-file-fixer
  - id: trailing-whitespace

- repo: https://github.com/codespell-project/codespell
  rev: v2.2.4
  hooks:
  - id: codespell
    additional_dependencies:
      - tomli

- repo: local
  hooks:
  - id: lint
    name: Lint
    entry: make lint
    types: [python]
    language: system
    pass_filenames: false

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions