-
Notifications
You must be signed in to change notification settings - Fork 2
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 #256 from OpenEnergyPlatform/feature-145-git
Include GitHub Features, update procedures and rename tests
- Loading branch information
Showing
155 changed files
with
1,386 additions
and
585 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# SPDX-FileCopyrightText: : 2024 Ludwig Hülk <https://github.com/Ludee> © Reiner Lemoine Institut | ||
# SPDX-FileCopyrightText: super-repo v0.5.0 <https://github.com/rl-institut/super-repo> | ||
# SPDX-License-Identifier: MIT | ||
|
||
[tool.bumpversion] | ||
current_version = "2.0.2" | ||
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)" | ||
serialize = ["{major}.{minor}.{patch}"] | ||
search = "{current_version}" | ||
replace = "{new_version}" | ||
regex = false | ||
ignore_missing_version = false | ||
ignore_missing_files = false | ||
tag = false | ||
sign_tags = false | ||
tag_name = "v{new_version}" | ||
tag_message = "Bump version: {current_version} → {new_version}" | ||
allow_dirty = false | ||
commit = true | ||
message = "Bump version: {current_version} → {new_version}" | ||
commit_args = "" | ||
|
||
[tool.bumpversion.parts.pre_l] | ||
values = ["dev", "rc", "final"] | ||
optional_value = "final" | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "pyproject.toml" | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "CITATION.cff" | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "uv.lock" |
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,19 @@ | ||
--- | ||
name: Enhance Issue | ||
about: For enhancements or improvements | ||
title: Your title should make sense if said after "The issue is <your issue title>" | ||
labels: ["status: active :construction:", "type: enhancement :gear:"] | ||
assignees: "" | ||
--- | ||
|
||
## Description of the issue | ||
|
||
Describe the problem in as much detail as possible. | ||
|
||
## Ideas of solution | ||
|
||
Describe possible ideas for solution and evaluate advantages and disadvantages. | ||
|
||
## Workflow checklist | ||
|
||
- [ ] I am aware of the workflow in [CONTRIBUTING.md](https://github.com/OpenEnergyPlatform/oemetadata/blob/production/CONTRIBUTING.md) |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# SPDX-FileCopyrightText: 2024 Ludwig Hülk <https://github.com/Ludee> © Reiner Lemoine Institut | ||
# SPDX-FileCopyrightText: super-repo v0.5.0 <https://github.com/rl-institut/super-repo> | ||
# SPDX-License-Identifier: MIT | ||
|
||
name: 🐍 Coverage tests with codecov | ||
|
||
on: | ||
push: | ||
branches: | ||
- production | ||
- develop | ||
|
||
jobs: | ||
test: | ||
name: Run coverage test and create codecov | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
|
||
- name: Install dependencies | ||
run: pip install pytest pytest-cov | ||
|
||
- name: Run coverage test | ||
run: pytest --cov --cov-report=xml | ||
|
||
- name: Upload results to Codecov | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} |
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
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,58 @@ | ||
# SPDX-FileCopyrightText: 2024 Ludwig Hülk <https://github.com/Ludee> © Reiner Lemoine Institut | ||
# SPDX-FileCopyrightText: super-repo v0.5.0 <https://github.com/rl-institut/super-repo> | ||
# SPDX-License-Identifier: MIT | ||
|
||
# exclude webdevelopement build artefacts | ||
exclude: ^.*(.min.js|.min.css)$ | ||
|
||
repos: | ||
# Pre-commit-hooks - Out-of-the-box hooks | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v5.0.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: check-json | ||
- id: check-toml | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
args: [--markdown-linebreak-ext=md] | ||
- id: pretty-format-json | ||
args: | ||
[ | ||
"--autofix", # Autofix JSONs | ||
"--no-ensure-ascii", # Preserve unicode characters | ||
"--no-sort-keys" # Retain the original key ordering | ||
] | ||
- id: check-added-large-files | ||
args: [ "--maxkb=1500" ] | ||
# - id: check-docstring-first | ||
- id: detect-private-key | ||
|
||
- repo: https://github.com/google/pre-commit-tool-hooks | ||
rev: v1.2.5 | ||
hooks: | ||
# - id: check-google-doc-style | ||
- id: check-links | ||
|
||
# Ruff - Fast Python linter, written in Rust | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: 'v0.8.1' | ||
hooks: | ||
- id: ruff | ||
args: [--fix, --exit-non-zero-on-fix, --show-fixes] | ||
- id: ruff-format | ||
|
||
# mypy mirror - Added static types to Python (Python is dynamically typed) | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: 'v1.13.0' | ||
hooks: | ||
- id: mypy | ||
additional_dependencies: | ||
- 'sqlalchemy' | ||
- 'types-requests' | ||
|
||
# REUSE Software - Make licensing easy for humans and machines alike | ||
- repo: https://github.com/fsfe/reuse-tool | ||
rev: v5.0.2 | ||
hooks: | ||
- id: reuse |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.