Skip to content
Open
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
2 changes: 2 additions & 0 deletions .github/workflows/LicenseChecks.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: Tim Sutton
# SPDX-License-Identifier: MIT
name: 📃 License Checks
on:
pull_request:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/LoadSchema.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: Tim Sutton
# SPDX-License-Identifier: MIT
name: 🏋🏽 PostGIS Load Test
on:
push:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/MarkdownChecks.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: Tim Sutton
# SPDX-License-Identifier: MIT
name: ✏️ Markdown Checks
on:
pull_request:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/PythonChecks.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: Tim Sutton
# SPDX-License-Identifier: MIT
name: 🐍 Python Checks
on:
pull_request:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/QAChecks.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: Tim Sutton
# SPDX-License-Identifier: MIT
name: ⚒️ QA Checks
on:
pull_request:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/SQLChecks.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: Tim Sutton
# SPDX-License-Identifier: MIT
name: 👨🏽 SQL Checks
on:
pull_request:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/SpellCheck.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: Tim Sutton
# SPDX-License-Identifier: MIT
name: 👁️ Spelling Checks
on:
pull_request:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/YamlChecks.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: Tim Sutton
# SPDX-License-Identifier: MIT
name: 🗜️ Yaml Checks
on:
pull_request:
Expand Down
2 changes: 2 additions & 0 deletions .markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# SPDX-FileCopyrightText:
# SPDX-License-Identifier:
MD013: false # allow long lines 1
MD033: false # allow inline HTML
2 changes: 2 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- SPDX-FileCopyrightText: Tim Sutton -->
<!-- SPDX-License-Identifier: MIT -->
# 🌟 Contributor Covenant Code of Conduct

## 🌈 Our Pledge
Expand Down
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- SPDX-FileCopyrightText: Tim Sutton -->
<!-- SPDX-License-Identifier: MIT -->
# ✨ Contributing to Infrastructure Mapper

Thank you for considering contributing to **Infrastructure Mapper**!
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- SPDX-FileCopyrightText: Tim Sutton -->
<!-- SPDX-License-Identifier: MIT -->
# 🌐 Infrastructure Mapper
<!-- cspell:ignore landuse -->

Expand Down
2 changes: 2 additions & 0 deletions cspell.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: Tim Sutton
# SPDX-License-Identifier: MIT
{
"version": "0.2",
"words": [
Expand Down
2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: Tim Sutton
# SPDX-License-Identifier: MIT
{
description = "NixOS developer environment for QGIS plugins.";

Expand Down
2 changes: 2 additions & 0 deletions presentations/1-overview.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- SPDX-FileCopyrightText: Tim Sutton -->
<!-- SPDX-License-Identifier: MIT -->
---
marp: true
theme: infrastructure
Expand Down
2 changes: 2 additions & 0 deletions presentations/13-roads.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- SPDX-FileCopyrightText: Tim Sutton -->
<!-- SPDX-License-Identifier: MIT -->
---
marp: true
theme: infrastructure
Expand Down
2 changes: 2 additions & 0 deletions presentations/3-culinaryfacilities.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- SPDX-FileCopyrightText: Tim Sutton -->
<!-- SPDX-License-Identifier: MIT -->
---
marp: true
theme: infrastructure
Expand Down
2 changes: 2 additions & 0 deletions presentations/PRESENTATION.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- SPDX-FileCopyrightText: Tim Sutton -->
<!-- SPDX-License-Identifier: MIT -->
# 🖼️ Presentation Format Guide (Marp)

This folder contains Marp-based presentations for the **Infrastructure Mapper** project.
Expand Down
2 changes: 2 additions & 0 deletions presentations/slide-style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- SPDX-FileCopyrightText: Tim Sutton -->
<!-- SPDX-License-Identifier: MIT -->
/* slide-style.css */
/* @theme infrastructure */

Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# SPDX-FileCopyrightText: Tim Sutton
# SPDX-License-Identifier: MIT
darglint==1.8.1
15 changes: 10 additions & 5 deletions scripts/add_spdx_headers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,20 @@ add_header() {

export -f add_header

# Find all files except in .git, .reuse, LICENSES, etc.
# Find all files and check against .gitignore dynamically
find . \
-type f \
! -path "./.git/*" \
! -path "./LICENSES/*" \
! -path "./.reuse/*" \
! -name "*.license" \
! -name "*.png" \
! -name "*.gif" \
! -name "*.qgz" \
-exec bash -c 'add_header "$0"' {} \;
-print0 | while IFS= read -r -d '' file; do
# Use git check-ignore to see if file should be ignored per .gitignore
if git check-ignore -q "$file" 2>/dev/null; then
echo "🚫 Skipping ignored file: $file"
continue
fi

add_header "$file"
done

2 changes: 2 additions & 0 deletions scripts/check.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: Tim Sutton
# SPDX-License-Identifier: MIT
pre-commit clean > /dev/null
pre-commit install --install-hooks > /dev/null
pre-commit run --all-files || true
2 changes: 2 additions & 0 deletions scripts/codebase_size_check.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: Tim Sutton
# SPDX-License-Identifier: MIT
#!/usr/bin/env bash

# 🤖 Add a hook that calculates the number of lines change and gives
Expand Down
2 changes: 2 additions & 0 deletions scripts/commit_test_stats.py
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: Tim Sutton
# SPDX-License-Identifier: MIT
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

Expand Down
2 changes: 2 additions & 0 deletions scripts/create_presentations.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: Tim Sutton
# SPDX-License-Identifier: MIT
#!/usr/bin/env bash

PRESENTATION_DIR="./presentations"
Expand Down
2 changes: 2 additions & 0 deletions scripts/docstrings_check.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: Tim Sutton
# SPDX-License-Identifier: MIT
#!/usr/bin/env bash

# 🤖 Add a check that ensures that any python modules updated
Expand Down
2 changes: 2 additions & 0 deletions scripts/encoding_check.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: Tim Sutton
# SPDX-License-Identifier: MIT
#!/usr/bin/env bash

# 🤖 Add a precommit hook that ensures that each python
Expand Down
2 changes: 2 additions & 0 deletions scripts/gource.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: Tim Sutton
# SPDX-License-Identifier: MIT
#!/usr/bin/env bash


Expand Down
2 changes: 2 additions & 0 deletions scripts/license_check.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: Tim Sutton
# SPDX-License-Identifier: MIT
#!/usr/bin/env bash

# 🤖 Add a shell hook that ensures that each file (sql, shell script, python module)
Expand Down
2 changes: 2 additions & 0 deletions scripts/load_schema.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: Tim Sutton
# SPDX-License-Identifier: MIT
#!/usr/bin/env bash

PSQL=$(which psql)
Expand Down
2 changes: 2 additions & 0 deletions scripts/start_pg.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: Tim Sutton
# SPDX-License-Identifier: MIT
export PATH=${postgresWithPostGIS}/bin:$PATH
export PGDATA="$PWD/pgdata"
export PGHOST="$PGDATA"
Expand Down
2 changes: 2 additions & 0 deletions scripts/stop_pg.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: Tim Sutton
# SPDX-License-Identifier: MIT
#!/usr/bin/env bash
set -x
PGDATA=$PWD/pgdata
Expand Down
2 changes: 2 additions & 0 deletions scripts/vscode.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: Tim Sutton
# SPDX-License-Identifier: MIT
#!/usr/bin/env bash

# ----------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions sql/1-infrastructure.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- SPDX-FileCopyrightText: Tim Sutton -->
<!-- SPDX-License-Identifier: MIT -->
# 🏗️ Infrastructure

![Infrastructure](../img/infrastructure.png)
Expand Down
2 changes: 2 additions & 0 deletions sql/1-infrastructure.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
-- SPDX-FileCopyrightText: Tim Sutton
-- SPDX-License-Identifier: MIT
-- --------------------------------------INFRASTRUCTURE-------------------------------------
-- INFRASTRUCTURE TYPE
CREATE TABLE
Expand Down
2 changes: 2 additions & 0 deletions sql/10-gates.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- SPDX-FileCopyrightText: Tim Sutton -->
<!-- SPDX-License-Identifier: MIT -->
# 🚪 Gates

![Gates](../img/gates.png)
Expand Down
2 changes: 2 additions & 0 deletions sql/10-gates.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
-- SPDX-FileCopyrightText: Tim Sutton
-- SPDX-License-Identifier: MIT
-- --------------------------------------GATES--------------------------------------------
-- added by Jeremy Ferris
-- GATE TYPE
Expand Down
2 changes: 2 additions & 0 deletions sql/11-poles.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- SPDX-FileCopyrightText: Tim Sutton -->
<!-- SPDX-License-Identifier: MIT -->
# 🪧 Poles

![Poles](../img/poles.png)
Expand Down
2 changes: 2 additions & 0 deletions sql/11-poles.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
-- SPDX-FileCopyrightText: Tim Sutton
-- SPDX-License-Identifier: MIT
-- --------------------------------------POLES--------------------------------------------
-- By Charles Mudima
-- POLE MATERIAL
Expand Down
2 changes: 2 additions & 0 deletions sql/12-culinary.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- SPDX-FileCopyrightText: Tim Sutton -->
<!-- SPDX-License-Identifier: MIT -->
# 🍽️ Culinary

![Culinary](../img/food-services.png)
Expand Down
2 changes: 2 additions & 0 deletions sql/12-culinary.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
-- SPDX-FileCopyrightText: Tim Sutton
-- SPDX-License-Identifier: MIT
-- --------------------------------------CULINARY
-- FACILITIES-------------------------------------
-- By: Hefni R. R. A.
Expand Down
2 changes: 2 additions & 0 deletions sql/13-roads.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- SPDX-FileCopyrightText: Tim Sutton -->
<!-- SPDX-License-Identifier: MIT -->
# 🛣️ Roads

![Roads](../img/roads.png)
Expand Down
2 changes: 2 additions & 0 deletions sql/13-roads.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
-- SPDX-FileCopyrightText: Tim Sutton
-- SPDX-License-Identifier: MIT
-- --------------------------------------ROADS--------------------------------------------
-- SEGMENT TYPE
CREATE TABLE IF NOT EXISTS segment_type (
Expand Down
2 changes: 2 additions & 0 deletions sql/2-electricity.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- SPDX-FileCopyrightText: Tim Sutton -->
<!-- SPDX-License-Identifier: MIT -->
# ⚡ Electricity

![Electricity](../img/electricity.png)
Expand Down
2 changes: 2 additions & 0 deletions sql/2-electricity.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
-- SPDX-FileCopyrightText: Tim Sutton
-- SPDX-License-Identifier: MIT
-- --------------------------------------ELECTRICITY-------------------------------------
-- ELECTRICITY LINE TYPE
CREATE TABLE
Expand Down
2 changes: 2 additions & 0 deletions sql/3-water.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- SPDX-FileCopyrightText: Tim Sutton -->
<!-- SPDX-License-Identifier: MIT -->
# 💧 Water

![Water](../img/water.png)
Expand Down
2 changes: 2 additions & 0 deletions sql/3-water.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
-- SPDX-FileCopyrightText: Tim Sutton
-- SPDX-License-Identifier: MIT
-- --------------------------------------WATER-------------------------------------
-- WATER SOURCE
CREATE TABLE
Expand Down
2 changes: 2 additions & 0 deletions sql/4-vegetation.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- SPDX-FileCopyrightText: Tim Sutton -->
<!-- SPDX-License-Identifier: MIT -->
# 🌱 Vegetation

![Vegetation](../img/vegetation.png)
Expand Down
2 changes: 2 additions & 0 deletions sql/4-vegetation.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
-- SPDX-FileCopyrightText: Tim Sutton
-- SPDX-License-Identifier: MIT
-- --------------------------------------VEGETATION-------------------------------------
-- PLANT GROWTH ACTIVITY TYPE
CREATE TABLE
Expand Down
2 changes: 2 additions & 0 deletions sql/5-monitoring.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- SPDX-FileCopyrightText: Tim Sutton -->
<!-- SPDX-License-Identifier: MIT -->
# 📡 Monitoring

![Monitoring](../img/monitoring.png)
Expand Down
2 changes: 2 additions & 0 deletions sql/5-monitoring.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
-- SPDX-FileCopyrightText: Tim Sutton
-- SPDX-License-Identifier: MIT
-- --------------------------------------MONITORING
-- STATIONS-------------------------------------
-- READING UNIT
Expand Down
2 changes: 2 additions & 0 deletions sql/6-buildings.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- SPDX-FileCopyrightText: Tim Sutton -->
<!-- SPDX-License-Identifier: MIT -->
# 🏠 Buildings

![Buildings](../img/buildings.png)
Expand Down
2 changes: 2 additions & 0 deletions sql/6-buildings.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
-- SPDX-FileCopyrightText: Tim Sutton
-- SPDX-License-Identifier: MIT
-- -------------------------------------- LAND USE BUILDINGS
-- -------------------------------------
-- BUILDING TYPE --
Expand Down
2 changes: 2 additions & 0 deletions sql/7-fencing.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- SPDX-FileCopyrightText: Tim Sutton -->
<!-- SPDX-License-Identifier: MIT -->
# 🚧 Fencing

![Fencing](../img/fencing.png)
Expand Down
2 changes: 2 additions & 0 deletions sql/7-fencing.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
-- SPDX-FileCopyrightText: Tim Sutton
-- SPDX-License-Identifier: MIT
-- -------------------------------------- FENCES -------------------------------------
-- FENCE TYPE
CREATE TABLE
Expand Down
2 changes: 2 additions & 0 deletions sql/8-poi.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- SPDX-FileCopyrightText: Tim Sutton -->
<!-- SPDX-License-Identifier: MIT -->

# 📍 Points Of Interest

Expand Down
2 changes: 2 additions & 0 deletions sql/8-poi.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
-- SPDX-FileCopyrightText: Tim Sutton
-- SPDX-License-Identifier: MIT
-- POINT OF INTEREST TYPE
CREATE TABLE
IF NOT EXISTS point_of_interest_type (
Expand Down
2 changes: 2 additions & 0 deletions sql/9-landuse.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- SPDX-FileCopyrightText: Tim Sutton -->
<!-- SPDX-License-Identifier: MIT -->
# 🗺️ Land use
<!-- cspell:ignore landuse -->

Expand Down
2 changes: 2 additions & 0 deletions sql/9-landuse.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
-- SPDX-FileCopyrightText: Tim Sutton
-- SPDX-License-Identifier: MIT
-- --------------------------------------LANDUSE AREA
-- -------------------------------------
-- LANDUSE AREA TYPE
Expand Down
2 changes: 2 additions & 0 deletions sql/extensions.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
-- SPDX-FileCopyrightText: Tim Sutton
-- SPDX-License-Identifier: MIT
--create database farming;
-- add connect statement here
DO $$
Expand Down
2 changes: 2 additions & 0 deletions sql/fixtures.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
-- SPDX-FileCopyrightText: Tim Sutton
-- SPDX-License-Identifier: MIT
-- vegetation
-- months of the year
INSERT INTO month (last_update_by, name, sort_order) VALUES (
Expand Down
Loading