-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #440 from GeoDerp/custom_cec
Revert skforecast
- Loading branch information
Showing
37 changed files
with
381 additions
and
264 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: "Code Quality Scan" | ||
# Use tools such as mypy ruf and sonarcloud to check for code quality & code security | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
permissions: | ||
contents: read | ||
packages: write | ||
attestations: write | ||
id-token: write | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
env: | ||
OS: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@master | ||
|
||
- name: Install uv | ||
uses: astral-sh/setup-uv@v5 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version-file: ".python-version" | ||
|
||
- name: Install the project | ||
run: uv sync --reinstall --extra test | ||
|
||
- name: Install ruff | ||
run: uv tool install ruff | ||
|
||
- name: Run Ruff | ||
run: uvx ruff check --output-format=github . | ||
|
||
# - name: Type Check with Mypy | ||
# shell: bash | ||
# run: | | ||
# uv run mypy ./src/ | ||
|
||
- name: SonarQube Scan | ||
uses: SonarSource/sonarqube-scan-action@v4 | ||
env: | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
scan-pr: | ||
needs: | ||
- build | ||
uses: "geoderp/osv-scanner-action/.github/workflows/[email protected]" | ||
with: | ||
fail-on-vuln: false | ||
scan-args: |- | ||
--recursive | ||
./ | ||
permissions: | ||
security-events: write | ||
contents: read | ||
actions: read |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ name: "Publish Docker test image" | |
|
||
on: | ||
push: | ||
branches: [testing] | ||
branches: [master] | ||
workflow_dispatch: | ||
|
||
env: | ||
|
@@ -25,8 +25,6 @@ jobs: | |
platform: | ||
[ | ||
{ target_arch: amd64, os_version: debian }, | ||
{ target_arch: armv7, os_version: debian }, | ||
{ target_arch: armhf, os_version: raspbian }, | ||
{ target_arch: aarch64, os_version: debian }, | ||
] | ||
steps: | ||
|
@@ -112,8 +110,6 @@ jobs: | |
platform: | ||
[ | ||
{ target_arch: amd64 }, | ||
{ target_arch: armv7 }, | ||
{ target_arch: armhf }, | ||
{ target_arch: aarch64 }, | ||
] | ||
uses: "geoderp/osv-scanner-action/.github/workflows/[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,8 +24,6 @@ jobs: | |
platform: | ||
[ | ||
{ target_arch: amd64, os_version: debian }, | ||
{ target_arch: armv7, os_version: debian }, | ||
{ target_arch: armhf, os_version: raspbian }, | ||
{ target_arch: aarch64, os_version: debian }, | ||
] | ||
steps: | ||
|
@@ -111,8 +109,6 @@ jobs: | |
platform: | ||
[ | ||
{ target_arch: amd64 }, | ||
{ target_arch: armv7 }, | ||
{ target_arch: armhf }, | ||
{ target_arch: aarch64 }, | ||
] | ||
uses: "geoderp/osv-scanner-action/.github/workflows/[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.11 | ||
3.12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
import os | ||
from distutils.util import strtobool | ||
|
||
bind = f"{os.getenv('IP', '0.0.0.0')}:{os.getenv('PORT', '5000')}" | ||
|
||
workers = int(os.getenv("WEB_CONCURRENCY", 1)) | ||
threads = int(os.getenv("PYTHON_MAX_THREADS", 8)) | ||
|
||
reload = bool(strtobool(os.getenv("WEB_RELOAD", "true"))) | ||
reload = (os.getenv("WEB_RELOAD", "true").lower()) == "true" | ||
|
||
timeout = int(os.getenv("WEB_TIMEOUT", 240)) |
Oops, something went wrong.