Skip to content

Commit

Permalink
Merge branch 'dev-fix-inundate-nation' of https://github.com/NOAA-OWP…
Browse files Browse the repository at this point in the history
…/cahaba into dev-fix-inundate-nation
  • Loading branch information
RyanSpies-NOAA committed Nov 27, 2023
2 parents 5852085 + 95b07e5 commit a4b7b5e
Show file tree
Hide file tree
Showing 31 changed files with 885 additions and 659 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/lint_and_format.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Lint and Format Using Pre-Commit

on:
pull_request:
branches:
- dev
- main
workflow_dispatch:

permissions:
contents: read

jobs:
lint-and-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version-file: pyproject.toml
- uses: pre-commit/action@v3.0.0
5 changes: 2 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ repos:
- id: check-json

- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 6.1.0
hooks:
- id: flake8
entry: pflake8
additional_dependencies: [pyproject-flake8]
additional_dependencies: [flake8-pyproject]

- repo: https://github.com/psf/black
rev: 23.7.0
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ If you would like to contribute, please follow these steps:
# Check all files in the repo
pre-commit run -a
# Run only the black formatting tool
# Run only the flake8 formatting tool
pre-commit run -a flake8
```

Expand Down
4 changes: 2 additions & 2 deletions Pipfile
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ ipympl = "==0.9.3"
pytest = "==7.3.0"
whitebox = "==2.3.1"
shapely = "==2.0.1"
pyarrow = "==11.0.0"
pyarrow = "==14.0.1"
rtree = "==1.0.1"
py7zr = "==0.20.4"
scipy = "==1.10.1"
gval = "==0.2.3"
flake8 = "==6.0.0"
black = "==23.7.0"
pyproject-flake8 = "==6.0.0.post1"
flake8-pyproject = "==1.2.3"
pre-commit = "==3.3.3"
isort = "==5.12.0"
urllib3 = "==1.26.18"
Expand Down
1,065 changes: 514 additions & 551 deletions Pipfile.lock

Large diffs are not rendered by default.

Loading

0 comments on commit a4b7b5e

Please sign in to comment.