Skip to content

Commit e69bae1

Browse files
committedSep 16, 2022
pre-commit

11 files changed

+29
-27
lines changed
 

‎.github/workflows/test--text2speech_nodes.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ jobs:
113113
env:
114114
TOKENIZERS_PARALLELISM: 'false' # Avoid logspam by tokenizers
115115
run: |
116-
pytest ${{ env.PYTEST_PARAMS }} -m "integration"
116+
pytest ${{ env.PYTEST_PARAMS }} -m "integration"
117117
118118
# - uses: act10ns/slack@v1
119119
# with:

‎.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,4 @@ dmypy.json
129129
.pyre/
130130

131131
# IDEs
132-
.vscode
132+
.vscode

‎.pre-commit-config.yaml

-17
This file was deleted.

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
> NOTICE: this is my Hacky Friday project, do not rely on anything in this repo at this moment!
44
5-
You will need `hatch` to create new projects in this folder. Run `pip install -r requirements.txt` to install it.
5+
You will need `hatch` to create new projects in this folder. Run `pip install -r requirements.txt` to install it.

‎document_stores/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
To create a new package, run this command:
44
```sh
55
hatch --config hatch.toml new my_documentstore
6-
```
6+
```

‎document_stores/hatch.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ default = [
99
]
1010

1111
[template.plugins.default]
12-
src-layout = true
12+
src-layout = true

‎nodes/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
To create a new package, run this command:
44
```sh
55
hatch --config hatch.toml new my_custom_node
6-
```
6+
```

‎nodes/hatch.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ default = [
99
]
1010

1111
[template.plugins.default]
12-
src-layout = true
12+
src-layout = true

‎nodes/text2speech-nodes/.pre-commit-config.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
fail_fast: true
22

33
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v4.3.0
6+
hooks:
7+
- id: check-ast # checks Python syntax
8+
- id: check-json # checks JSON syntax
9+
- id: check-yaml # checks YAML syntax
10+
- id: check-toml # checks TOML syntax
11+
- id: end-of-file-fixer # checks there is a newline at the end of the file
12+
- id: trailing-whitespace # trims trailing whitespace
13+
- id: check-merge-conflict # checks for no merge conflict strings
14+
- id: check-shebang-scripts-are-executable # checks all shell scripts have executable permissions
15+
- id: mixed-line-ending # normalizes line endings
16+
- id: no-commit-to-branch # prevents committing to main
17+
#- id: pretty-format-json # indents and sorts JSON files # FIXME: JSON schema generator conflicts with this
18+
419
- repo: https://github.com/psf/black
520
rev: 22.8.0 # IMPORTANT: keep this aligned with the black version in pyproject.toml
621
hooks:

‎nodes/text2speech-nodes/pyproject.toml

+6-2
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,12 @@ exclude_lines = [
8888
[tool.pylint.'MESSAGES CONTROL']
8989
max-line-length=120
9090
disable = [
91-
"missing-module-docstring",
91+
"missing-module-docstring",
9292
]
93+
[tool.pylint.'DESIGN']
94+
max-args=7
95+
[tool.pylint.'SIMILARITIES']
96+
min-similarity-lines=6
9397

9498
[tool.pytest.ini_options]
9599
minversion = "6.0"
@@ -101,4 +105,4 @@ markers = [
101105
log_cli = true
102106

103107
[tool.black]
104-
line-length = 120
108+
line-length = 120

‎requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
hatch
1+
hatch

0 commit comments

Comments
 (0)
Please sign in to comment.