Skip to content

Commit

Permalink
pre-commit setup
Browse files Browse the repository at this point in the history
  • Loading branch information
cyschneck committed Jun 2, 2024
1 parent 15eca00 commit 4e91530
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/web_scrap_dynamic_csv_files.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: update-dynamic-csv-data-files

on:
workflow_dispatch:
schedule:
- cron: '0 0 2 * *' # “At 00:00 on day-of-month 2” (on the 2nd of the month)

Expand Down
24 changes: 24 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
repos:
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-yaml

- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.0.1
hooks:
- id: remove-tabs
name: remove tabs
exclude_types: [csv, tab]

- repo: https://github.com/google/yapf
rev: v0.40.2
hooks:
- id: yapf
name: yapf reformat
args: ['--in-place', '--recursive', '--style', 'pep8']
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dependencies:
- beautifulsoup4
- pandas
- pdr
- pre-commit # pre-commit hooks
- pyproj
- pytest
- rasterio
Expand Down

0 comments on commit 4e91530

Please sign in to comment.