Skip to content

Commit

Permalink
fix(lint): prune invalid configurations (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda authored Aug 15, 2024
1 parent a39f31c commit a8f59c1
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,6 @@ repos:
- id: check-case-conflict
- id: check-added-large-files
args: ["--maxkb=350", "--enforce-all"]
exclude: |
(?x)^(
docs/source-pytorch/_static/images/general/fast_2.gif|
docs/source-pytorch/_static/images/mnist_imgs/pt_to_pl.jpg|
docs/source-pytorch/_static/images/lightning_module/pt_to_pl.png|
docs/source-pytorch/_static/images/general/pl_quick_start_full_compressed.gif|
docs/source-pytorch/_static/images/general/pl_overview_flat.jpg|
docs/source-pytorch/_static/images/general/pl_overview.gif|
src/lightning/fabric/CHANGELOG.md|
src/lightning/pytorch/CHANGELOG.md
)$
- id: detect-private-key

- repo: https://github.com/asottile/pyupgrade
Expand All @@ -74,9 +63,9 @@ repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.2
hooks:
- id: ruff-format
- id: ruff
args: ["--fix", "--preview"]
args: ["--fix"]
- id: ruff-format

- repo: https://github.com/executablebooks/mdformat
rev: 0.7.17
Expand All @@ -86,15 +75,12 @@ repos:
- mdformat-gfm
#- mdformat-black
- mdformat_frontmatter
exclude: |
(?x)^(
src/data/CHANGELOG.md|
README.md
)$
exclude: README.md

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
rev: v3.1.0
hooks:
- id: prettier
files: \.(json|yml|yaml|toml)
# https://prettier.io/docs/en/options.html#print-width
args: ["--print-width=120"]

0 comments on commit a8f59c1

Please sign in to comment.