Skip to content
Snippets Groups Projects

#135, #162: Introduce mypy, pylint, isort, gitlab-ci pre-commit hooks

Merged #135, #162: Introduce mypy, pylint, isort, gitlab-ci pre-commit hooks
All threads resolved!
Merged Moul requested to merge 135_162_pre_commit_hooks into dev
All threads resolved!
  • Add mypy pre-commit hook
  • Introduce isort pre-commit hook
  • Sort imports in every files
  • Fix cyclic import issue in ascii_armor
  • Add isort job
  • Introduce gitlab-ci-linter pre-commit hook
  • Move pylint rules from the Makefile to the pyproject.toml
  • Introduce pylint pre-commit hook
  • Change pre-commit hooks documentation
  • Run lint job with pylint from the image
  • Run checks by calling directly the tools without the makefile

Close #135 (closed), #162 (closed).

Edited by Moul

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • I need to see how it integrate within the Pycharm workflow. Because I fear to not see exactly what goes wrong in a hook in Pycharm, rather than the make command in the terminal. I see that Pre-commit commands ran manually are more complex than make commands (options needed). And it worries me.

  • Moul added 5 commits

    added 5 commits

    Compare with previous version

  • Author Owner

    Let's discuss this in #165 (closed). I answered there.

  • Moul mentioned in issue #165 (closed)

    mentioned in issue #165 (closed)

  • Moul added 1 commit

    added 1 commit

    • 7f99e27e - [ci] Update to newest syntax

    Compare with previous version

  • Moul added 17 commits

    added 17 commits

    Compare with previous version

  • Vincent Texier resolved all threads

    resolved all threads

  • Author Owner

    May I merge this one? Since I am not sure since the threads discussions. Just to make sure.

  • Yes you can.

  • merged

  • This morning, command pre-commit run -a failed on .gitlab-ci.yml linter step:

    .gitlab-ci.yml linter....................................................Failed
    - hook id: gitlab-ci-linter
    - exit code: 1
    
    [debug] server: https://git.duniter.org
    [debug] project: None
    [debug] insecure: False
    [debug] filename: .gitlab-ci.yml
    Server said HTTP Error 401: Unauthorized: https://git.duniter.org/api/v4/ci/lint

    [EDIT] In fact I can not connect to gitlab anymore since this morning! push failed...

    Edited by Vincent Texier
  • Please register or sign in to reply
    Loading