Skip to content

Commit e50a4ae

Browse files
authored
chore(pre-commit): enable remaining pre-commit-hooks (#390)
Excluding samples, which have errors we test on purpose This exclusion is not applied to mixed-line-ending, which does not affect tests Also replaces use of deprecated ruff-lint alias
1 parent 6629dec commit e50a4ae

7 files changed

Lines changed: 805 additions & 807 deletions

File tree

.pre-commit-config.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,21 @@ repos:
2525
- id: debug-statements
2626
- id: destroyed-symlinks
2727
- id: detect-private-key
28-
# - id: end-of-file-fixer # TODO(cclauss): Causes some tests to fail.
2928
- id: file-contents-sorter
3029
- id: fix-byte-order-marker
3130
- id: forbid-new-submodules
3231
- id: forbid-submodules
33-
# - id: mixed-line-ending # TODO(cclauss): Causes some tests to fail.
34-
# args:
35-
# - --fix=lf
32+
- id: mixed-line-ending
33+
args:
34+
- --fix=lf
3635
- id: name-tests-test
3736
- id: pretty-format-json
3837
- id: requirements-txt-fixer
3938
- id: sort-simple-yaml
40-
# - id: trailing-whitespace # TODO(cclauss): Causes some tests to fail.
39+
- id: end-of-file-fixer
40+
exclude: samples
41+
- id: trailing-whitespace
42+
exclude: samples
4143

4244
- repo: https://github.com/MarcoGorelli/auto-walrus
4345
rev: 0.3.4
@@ -56,7 +58,7 @@ repos:
5658
- repo: https://github.com/astral-sh/ruff-pre-commit
5759
rev: v0.12.11
5860
hooks:
59-
- id: ruff
61+
- id: ruff-check
6062
- id: ruff-format
6163

6264
- repo: https://github.com/tox-dev/pyproject-fmt

samples/boost-sample/LICENSE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,3 @@ SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
2121
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
2222
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
2323
DEALINGS IN THE SOFTWARE.
24-

samples/codelite-sample/LICENSE

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,7 @@ Public License instead of this License.
341341
EXCEPTION:
342342
==========
343343

344-
The only exception is that plugins developed for CodeLite and are linking
344+
The only exception is that plugins developed for CodeLite and are linking
345345
against CodeLite sources (either static linking or dynamic linking),
346346
and the plugin is NOT one of the official plugins (i.e. a plugin that was developed by CodeLite's team),
347347
Can be distributed under any license
348-

0 commit comments

Comments
 (0)