giswqs commited on
Commit
64189ed
1 Parent(s): 9beed3c

Add pre-commit (#3)

Browse files
Files changed (3) hide show
  1. .pre-commit-config.yaml +32 -0
  2. pages/00_home.py +1 -1
  3. requirements.txt +2 -2
.pre-commit-config.yaml ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ repos:
2
+ - repo: https://github.com/pre-commit/pre-commit-hooks
3
+ rev: v5.0.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.10.0
16
+ hooks:
17
+ - id: black-jupyter
18
+
19
+ - repo: https://github.com/codespell-project/codespell
20
+ rev: v2.3.0
21
+ hooks:
22
+ - id: codespell
23
+ args:
24
+ [
25
+ "--ignore-words-list=aci,acount,acounts,fallow,ges,hart,hist,nd,ned,ois,wqs,watermask,tre",
26
+ "--skip=*.csv,*.geojson,*.json,*.yml*.js,*.html,*cff,*.pdf",
27
+ ]
28
+
29
+ - repo: https://github.com/kynan/nbstripout
30
+ rev: 0.7.1
31
+ hooks:
32
+ - id: nbstripout
pages/00_home.py CHANGED
@@ -6,7 +6,7 @@ def Page():
6
  with solara.Column(align="center"):
7
  markdown = """
8
  ## A Solara Web App for Visualizing [Maxar Open Data](https://www.maxar.com/open-data)
9
-
10
  ### Introduction
11
 
12
  **A collection of [Solara](https://github.com/widgetti/solara) web apps for geospatial applications.**
 
6
  with solara.Column(align="center"):
7
  markdown = """
8
  ## A Solara Web App for Visualizing [Maxar Open Data](https://www.maxar.com/open-data)
9
+
10
  ### Introduction
11
 
12
  **A collection of [Solara](https://github.com/widgetti/solara) web apps for geospatial applications.**
requirements.txt CHANGED
@@ -1,4 +1,4 @@
 
1
  leafmap
 
2
  solara
3
- geopandas
4
- pydantic< 2.0
 
1
+ geopandas
2
  leafmap
3
+ pydantic< 2.0
4
  solara