-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #117 from MOV-AI/dev
Release DP-1518
- Loading branch information
Showing
5 changed files
with
103 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v5.0.0 | ||
hooks: | ||
- id: check-docstring-first # checks if docstring is before code | ||
- id: check-json # checks if json files are valid | ||
- id: check-added-large-files # checks if large files were added | ||
- id: check-merge-conflict # checks if all merge conflicts were resolved | ||
- id: check-yaml # checks if yaml files are valid | ||
- id: debug-statements # checks if debug statements are to be commited | ||
- id: end-of-file-fixer # fixes missing line ending in end of file | ||
- id: mixed-line-ending # fixes line files line ending | ||
args: [--fix=lf] | ||
- id: trailing-whitespace # removes trailing whitespaces from text files | ||
exclude: .bumpversion.cfg # a tool edits this file and leaves trailing spaces, must be ignored | ||
- repo: https://github.com/koalaman/shellcheck-precommit | ||
rev: v0.10.0 | ||
hooks: | ||
- id: shellcheck | ||
args: ["--severity=warning"] # Optionally only show errors and warnings | ||
|
||
- repo: https://github.com/ambv/black # formats Python code | ||
rev: 25.1.0 | ||
hooks: | ||
- id: black | ||
args: ["--line-length=120", "-S"] | ||
|
||
- repo: https://github.com/pycqa/flake8 # static tests Python code | ||
rev: 7.1.2 | ||
hooks: | ||
- id: flake8 | ||
args: ['--config', '.flake8'] | ||
|
||
# pylint does dynamic testing using data from imported modules | ||
# thus the modules need to be found by it | ||
# the easiest way to accomplish this is using it as a local hook | ||
# see https://stackoverflow.com/questions/61238318/pylint-and-pre-commit-hook-unable-to-import | ||
- repo: local | ||
hooks: | ||
- id: pylint | ||
name: pylint | ||
entry: pylint | ||
language: python | ||
types: [python] | ||
require_serial: true | ||
args: [ "-E"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters