Skip to content

Commit

Permalink
Add gitattribute config and max file size for precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
f-PLT committed Sep 17, 2024
1 parent 8fdb97f commit a2d8dee
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Auto detect text files and normalize EOL
* text=auto

# Explicitly set LF for files that should be executed on a server/cluster
*.sh text eol=lf
*.py text eol=lf

# Explicitly set CRLF for Windows specific files
*.bat text eol=crlf
*.cmd text eol=crlf

# Binary files (do not normalize)
*.jpg binary
*.png binary
*.pdf binary
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ repos:
- id: check-docstring-first
- id: detect-private-key
- id: check-added-large-files
args: ["--maxkb=5000"]
files: '^(?!data/usa_polygon_5070\.gpkg$)(?!data/s2_grid_usa_polygon_5070\.gpkg$).*$'

- repo: https://github.com/psf/black
Expand Down

0 comments on commit a2d8dee

Please sign in to comment.