Skip to content
This repository has been archived by the owner on Apr 26, 2023. It is now read-only.

Commit

Permalink
Merge branch 'dev' of https://github.com/Toufool/Auto-Split into linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam committed Apr 22, 2023
2 parents ce5b8b6 + d5edf44 commit 8aa2ad0
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 11 deletions.
32 changes: 32 additions & 0 deletions .pre-commit-config.yaml
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ If this option is disabled, when the reset hotkey is hit, the reset button is pr
- `002_SplitName_(0.9)_[10]_{d}.png` is the second split image with a threshold of 0.9, pause time of 10, and is a dummy split.
- `003_SplitName_(0.85)_[20]_#3500#.png` is the third split image with a threshold of 0.85, pause time of 20 and has a delay split time of 3.5 seconds.
- `004_SplitName_(0.9)_[10]_#3500#_@3@_{b}.png` is the fourth split image with a threshold of 0.9, pause time of 10 seconds, delay split time of 3.5 seconds, will loop 3 times, and will split when similarity is below the threshold rather than above.

## Special images

### How to Create a Masked Image
Expand Down
20 changes: 10 additions & 10 deletions mypy.ini
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

0 comments on commit 8aa2ad0

Please sign in to comment.