Skip to content

Commit

Permalink
Add pre-commit (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs authored Oct 25, 2024
1 parent 9beed3c commit 64189ed
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 3 deletions.
32 changes: 32 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
types: [python]
- id: trailing-whitespace
- id: requirements-txt-fixer
- id: check-added-large-files
args: ["--maxkb=500"]

- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black-jupyter

- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
args:
[
"--ignore-words-list=aci,acount,acounts,fallow,ges,hart,hist,nd,ned,ois,wqs,watermask,tre",
"--skip=*.csv,*.geojson,*.json,*.yml*.js,*.html,*cff,*.pdf",
]

- repo: https://github.com/kynan/nbstripout
rev: 0.7.1
hooks:
- id: nbstripout
2 changes: 1 addition & 1 deletion pages/00_home.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def Page():
with solara.Column(align="center"):
markdown = """
## A Solara Web App for Visualizing [Maxar Open Data](https://www.maxar.com/open-data)
### Introduction
**A collection of [Solara](https://github.com/widgetti/solara) web apps for geospatial applications.**
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
geopandas
leafmap
pydantic< 2.0
solara
geopandas
pydantic< 2.0

0 comments on commit 64189ed

Please sign in to comment.