Skip to content

Commit a2d8dee

Browse files
committed
Add gitattribute config and max file size for precommit
1 parent 8fdb97f commit a2d8dee

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.gitattributes

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Auto detect text files and normalize EOL
2+
* text=auto
3+
4+
# Explicitly set LF for files that should be executed on a server/cluster
5+
*.sh text eol=lf
6+
*.py text eol=lf
7+
8+
# Explicitly set CRLF for Windows specific files
9+
*.bat text eol=crlf
10+
*.cmd text eol=crlf
11+
12+
# Binary files (do not normalize)
13+
*.jpg binary
14+
*.png binary
15+
*.pdf binary

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ repos:
1515
- id: check-docstring-first
1616
- id: detect-private-key
1717
- id: check-added-large-files
18+
args: ["--maxkb=5000"]
1819
files: '^(?!data/usa_polygon_5070\.gpkg$)(?!data/s2_grid_usa_polygon_5070\.gpkg$).*$'
1920

2021
- repo: https://github.com/psf/black

0 commit comments

Comments
 (0)