Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
pre-commit-ci[bot] committed Jul 12, 2024
1 parent eff56bd commit 7506cb6
Showing 45 changed files with 45 additions and 0 deletions.
1 change: 1 addition & 0 deletions LDMP/__init__.py
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@
email : trends.earth@conservation.org
***************************************************************************/
"""

# pylint: disable=import-error
import json
import os
1 change: 1 addition & 0 deletions LDMP/about.py
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@
email : trends.earth@conservation.org
***************************************************************************/
"""

from pathlib import Path

from qgis.PyQt import QtWidgets
1 change: 1 addition & 0 deletions LDMP/api.py
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@
email : trends.earth@conservation.org
***************************************************************************/
"""

import io
import sys
import typing
1 change: 1 addition & 0 deletions LDMP/auth.py
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@
email : trends.earth@conservation.org
***************************************************************************/
"""

import dataclasses

from qgis.core import QgsApplication
1 change: 1 addition & 0 deletions LDMP/calculate.py
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@
email : trends.earth@conservation.org
***************************************************************************/
"""

import datetime as dt
import functools
import json
1 change: 1 addition & 0 deletions LDMP/calculate_lc.py
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@
email : trends.earth@conservation.org
***************************************************************************/
"""

import json
from pathlib import Path

1 change: 1 addition & 0 deletions LDMP/calculate_prod.py
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@
email : trends.earth@conservation.org
***************************************************************************/
"""

import json
import typing
from pathlib import Path
1 change: 1 addition & 0 deletions LDMP/calculate_rest_biomass.py
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@
email : trends.earth@conservation.org
***************************************************************************/
"""

import json
from pathlib import Path

1 change: 1 addition & 0 deletions LDMP/calculate_soc.py
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@
email : trends.earth@conservation.org
***************************************************************************/
"""

import json
from pathlib import Path

1 change: 1 addition & 0 deletions LDMP/calculate_tc.py
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@
email : trends.earth@conservation.org
***************************************************************************/
"""

import json
from pathlib import Path

1 change: 1 addition & 0 deletions LDMP/calculate_urban.py
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@
email : trends.earth@conservation.org
***************************************************************************/
"""

import json
from pathlib import Path

1 change: 1 addition & 0 deletions LDMP/conf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Configuration utilities for Trends.Earth QGIS plugin."""

import enum
import json
import os
1 change: 1 addition & 0 deletions LDMP/data_io.py
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@
email : trends.earth@conservation.org
***************************************************************************/
"""

import dataclasses
import functools
import json
1 change: 1 addition & 0 deletions LDMP/datasets_dialog.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Datasets details dialog for Trends.Earth QGIS plugin."""

import json
import os
from pathlib import Path
1 change: 1 addition & 0 deletions LDMP/download.py
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@
email : trends.earth@conservation.org
***************************************************************************/
"""

import dataclasses
import gzip
import hashlib
1 change: 1 addition & 0 deletions LDMP/download_data.py
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@
email : trends.earth@conservation.org
***************************************************************************/
"""

import json
import os
from pathlib import Path
1 change: 1 addition & 0 deletions LDMP/generate_report_dialog.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Dialog for generating compound/multiscope reports."""

import typing
from pathlib import Path

1 change: 1 addition & 0 deletions LDMP/jobs/models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Job and dataset utilities"""

import enum
import functools
import re
1 change: 1 addition & 0 deletions LDMP/landpks.py
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@
email : trends.earth@conservation.org
***************************************************************************/
"""

import json
from pathlib import Path

1 change: 1 addition & 0 deletions LDMP/lc_setup.py
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@
email : trends.earth@conservation.org
***************************************************************************/
"""

from __future__ import annotations

import json
1 change: 1 addition & 0 deletions LDMP/metadata_dialog.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Metadata editing dialog for Trends.Earth QGIS plugin."""

import os
from pathlib import Path

1 change: 1 addition & 0 deletions LDMP/plot.py
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@
email : trends.earth@conservation.org
***************************************************************************/
"""

from pathlib import Path

import numpy as np
1 change: 1 addition & 0 deletions LDMP/plugin.py
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@
email : trends.earth@conservation.org
***************************************************************************/
"""

import os

from qgis.core import QgsApplication
1 change: 1 addition & 0 deletions LDMP/reports/charts.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Charts showing summary layer statistics."""

import os
import typing
from collections import namedtuple
1 change: 1 addition & 0 deletions LDMP/reports/generator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Report generator"""

import json
import os
import signal
1 change: 1 addition & 0 deletions LDMP/reports/models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Data models for the reporting framework."""

import hashlib
import json
import os
1 change: 1 addition & 0 deletions LDMP/reports/mvc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Classes for interfacing UI with report models."""

import os
import typing

1 change: 1 addition & 0 deletions LDMP/reports/template_manager.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Reads and validates templates."""

import json
import os
import typing
1 change: 1 addition & 0 deletions LDMP/reports/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Util functions for report-related functions."""

import os
import typing

1 change: 1 addition & 0 deletions LDMP/settings.py
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@
email : trends.earth@conservation.org
***************************************************************************/
"""

import os
import typing
import zipfile
1 change: 1 addition & 0 deletions LDMP/summary.py
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@
email : trends.earth@conservation.org
***************************************************************************/
"""

import numpy as np


1 change: 1 addition & 0 deletions LDMP/timeseries.py
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@
email : trends.earth@conservation.org
***************************************************************************/
"""

import json
from pathlib import Path

1 change: 1 addition & 0 deletions LDMP/visualization.py
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@
email : trends.earth@conservation.org
***************************************************************************/
"""

import os
import typing
from pathlib import Path
1 change: 1 addition & 0 deletions gee/download-data/src/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Code for downloading dataset.
"""

# Copyright 2017 Conservation International
import json
import random
1 change: 1 addition & 0 deletions gee/drought-vulnerability/src/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Code for calculating all three SDG 15.3.1 sub-indicators.
"""

# Copyright 2017 Conservation International
import random

1 change: 1 addition & 0 deletions gee/land-cover/src/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Code for calculating land cover change indicator.
"""

# Copyright 2017 Conservation International
import json
import random
1 change: 1 addition & 0 deletions gee/restoration-biomass/src/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Code for calculating potential carbon gains due to restoration.
"""

# Copyright 2017 Conservation International
import json
import random
1 change: 1 addition & 0 deletions gee/sdg-15-3-1-error-recode/src/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Code for calculating all three SDG 15.3.1 sub-indicators.
"""

# Copyright 2017 Conservation International
import random
import tempfile
1 change: 1 addition & 0 deletions gee/sdg-15-3-1-stats/src/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Code for calculating all three SDG 15.3.1 sub-indicators.
"""

# Copyright 2017 Conservation International
import random
from typing import Dict
1 change: 1 addition & 0 deletions gee/sdg-15-3-1-sub-indicators/src/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Code for calculating all three SDG 15.3.1 sub-indicators.
"""

# Copyright 2017 Conservation International
import random
from concurrent.futures import as_completed
1 change: 1 addition & 0 deletions gee/soil-organic-carbon/src/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Code for calculating soil organic carbon indicator.
"""

# Copyright 2017 Conservation International
import json
import random
1 change: 1 addition & 0 deletions gee/time-series/src/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Code for calculating vegetation productivity trajectory.
"""

# Copyright 2017 Conservation International
import json
import random
1 change: 1 addition & 0 deletions gee/total-carbon/src/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Code for calculating total carbon.
"""

# Copyright 2017 Conservation International
import json
import random
1 change: 1 addition & 0 deletions gee/urban-area/src/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Code for calculating urban area.
"""

# Copyright 2017 Conservation International
import json
import random
1 change: 1 addition & 0 deletions test/test_calculate_ldn.py
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@
email : trends.earth@conservation.org
***************************************************************************/
"""

import unittest
from multiprocessing import Process

0 comments on commit 7506cb6

Please sign in to comment.