-
Notifications
You must be signed in to change notification settings - Fork 0
Dev/feature/locations #69
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
Merged
Merged
Changes from all commits
Commits
Show all changes
59 commits
Select commit
Hold shift + click to select a range
73853db
development<final cleanup>: Emptying the repo
rflinnenbank e52db85
feature<documentation>: Initial base documentation
rflinnenbank 346f911
Merge pull request #36 from alliander-opensource/dev/feature/document…
rflinnenbank 2a4c434
Update pyproject.toml
rflinnenbank 2ed50ac
Update README.md
rflinnenbank 267d94d
feature<documentation>: Added issue templates
rflinnenbank 9d72a2d
Merge pull request #37 from alliander-opensource/dev/3.00-alpha1
rflinnenbank ce88046
feature<building-frame>: Finalized building frame and added basic log…
rflinnenbank d61f499
Merge pull request #38 from alliander-opensource/dev/feature/building…
rflinnenbank ef91b2f
Merge branch 'main' into dev/3.00-alpha1
rflinnenbank 6122f4c
Update src/meteoforge/logging/logging.py
rflinnenbank c2ba43a
Merge pull request #39 from alliander-opensource/dev/3.00-alpha1 (Bui…
rflinnenbank abf9787
feature<locations>: Partial copy and adjustment
rflinnenbank 9231111
feature<locations>: In between commit
rflinnenbank 2848eea
Add Scorecard workflow for supply-chain security
rflinnenbank d22a13d
feature<gh-actions>: Initial commit with most of the groundwork (#52)
rflinnenbank 95df036
feature<locations>: Partial copy and adjustment
rflinnenbank 324eebd
feature<locations>: In between commit
rflinnenbank 522d8bf
Merge remote-tracking branch 'origin/dev/feature/locations' into dev/…
rflinnenbank 3f94d67
feature <locations>: First version
rflinnenbank f6607dc
Potential fix for code scanning alert no. 23: Workflow does not conta…
rflinnenbank f5842ad
patch <security>: Security fixes for existing actions
rflinnenbank c0be230
Rebase commit for signage purposes
rflinnenbank b7f308b
development<final cleanup>: Emptying the repo
rflinnenbank 40f36cb
feature<documentation>: Initial base documentation
rflinnenbank 933e47e
Update pyproject.toml
rflinnenbank a3f6167
Update README.md
rflinnenbank 935d70b
feature<documentation>: Added issue templates
rflinnenbank c5b7993
feature<building-frame>: Finalized building frame and added basic log…
rflinnenbank 3b04841
Update src/meteoforge/logging/logging.py
rflinnenbank 767b101
Add Scorecard workflow for supply-chain security
rflinnenbank 920ee7f
feature<gh-actions>: Initial commit with most of the groundwork (#52)
rflinnenbank 5304f88
feature<locations>: Partial copy and adjustment
rflinnenbank aaa8a5e
feature<locations>: In between commit
rflinnenbank 5a870e5
feature <locations>: First version
rflinnenbank fea7f43
Potential fix for code scanning alert no. 23: Workflow does not conta…
rflinnenbank 93f2779
patch <security>: Security fixes for existing actions
rflinnenbank b5352b7
Rebase commit for signage purposes
rflinnenbank dbb61f4
Add input validation for python-version in pre-commit workflow
rflinnenbank be8d24e
Merge branch 'dev/feature/locations' of https://github.com/alliander-…
rflinnenbank 767547b
Update allowed Python versions in pre-commit workflow
rflinnenbank 0dfb43b
feature<documentation>: Initial base documentation
rflinnenbank 33ca206
feature<building-frame>: Finalized building frame and added basic log…
rflinnenbank 05ea88b
Add Scorecard workflow for supply-chain security
rflinnenbank e302d19
feature<gh-actions>: Initial commit with most of the groundwork (#52)
rflinnenbank a138f15
feature<locations>: Partial copy and adjustment
rflinnenbank 92716c1
feature<locations>: In between commit
rflinnenbank 85117b4
feature <locations>: First version
rflinnenbank a3992ab
Potential fix for code scanning alert no. 23: Workflow does not conta…
rflinnenbank d6978dc
patch <security>: Security fixes for existing actions
rflinnenbank 6ae138b
Rebase commit for signage purposes
rflinnenbank dce89b7
Add input validation for python-version in pre-commit workflow
rflinnenbank 6e13882
feature<locations>: In between commit
rflinnenbank b40ae3b
feature<locations>: In between commit
rflinnenbank 477af90
feature <locations>: First version
rflinnenbank 4c3c04f
Update allowed Python versions in pre-commit workflow
rflinnenbank e2342ff
Merge branch 'dev/feature/locations' of https://github.com/alliander-…
rflinnenbank bbfa35a
feature<documentation>: Initial base documentation
rflinnenbank 849ef40
Merge branch 'dev/feature/locations' of https://github.com/alliander-…
rflinnenbank File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,43 @@ | ||
| --- | ||
| name: Bug Report | ||
| about: Help us improve by reporting a bug | ||
| title: '' | ||
| labels: '' | ||
| assignees: '' | ||
| --- | ||
|
|
||
| ## **Describe the Bug** | ||
|
|
||
| Provide a clear and concise description of the issue. | ||
|
|
||
| ## **To Reproduce** | ||
|
|
||
| Steps to reproduce the behavior: | ||
|
|
||
| 1. Go to '...' | ||
| 2. Click on '...' | ||
| 3. Scroll down to '...' | ||
| 4. See the error. | ||
|
|
||
| ## **Expected Behavior** | ||
|
|
||
| Describe what you expected to happen. | ||
|
|
||
| ## **Screenshots** | ||
|
|
||
| If applicable, add screenshots to help explain the problem. | ||
|
|
||
| ## **Desktop (please complete the following information):** | ||
|
|
||
| - **OS**: [e.g., iOS] | ||
| - **Project Version**: [e.g., 22] | ||
|
|
||
| ## **Smartphone (please complete the following information):** | ||
|
|
||
| - **Device**: [e.g., iPhone 6] | ||
| - **OS**: [e.g., iOS 8.1] | ||
| - **Project Version**: [e.g., 22] | ||
|
|
||
| ## **Additional Context** | ||
|
|
||
| Add any other context about the problem here. |
This file contains hidden or 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,23 @@ | ||
| --- | ||
| name: Feature Request | ||
| about: Suggest an idea to improve this project | ||
| title: '' | ||
| labels: '' | ||
| assignees: '' | ||
| --- | ||
|
|
||
| ## **Is Your Feature Request Related to a Problem? Please Describe** | ||
|
|
||
| Provide a clear and concise description of the problem. For example: "I'm frustrated when [...]" | ||
|
|
||
| ## **Describe the Solution You'd Like** | ||
|
|
||
| Explain what you want to happen in a clear and concise manner. | ||
|
|
||
| ## **Describe Alternatives You've Considered** | ||
|
|
||
| List any alternative solutions or features you’ve thought about. | ||
|
|
||
| ## **Additional Context** | ||
|
|
||
| Add any other context, screenshots, or examples to support your request. |
This file contains hidden or 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,24 @@ | ||
| # To get started with Dependabot version updates, you'll need to specify which | ||
| # package ecosystems to update and where the package manifests are located. | ||
| # Please see the documentation for all configuration options: | ||
| # https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||
|
|
||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: "pip" | ||
| reviewers: | ||
| - "rflinnenbank" | ||
| directory: "/" | ||
| schedule: | ||
| interval: "weekly" | ||
| groups: | ||
| package-updates: | ||
| applies-to: version-updates | ||
| patterns: [ "*" ] | ||
|
|
||
| - package-ecosystem: "github-actions" | ||
| directory: "/" | ||
| reviewers: | ||
| - "rflinnenbank" | ||
| schedule: | ||
| interval: "weekly" |
This file contains hidden or 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,29 @@ | ||
| name: Check if PR source branch is allowed for development or release branches | ||
|
|
||
|
|
||
| on: | ||
| pull_request: | ||
| types: [ opened, reopened, synchronize, edited, ready_for_review ] | ||
| branches: | ||
| - development | ||
| - release/** | ||
|
|
||
| jobs: | ||
| enforce: | ||
| permissions: | ||
| contents: read | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Check PR source branch | ||
| env: | ||
| HEAD_REF: ${{ github.head_ref }} | ||
| run: | | ||
| echo "Head branch: $HEAD_REF" | ||
| if [[ "$HEAD_REF" =~ ^feature/ || "$HEAD_REF" =~ ^dev/feature/ ]]; then | ||
| echo "✔ Allowed source branch." | ||
| exit 0 | ||
| else | ||
| echo "❌ Disallowed source branch: $HEAD_REF" | ||
| echo "Only 'feature/*' or 'dev/feature/*' may open PRs into 'development' or 'release/*'." | ||
| exit 1 | ||
| fi | ||
This file contains hidden or 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,28 @@ | ||
| name: Check if PR source branch is allowed for main branch | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [ opened, reopened, synchronize, edited, ready_for_review ] | ||
| branches: | ||
| - main | ||
|
|
||
| jobs: | ||
| enforce: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| pull-requests: read | ||
| steps: | ||
| - name: Check PR source branch | ||
| env: | ||
| HEAD_REF: ${{ github.head_ref }} | ||
| run: | | ||
| echo "Head branch: $HEAD_REF" | ||
| if [[ "$HEAD_REF" == "development" || "$HEAD_REF" =~ ^release/ || "$HEAD_REF" =~ ^hotfix/ ]]; then | ||
| echo "✔ Allowed source branch." | ||
| exit 0 | ||
| else | ||
| echo "❌ Disallowed source branch: $HEAD_REF" | ||
| echo "Only 'development', 'release/*', or 'hotfix/*' may open PRs into 'main'." | ||
| exit 1 | ||
| fi |
This file contains hidden or 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,79 @@ | ||
| # This workflow uses actions that are not certified by GitHub. They are provided | ||
| # by a third-party and are governed by separate terms of service, privacy | ||
| # policy, and support documentation. | ||
|
|
||
| name: Scorecard supply-chain security | ||
| on: | ||
| # For Branch-Protection check. Only the default branch is supported. See | ||
| # https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection | ||
| branch_protection_rule: | ||
| # To guarantee Maintained check is occasionally updated. See | ||
| # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained | ||
| schedule: | ||
| - cron: '37 7 * * 1' | ||
| push: | ||
| branches: [ "main" ] | ||
|
|
||
| # Declare default permissions as read only (minimal for Scorecard). | ||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| analysis: | ||
| name: Scorecard analysis | ||
| runs-on: ubuntu-latest | ||
| # `publish_results: true` only works when run from the default branch. conditional can be removed if disabled. | ||
| if: github.event.repository.default_branch == github.ref_name || github.event_name == 'pull_request' | ||
| permissions: | ||
| # Needed to upload the results to code-scanning dashboard. | ||
| security-events: write | ||
| # Needed to publish results and get a badge (see publish_results below). | ||
| id-token: write | ||
| # Uncomment the permissions below if installing in a private repository. | ||
| # contents: read | ||
| # actions: read | ||
|
|
||
| steps: | ||
| - name: "Checkout code" | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - name: "Run analysis" | ||
| uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1 | ||
| with: | ||
| results_file: results.sarif | ||
| results_format: sarif | ||
| # (Optional) "write" PAT token. Uncomment the `repo_token` line below if: | ||
| # - you want to enable the Branch-Protection check on a *public* repository, or | ||
| # - you are installing Scorecard on a *private* repository | ||
| # To create the PAT, follow the steps in https://github.com/ossf/scorecard-action?tab=readme-ov-file#authentication-with-fine-grained-pat-optional. | ||
| # repo_token: ${{ secrets.SCORECARD_TOKEN }} | ||
|
|
||
| # Public repositories: | ||
| # - Publish results to OpenSSF REST API for easy access by consumers | ||
| # - Allows the repository to include the Scorecard badge. | ||
| # - See https://github.com/ossf/scorecard-action#publishing-results. | ||
| # For private repositories: | ||
| # - `publish_results` will always be set to `false`, regardless | ||
| # of the value entered here. | ||
| publish_results: true | ||
|
|
||
| # (Optional) Uncomment file_mode if you have a .gitattributes with files marked export-ignore | ||
| # file_mode: git | ||
|
|
||
| # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF | ||
| # format to the repository Actions tab. | ||
| - name: "Upload artifact" | ||
| uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1 | ||
| with: | ||
| name: SARIF file | ||
| path: results.sarif | ||
| retention-days: 5 | ||
|
|
||
| # Upload the results to GitHub's code scanning dashboard (optional). | ||
| # Commenting out will disable upload of results to your repo's Code Scanning dashboard | ||
| - name: "Upload to code-scanning" | ||
| uses: github/codeql-action/upload-sarif@v3 | ||
| with: | ||
| sarif_file: results.sarif |
This file contains hidden or 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,79 @@ | ||
| name: "PR Quality Gate: rc & main" | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: [ rc, main ] | ||
| types: [ opened, synchronize, reopened, ready_for_review ] | ||
|
|
||
|
|
||
| concurrency: | ||
| group: pr-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| precommit: | ||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
| name: pre-commit | ||
| if: ${{ !github.event.pull_request.draft }} | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| # NOTE: point "uses:" to the DIRECTORY that contains action.yaml | ||
| # If your composite is at ./pre-commit/action.yaml, use "./pre-commit" | ||
| - name: Run pre-commit composite | ||
| uses: ./.github/workflows/pre-commit | ||
| with: | ||
| python-version: ${{ env.MAIN_PYTHON_VERSION }} | ||
|
|
||
| pytest: | ||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
| name: pytest | ||
| if: ${{ !github.event.pull_request.draft }} | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| python-version: ${{ fromJSON(env.SUPPORTED_PYTHON_VERSIONS) }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Run pytest composite | ||
| uses: ./.github/workflows/pytest | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
|
|
||
| pytest-windows: | ||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
| name: pytest (Windows, non-blocking) | ||
| if: ${{ !github.event.pull_request.draft }} | ||
| runs-on: windows-latest | ||
| continue-on-error: true | ||
| strategy: | ||
| matrix: | ||
| python-version: ${{ fromJSON(env.SUPPORTED_PYTHON_VERSIONS) }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Run pytest composite | ||
| uses: ./.github/workflows/pytest | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
|
|
||
| sonarqube: | ||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
| name: SonarQube | ||
| if: ${{ !github.event.pull_request.draft }} | ||
| runs-on: ubuntu-latest | ||
| needs: [ pytest ] # starts only after pytest completes | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Run SonarCloud composite | ||
| uses: ./.github/workflows/sonar | ||
| with: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
This file contains hidden or 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,47 @@ | ||
| name: Pre-commit | ||
| description: Sets up Python and Poetry and runs pre-commit | ||
|
|
||
| inputs: | ||
| python-version: | ||
| required: true | ||
| description: Python version used | ||
|
|
||
| runs: | ||
| using: "composite" | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v3 | ||
|
|
||
| - name: Setup Python | ||
| if: ${{ hashFiles('.pre-commit-config.yaml') != '' }} | ||
| uses: actions/setup-python@v3 | ||
| with: | ||
| python-version: ${{ inputs.python-version }} | ||
|
|
||
|
|
||
| - name: Validate Python version | ||
| if: ${{ hashFiles('.pre-commit-config.yaml') != '' }} | ||
| run: | | ||
| ALLOWED_VERSIONS="3.14 3.15" | ||
| if ! echo "$ALLOWED_VERSIONS" | grep -wq "${{ inputs.python-version }}"; then | ||
|
||
| echo "Error: python-version ${{ inputs.python-version }} is not allowed. Allowed: $ALLOWED_VERSIONS" | ||
|
||
| exit 1 | ||
| fi | ||
| shell: bash | ||
|
|
||
| - name: Install Poetry | ||
| if: ${{ hashFiles('.pre-commit-config.yaml') != '' }} | ||
| run: pipx install --python "python${{ inputs.python-version }}" poetry | ||
|
||
| shell: bash | ||
|
|
||
| - name: Install pre-commit | ||
| if: ${{ hashFiles('.pre-commit-config.yaml') != '' }} | ||
| run: | | ||
| pip install pre-commit | ||
| pre-commit install | ||
| shell: bash | ||
|
|
||
| - name: Run pre-commit | ||
| if: ${{ hashFiles('.pre-commit-config.yaml') != '' }} | ||
| run: pre-commit run -a | ||
| shell: bash | ||
This file contains hidden or 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,28 @@ | ||
| name: 'PyTest' | ||
| description: 'Run pytest with Poetry' | ||
| inputs: | ||
| python-version: | ||
| required: true | ||
| description: 'Python version used.' | ||
|
|
||
| runs: | ||
| using: 'composite' | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v3 | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v3 | ||
| with: | ||
| python-version: ${{ inputs.python-version }} | ||
| - name: Install Poetry | ||
| run: pipx install poetry | ||
| - name: Install dependencies | ||
| run: poetry install --with dev | ||
| - name: Run tests | ||
| run: poetry run pytest -m "not unstable and not online" | ||
| - name: Upload coverage.xml as artifact | ||
| uses: actions/upload-artifact@v3 | ||
| if: ${{ hashFiles('coverage.xml') != '' }} | ||
| with: | ||
| name: coverage.xml | ||
| path: ./coverage.xml |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.