This repository has been archived by the owner on Apr 26, 2023. It is now read-only.
forked from Toufool/AutoSplit
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of https://github.com/Toufool/Auto-Split into linux
- Loading branch information
Showing
3 changed files
with
43 additions
and
11 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,32 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
# Workaround for https://github.com/adamchainz/pre-commit-dprint/issues/4 | ||
- id: pretty-format-json | ||
exclude: ".vscode/.*|dprint.json" # Exclude jsonc | ||
args: [--autofix, --no-sort-keys] | ||
- id: trailing-whitespace | ||
args: [--markdown-linebreak-ext=md] | ||
- id: end-of-file-fixer | ||
- id: mixed-line-ending | ||
args: [--fix=crlf] | ||
- id: check-case-conflict | ||
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks | ||
rev: v2.8.0 | ||
hooks: | ||
- id: pretty-format-ini | ||
args: [--autofix] | ||
- repo: https://github.com/charliermarsh/ruff-pre-commit | ||
rev: "v0.0.262" # Must match requirements-dev.txt | ||
hooks: | ||
- id: ruff | ||
args: [--fix] | ||
- repo: https://github.com/pre-commit/mirrors-autopep8 | ||
rev: "v2.0.2" # Must match requirements-dev.txt | ||
hooks: | ||
- id: autopep8 | ||
- repo: https://github.com/asottile/add-trailing-comma | ||
rev: v2.4.0 # Must match requirements-dev.txt | ||
hooks: | ||
- id: add-trailing-comma |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
; We don't run mypy in the CI. This is just to help anyone who would like to use it manually. | ||
; Namely, the mypy_primer tool. | ||
[mypy] | ||
strict=true | ||
strict = true | ||
; Implicit return types ! | ||
disallow_untyped_calls=false | ||
disallow_untyped_defs=false | ||
disallow_incomplete_defs=false | ||
disallow_untyped_calls = false | ||
disallow_untyped_defs = false | ||
disallow_incomplete_defs = false | ||
|
||
; Of course my stubs are going to be incomplete. Otherwise they'd be on typeshed! | ||
; Mypy becomes really whack with its errors inside these stubs though | ||
mypy_path=typings,src | ||
mypy_path = typings,src | ||
; exclude doesn't work with strict=true Why? | ||
exclude=.*(typings|gen)/.* | ||
exclude = .*(typings|gen)/.* | ||
|
||
[mypy-gen.*,cv2.*,] | ||
; strict=false ; Doesn't work in overrides | ||
follow_imports=skip | ||
implicit_reexport=true | ||
strict_optional=false | ||
disable_error_code=attr-defined, misc, name-defined | ||
follow_imports = skip | ||
implicit_reexport = true | ||
strict_optional = false | ||
disable_error_code = attr-defined, misc, name-defined |