Skip to content

Commit

Permalink
Enforce lf line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
nateinaction committed Jan 19, 2025
1 parent eea2381 commit 7543b49
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: mixed-line-ending
args: [ --fix=lf ]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.6
Expand Down
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"files.eol": "\n",
"python.testing.pytestArgs": [
"tests/unit"
],
Expand Down
3 changes: 3 additions & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[format]
# Use `\n` line endings for all files
line-ending = "lf"

0 comments on commit 7543b49

Please sign in to comment.