Skip to content

Commit 46d46c6

Browse files
hovaescohashhar
authored andcommitted
Add pre-commit generic hooks and adjust the code
1 parent 75c9517 commit 46d46c6

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,5 @@ jobs:
5353
twine upload --non-interactive dist/trino-${{env.NEXT_VERSION_NUMBER}}-py3-none-any.whl dist/trino-${{env.NEXT_VERSION_NUMBER}}.tar.gz
5454
5555
- name: Finalize release
56-
run: |
56+
run: |
5757
git push origin master "${{ env.NEXT_VERSION_NUMBER }}""

.pre-commit-config.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,14 @@ repos:
1818
hooks:
1919
- id: isort
2020
args: [ "--profile", "black"]
21+
22+
- repo: https://github.com/pre-commit/pre-commit-hooks
23+
rev: "v4.3.0"
24+
hooks:
25+
- id: check-yaml
26+
args: [--unsafe]
27+
- id: end-of-file-fixer
28+
- id: trailing-whitespace
29+
exclude_types:
30+
- "markdown"
31+
- id: check-case-conflict

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,4 +460,3 @@ Feel free to create an issue as it makes your request visible to other users and
460460
If an interactive discussion would be better or if you just want to hangout and chat about
461461
the Trino Python client, you can join us on the *#python-client* channel on
462462
[Trino Slack](https://trino.io/slack.html).
463-

0 commit comments

Comments
 (0)