|
18 | 18 | # report issues (linters). Modified files will need to be staged again. |
19 | 19 | # ----------------------------------------------------------------------------- |
20 | 20 |
|
21 | | -exclude: '(^|/)(\.pre-commit-config\.yaml|normalize_special_characters\.py|test_input_validation\.py|ai_artifacts_normalizer\.py)$|(^|/)mcp-servers/templates/|(^|/)tests/load/|.*\.(jinja|j2)$' # ignore these files, all templates, load tests, and jinja files |
| 21 | +exclude: '(^|/)(\.pre-commit-.*\.yaml|normalize_special_characters\.py|test_input_validation\.py|ai_artifacts_normalizer\.py)$|(^|/)mcp-servers/templates/|(^|/)tests/load/|.*\.(jinja|j2)$' # ignore these files, all templates, load tests, and jinja files |
22 | 22 |
|
23 | 23 | repos: |
24 | 24 | # ----------------------------------------------------------------------------- |
@@ -190,11 +190,6 @@ repos: |
190 | 190 | description: Removes UTF-8 byte order marker. |
191 | 191 | types: [text] |
192 | 192 |
|
193 | | - - id: fix-encoding-pragma |
194 | | - name: 🧹 Fix Python Encoding Pragma |
195 | | - description: "Adds # -*- coding: utf-8 -*- to the top of python files." |
196 | | - types: [python] |
197 | | - |
198 | 193 | - id: mixed-line-ending |
199 | 194 | name: 🧹 Mixed Line Ending |
200 | 195 | description: Replaces or checks mixed line ending. |
@@ -371,12 +366,12 @@ repos: |
371 | 366 | exclude: ^tests/(.*/)?(pages|helpers|fuzzers|scripts|fixtures|migration|utils|manual|async|load)/.*\.py$ |
372 | 367 | args: [--pytest-test-first] # `test_.*\.py` |
373 | 368 |
|
374 | | - # - repo: https://github.com/pycqa/flake8 |
375 | | - # rev: 7.2.0 |
376 | | - # hooks: |
377 | | - # - id: flake8 |
378 | | - # name: 🐍 Flake8 - Python Linter |
379 | | - # description: Tool for style guide enforcement. |
| 369 | + - repo: https://github.com/pycqa/flake8 |
| 370 | + rev: 7.2.0 |
| 371 | + hooks: |
| 372 | + - id: flake8 |
| 373 | + name: 🐍 Flake8 - Python Linter |
| 374 | + description: Tool for style guide enforcement. |
380 | 375 |
|
381 | 376 | # - repo: https://github.com/pycqa/bandit |
382 | 377 | # rev: 1.8.3 |
@@ -418,13 +413,13 @@ repos: |
418 | 413 | # types_or: [ python, pyi ] |
419 | 414 | # files: ^mcpgateway/ |
420 | 415 |
|
421 | | - # - repo: https://github.com/psf/black |
422 | | - # rev: 25.1.0 |
423 | | - # hooks: |
424 | | - # - id: black |
425 | | - # name: 🐍 Black - Python Code Formatter |
426 | | - # description: The uncompromising Python code formatter. |
427 | | - # language_version: python3 |
| 416 | + - repo: https://github.com/psf/black |
| 417 | + rev: 25.1.0 |
| 418 | + hooks: |
| 419 | + - id: black |
| 420 | + name: 🐍 Black - Python Code Formatter |
| 421 | + description: The uncompromising Python code formatter. |
| 422 | + language_version: python3 |
428 | 423 |
|
429 | 424 | # - repo: https://github.com/pycqa/isort |
430 | 425 | # rev: 6.0.1 |
|
0 commit comments