Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 0 additions & 46 deletions .github/workflows/format-suggest.yaml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/format_pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Workflow derived from https://github.com/posit-dev/setup-air/tree/main/examples
name: format
on:
pull_request:
workflow_dispatch: # allows you to trigger manually

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
format-pre-commit:
name: format-update
runs-on: ubuntu-latest

permissions:
contents: write
pull-requests: write

steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: format
uses: pre-commit/action@v3.0.1
continue-on-error: true

- name: commit & push
run: |
git add .
git commit -m "ci: 🤖 auto-format" || echo "nothing to commit"
git push || echo "nothing to push"
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
repos:
- repo: https://github.com/posit-dev/air-pre-commit
# Air version
rev: 0.8.2
hooks:
# Run the formatter
- id: air-format
7 changes: 7 additions & 0 deletions R/GeospatialFunctions.R
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,13 @@ fetchATTAINS <- function(.data, catchments_only = FALSE, org_id = "all") {
)
}

# Nothing comment
nothing_var <- c(
"https://gispub.epa.gov/arcgis/1",
"https://gispub.epa.gov/arcgis/2",
"https://gispub.epa.gov/arcgis/3"
)

baseurls <- c(
"https://gispub.epa.gov/arcgis/rest/services/OW/ATTAINS_Assessment/MapServer/3/query?",
"https://gispub.epa.gov/arcgis/rest/services/OW/ATTAINS_Assessment/MapServer/0/query?",
Expand Down
Loading