-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
93aefc6
commit e40a2fa
Showing
10 changed files
with
132 additions
and
15 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,70 @@ | ||
# Define bot property if installed via https://github.com/marketplace/pre-commit-ci | ||
ci: | ||
autofix_prs: true | ||
autoupdate_commit_msg: '[pre-commit.ci] pre-commit suggestions' | ||
autoupdate_schedule: monthly | ||
# submodules: true | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: check-case-conflict | ||
# - id: no-commit-to-branch | ||
# - id: check-yaml | ||
- id: detect-private-key | ||
- id: detect-aws-credentials | ||
args: | ||
- --allow-missing-credentials | ||
|
||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.15.0 | ||
hooks: | ||
- id: pyupgrade | ||
name: Upgrade code | ||
|
||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
name: Sort imports | ||
|
||
- repo: https://github.com/google/yapf | ||
rev: v0.40.2 | ||
hooks: | ||
- id: yapf | ||
name: YAPF formatting | ||
args: | ||
- -i | ||
|
||
- repo: https://github.com/executablebooks/mdformat | ||
rev: 0.7.17 | ||
hooks: | ||
- id: mdformat | ||
name: MD formatting | ||
additional_dependencies: | ||
- mdformat-gfm | ||
- mdformat-black | ||
exclude: 'docs/.*\.md' | ||
|
||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 6.1.0 | ||
hooks: | ||
- id: flake8 | ||
name: Flake8 linting | ||
|
||
- repo: https://github.com/codespell-project/codespell | ||
rev: v2.2.6 | ||
hooks: | ||
- id: codespell | ||
args: | ||
- --ignore-words-list=crate,nd,strack,dota,ane,segway,fo,gool,winn | ||
# skip inline comments | ||
- --skip="*.py:.*#.*,*ipynb" | ||
|
||
- repo: https://github.com/PyCQA/docformatter | ||
rev: v1.7.5 | ||
hooks: | ||
- id: docformatter |
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,2 +1,2 @@ | ||
lingua-language-detector==1.3.1 | ||
pysrt | ||
pysrt |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,4 +71,4 @@ son of a bitch | |
suck | ||
tits | ||
viagra | ||
whore | ||
whore |
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 |
---|---|---|
|
@@ -360,4 +360,4 @@ zikeyim | |
zikiiim | ||
zikiim | ||
zikik | ||
zikim | ||
zikim |
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
[metadata] | ||
license_files = LICENSE | ||
description_file = README.md | ||
|
||
[flake8] | ||
max_line_length = 110 | ||
exclude = .tox,*.egg,build,temp,.git,.vscode,__pycache__ | ||
recursive = true | ||
doctests = True | ||
verbose = 2 | ||
inline-quotes = double | ||
# https://pep8.readthedocs.io/en/latest/intro.html#error-codes | ||
format = pylint | ||
# see: https://www.flake8rules.com/ | ||
ignore = F401,E731,E402,W504,E501 | ||
# E731: Do not assign a lambda expression, use a def | ||
# F405: name may be undefined, or defined from star imports: module | ||
# E402: module level import not at top of file | ||
# W504: line break after binary operator | ||
# E501: line too long | ||
# removed: | ||
# F401: module imported but unused | ||
# E231: missing whitespace after ‘,’, ‘;’, or ‘:’ | ||
# E127: continuation line over-indented for visual indent | ||
# F403: ‘from module import *’ used; unable to detect undefined names | ||
|
||
|
||
[isort] | ||
# https://pycqa.github.io/isort/docs/configuration/options.html | ||
line_length = 110 | ||
multi_line_output = 3 | ||
include_trailing_comma = true | ||
|
||
[yapf] | ||
based_on_style = pep8 | ||
spaces_before_comment = 2 | ||
COLUMN_LIMIT = 110 | ||
SPLIT_BEFORE_FIRST_ARGUMENT = true | ||
COALESCE_BRACKETS = true | ||
SPLIT_BEFORE_LOGICAL_OPERATOR = false | ||
|
||
[docformatter] | ||
wrap-summaries = 110 | ||
wrap-descriptions = 110 | ||
in-place = true | ||
make-summary-multi-line = false | ||
pre-summary-newline = true | ||
force-wrap = false | ||
close-quotes-on-newline = true |
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