Skip to content

Commit 0ee9a06

Browse files
committed
enabling pre-commit
1 parent 370cccb commit 0ee9a06

18 files changed

+25
-21
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ js/* binary
66
screenshots/* binary
77
lib/Proto/* binary
88
lib/TProto/* binary
9+
img/* binary
910

1011
# Files to exclude from GitHub Languages statistics
1112
*.Dockerfile linguist-vendored=true

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ community_bridge: # Replace with a single Community Bridge project-name e.g., cl
99
liberapay: # Replace with a single Liberapay username
1010
issuehunt: # Replace with a single IssueHunt username
1111
otechie: # Replace with a single Otechie username
12-
custom:
12+
custom:

.github/ISSUE_TEMPLATE/documentation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ missing or that can be improved, please feel free to contribute to it.
88

99
https://github.com/andrey18106/mediadc/wiki
1010

11-
Thank you!
11+
Thank you!

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ A clear and concise description of the new feature.
88

99
**Example**
1010
A simple example of the new feature in action (include PHP code, YAML config, etc.)
11-
If the new feature changes an existing feature, include a simple before/after comparison.
11+
If the new feature changes an existing feature, include a simple before/after comparison.

.github/ISSUE_TEMPLATE/question.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ For any other question or comment, please use the official Telegram support [cha
1515

1616
Note that quite probably your question has an answer in the [FAQ](https://github.com/andrey18106/mediadc/wiki/FAQ).
1717

18-
Thank you!
18+
Thank you!

.github/ISSUE_TEMPLATE/security.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ If you have found a security issue in MediaDC, please type to one of administrat
99
in our official Telegram support [chat](https://t.me/mediadc_support)
1010
and don't disclose it publicly until we can provide a fix for it.
1111

12-
Thank you!
12+
Thank you!

.l10nignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
js/
2-
vendor/
2+
vendor/

.nextcloudignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ tests
2828
/tmp
2929
.readthedocs.yaml
3030
pyproject.toml
31-
/pyfrm/_srv_example.py
31+
/pyfrm/_srv_example.py

.pre-commit-config.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,36 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.4.0
3+
rev: v4.3.0
44
hooks:
55
- id: check-yaml
6+
exclude: (^3rdparty)
67
- id: end-of-file-fixer
8+
exclude: (^3rdparty|^js|^proto)
79
- id: trailing-whitespace
10+
exclude: (^3rdparty|^js|^proto)
811
- id: check-toml
12+
exclude: (^3rdparty)
913
- id: mixed-line-ending
10-
11-
# Python
14+
exclude: (^3rdparty|^js|^proto)
1215

1316
- repo: https://github.com/PyCQA/isort
1417
rev: 5.10.1
1518
hooks:
1619
- id: isort
20+
exclude: (^3rdparty)
1721

1822
- repo: https://github.com/psf/black
1923
rev: 22.10.0
2024
hooks:
2125
- id: black
26+
exclude: (^3rdparty)
2227

2328
- repo: https://github.com/PyCQA/flake8
2429
rev: 6.0.0
2530
hooks:
2631
- id: flake8
2732
types: [file, python]
33+
exclude: (^3rdparty)
2834

2935
- repo: https://github.com/pre-commit/mirrors-mypy
3036
rev: v0.991
@@ -46,5 +52,3 @@ repos:
4652
"-rn", # Only display messages
4753
"-sn", # Don't display the score
4854
]
49-
50-
# PHP

.tx/backport

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
main
1+
main

.tx/config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ lang_map = hu_HU: hu, nb_NO: nb, sk_SK: sk, th_TH: th, ja_JP: ja, bg_BG: bg, cs_
66
file_filter = translationfiles/<lang>/cloud_py_api.po
77
source_file = translationfiles/templates/cloud_py_api.pot
88
source_lang = en
9-
type = PO
9+
type = PO

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ You can support us in several ways:
3939
- 💁 Resolve some Issue or create a Pull Request (contribute to this project)
4040
- 🪙 Donate with any amount with one of the links below (fund this project)
4141

42-
[![PayPal](https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif)](https://www.paypal.com/donate?hosted_button_id=H5PLJJMWLDNJQ)
42+
[![PayPal](https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif)](https://www.paypal.com/donate?hosted_button_id=H5PLJJMWLDNJQ)

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
const babelConfig = require('@nextcloud/babel-config')
22

3-
module.exports = babelConfig
3+
module.exports = babelConfig

lib/TProto/logLvl.php

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,4 @@
7070
"node": ">=16.0.0",
7171
"npm": "^7.0.0 || ^8.0.0"
7272
}
73-
}
73+
}

psalm.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@
3131
</errorLevel>
3232
</UndefinedDocblockClass>
3333
</issueHandlers>
34-
</psalm>
34+
</psalm>

stylelint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
const babelConfig = require('@nextcloud/stylelint-config')
22

3-
module.exports = babelConfig
3+
module.exports = babelConfig

tests/phpunit.integration.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
<clover outputFile="./clover.integration.xml"/>
2121
</report>
2222
</coverage>
23-
</phpunit>
23+
</phpunit>

0 commit comments

Comments
 (0)