Add pre-commit (#1)
Browse files- .pre-commit-config.yaml +29 -0
- pages/00_home.py +1 -1
- requirements.txt +2 -2
.pre-commit-config.yaml
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
repos:
|
2 |
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
3 |
+
rev: v4.6.0
|
4 |
+
hooks:
|
5 |
+
- id: check-toml
|
6 |
+
- id: check-yaml
|
7 |
+
- id: end-of-file-fixer
|
8 |
+
types: [python]
|
9 |
+
- id: trailing-whitespace
|
10 |
+
- id: requirements-txt-fixer
|
11 |
+
- id: check-added-large-files
|
12 |
+
args: ["--maxkb=500"]
|
13 |
+
|
14 |
+
- repo: https://github.com/psf/black
|
15 |
+
rev: 24.8.0
|
16 |
+
hooks:
|
17 |
+
- id: black-jupyter
|
18 |
+
language_version: python3.11
|
19 |
+
|
20 |
+
- repo: https://github.com/codespell-project/codespell
|
21 |
+
rev: v2.3.0
|
22 |
+
hooks:
|
23 |
+
- id: codespell
|
24 |
+
args: ["--ignore-words-list=gis,timeseries,ned", "--skip=*.json,*.csv"]
|
25 |
+
|
26 |
+
- repo: https://github.com/kynan/nbstripout
|
27 |
+
rev: 0.7.1
|
28 |
+
hooks:
|
29 |
+
- id: nbstripout
|
pages/00_home.py
CHANGED
@@ -5,7 +5,7 @@ import solara
|
|
5 |
def Page():
|
6 |
markdown = """
|
7 |
## Solara for Geospatial Applications
|
8 |
-
|
9 |
### Introduction
|
10 |
|
11 |
An interactive web app for mapping surface depressions.
|
|
|
5 |
def Page():
|
6 |
markdown = """
|
7 |
## Solara for Geospatial Applications
|
8 |
+
|
9 |
### Introduction
|
10 |
|
11 |
An interactive web app for mapping surface depressions.
|
requirements.txt
CHANGED
@@ -1,5 +1,5 @@
|
|
|
|
|
|
1 |
git+https://github.com/gee-community/geemap.git
|
2 |
git+https://github.com/opengeos/leafmap.git
|
3 |
solara
|
4 |
-
geopandas
|
5 |
-
ffmpeg-python
|
|
|
1 |
+
ffmpeg-python
|
2 |
+
geopandas
|
3 |
git+https://github.com/gee-community/geemap.git
|
4 |
git+https://github.com/opengeos/leafmap.git
|
5 |
solara
|
|
|
|