Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redoes all data/ content to the new science project structure #1035

Draft
wants to merge 2 commits into
base: dev
Choose a base branch
from
Draft
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
9 changes: 0 additions & 9 deletions data/.dockerignore

This file was deleted.

34 changes: 32 additions & 2 deletions data/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,36 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.275
hooks:
- id: ruff
args: [ "--line-length=100", "--select=E,F,N"]

- repo: https://github.com/psf/black
rev: 23.1.0
rev: 23.3.0
hooks:
- id: black
args: ["--line-length=120"]
args: [ "--line-length=100" ]

- repo: https://github.com/nbQA-dev/nbQA
rev: 1.7.0
hooks:
- id: nbqa-black
args: [ "--line-length=100"]
- id: nbqa-isort
args: [ "--float-to-top", "--profile=black"]
- id: nbqa-ruff
args: [ "--line-length=100" , "--select=E,F,N", "--fix"]

# check for private keys and passwords!
- repo: https://github.com/gitleaks/gitleaks
rev: v8.17.0
hooks:
- id: gitleaks-docker

6 changes: 3 additions & 3 deletions data/Dockerfile → data/importers/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2

RUN pip install -q --upgrade --no-cache-dir pip

COPY ./requirements.txt requirements.txt
COPY requirements.txt requirements.txt
RUN pip install -q --no-cache-dir -r requirements.txt

WORKDIR /
Expand All @@ -30,7 +30,7 @@ RUN mkdir -p data/
COPY ./base_data_importer/ /base_data_importer
COPY ./data_download/ /data_download
COPY h3_data_importer /h3_data_importer
COPY indicator_coefficient_importer/ /indicator_coefficient_importer
COPY ./Makefile ./Makefile
COPY indicator_coefficient_importer /indicator_coefficient_importer
COPY Makefile ./Makefile

ENTRYPOINT ["/usr/bin/make"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions data/docker-compose.yml → data/importers/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ version: "3.8"
services:
landgriffon-seed-data:
build:
context: ./
context: ..
dockerfile: Dockerfile
command: seed-data
env_file:
- '../.env'
- '../../.env'
network_mode: "host"
File renamed without changes.
Loading