Skip to content

Commit

Permalink
precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobMiksch committed Oct 19, 2024
1 parent de5d97c commit 6b51b41
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .env_template
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ OSM_PG_FEATURESERV_POSTGRES_USER=db
OSM_PG_FEATURESERV_POSTGRES_PASS=db

OSM_PG_FEATURESERV_API_SYSTEM_PORT=9000
OSM_PG_FEATURESERV_DB_SYSTEM_PORT=5432
OSM_PG_FEATURESERV_DB_SYSTEM_PORT=5432
15 changes: 15 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: pre-commit

on:
pull_request:
push:
branches: [main]

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/[email protected]

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
*.zip
assets/
pg_featureserv
.env
.env
15 changes: 15 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-xml
- id: detect-private-key
- id: mixed-line-ending
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,3 @@ Request the API with your browser or any other tool:

- HTML: <http://localhost:9000/functions/postgisftw.osm_feature_info/items.html?latitude=53.112&longitude=8.755&distance=50&limit=10000>
- JSON: <http://localhost:9000/functions/postgisftw.osm_feature_info/items.json?latitude=53.112&longitude=8.755&distance=50&limit=10000>

2 changes: 1 addition & 1 deletion compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ services:
condition: service_healthy

volumes:
osm_pg_featureserv_db_data:
osm_pg_featureserv_db_data:
2 changes: 1 addition & 1 deletion data/flex_style.lua
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,4 @@ function osm2pgsql.process_relation(object)
geom = object:as_multipolygon()
})
end
end
end
2 changes: 1 addition & 1 deletion postgres/docker-entrypoint-initdb.d/01_create_postgis.sql
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CREATE EXTENSION postgis;
CREATE EXTENSION postgis;

0 comments on commit 6b51b41

Please sign in to comment.