Added pre-commit config file (#1508)

* Added .pre-commit-config.yaml file

* Initial pass of pre-commit with its default rules and flake8

* Revert "Initial pass of pre-commit with its default rules and flake8"

This reverts commit 86d39e964e8122580d675f4639ae2d15b85c02e2.

* Made pre-commit only act on code files

* Added sql to the pre-commit file pattern

* Initial pass of pre-commit
This commit is contained in:
Ricardo Garcia Silva
2024-01-30 17:37:16 +00:00
committed by GitHub
parent c5353d889a
commit 8e7f8fc26d
6 changed files with 48 additions and 12 deletions
+6 -7
View File
@@ -42,42 +42,42 @@ COMMENT ON SCHEMA topology IS 'PostGIS Topology schema';
--
-- Name: hstore; Type: EXTENSION; Schema: -; Owner:
-- Name: hstore; Type: EXTENSION; Schema: -; Owner:
--
CREATE EXTENSION IF NOT EXISTS hstore WITH SCHEMA public;
--
-- Name: EXTENSION hstore; Type: COMMENT; Schema: -; Owner:
-- Name: EXTENSION hstore; Type: COMMENT; Schema: -; Owner:
--
COMMENT ON EXTENSION hstore IS 'data type for storing sets of (key, value) pairs';
--
-- Name: postgis; Type: EXTENSION; Schema: -; Owner:
-- Name: postgis; Type: EXTENSION; Schema: -; Owner:
--
CREATE EXTENSION IF NOT EXISTS postgis WITH SCHEMA public;
--
-- Name: EXTENSION postgis; Type: COMMENT; Schema: -; Owner:
-- Name: EXTENSION postgis; Type: COMMENT; Schema: -; Owner:
--
COMMENT ON EXTENSION postgis IS 'PostGIS geometry, geography, and raster spatial types and functions';
--
-- Name: postgis_topology; Type: EXTENSION; Schema: -; Owner:
-- Name: postgis_topology; Type: EXTENSION; Schema: -; Owner:
--
CREATE EXTENSION IF NOT EXISTS postgis_topology WITH SCHEMA topology;
--
-- Name: EXTENSION postgis_topology; Type: COMMENT; Schema: -; Owner:
-- Name: EXTENSION postgis_topology; Type: COMMENT; Schema: -; Owner:
--
COMMENT ON EXTENSION postgis_topology IS 'PostGIS topology spatial types and functions';
@@ -15030,4 +15030,3 @@ REFRESH MATERIALIZED VIEW osm.hotosm_bdi_drains;
--
-- PostgreSQL database dump complete
--
+1 -1
View File
@@ -2,4 +2,4 @@ CONNECT sys/oracle@XEPDB1 AS SYSDBA;
CREATE USER geo_test IDENTIFIED BY geo_test QUOTA UNLIMITED ON USERS;
GRANT CONNECT, RESOURCE, DBA TO geo_test;
GRANT CONNECT, RESOURCE, DBA TO geo_test;