generated from ghga-de/microservice-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update template files and new events (#51)
- Loading branch information
Showing
50 changed files
with
668 additions
and
687 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 was deleted.
Oops, something went wrong.
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,16 +1,23 @@ | ||
name: Check if the config schema and the example are up to date. | ||
name: Check if pyproject.toml file is up to date | ||
|
||
on: push | ||
|
||
jobs: | ||
static-code-analysis: | ||
name: Check pyproject file | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Checkout repository | ||
id: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- id: common | ||
uses: ghga-de/gh-action-common@v4 | ||
- name: Common steps | ||
id: common | ||
uses: ghga-de/gh-action-common@v6 | ||
|
||
- name: Check pyproject.toml | ||
id: check-pyproject | ||
run: | | ||
./scripts/update_pyproject.py --check |
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,16 +1,23 @@ | ||
name: Check if the readme is up to date. | ||
name: Check if the README file is up to date | ||
|
||
on: push | ||
|
||
jobs: | ||
static-code-analysis: | ||
name: Check README file | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Checkout repository | ||
id: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- id: common | ||
uses: ghga-de/gh-action-common@v4 | ||
- name: Common steps | ||
id: common | ||
uses: ghga-de/gh-action-common@v6 | ||
|
||
- name: Check readme | ||
- name: Check README | ||
id: check-readme | ||
run: | | ||
./scripts/update_readme.py --check |
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 |
---|---|---|
|
@@ -4,24 +4,36 @@ on: push | |
|
||
jobs: | ||
static-code-analysis: | ||
runs-on: ubuntu-latest | ||
name: Static Code Analysis | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Checkout repository | ||
id: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- id: common | ||
uses: ghga-de/gh-action-common@v4 | ||
- name: Common steps | ||
id: common | ||
uses: ghga-de/gh-action-common@v6 | ||
|
||
- uses: pre-commit/[email protected] | ||
- name: Run pre-commit | ||
uses: pre-commit/[email protected] | ||
env: | ||
SKIP: no-commit-to-branch | ||
- name: ruff | ||
|
||
- name: Run ruff | ||
id: ruff | ||
run: | | ||
ruff check --output-format=github . | ||
ruff format --check . | ||
- name: mypy | ||
- name: Run mypy | ||
id: mypy | ||
run: | | ||
mypy . | ||
- name: Check license header and file | ||
id: license-checker | ||
run: | | ||
./scripts/license_checker.py | ||
./scripts/check_license.py |
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,20 +1,19 @@ | ||
[build-system] | ||
requires = ["setuptools>=67.7.2"] | ||
requires = ["setuptools>=69"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
readme = "README.md" | ||
authors = [ | ||
{ name = "German Human Genome Phenome Archive (GHGA)", email = "[email protected]" }, | ||
] | ||
requires-python = ">=3.9" | ||
requires-python = ">=3.12" | ||
license = { text = "Apache 2.0" } | ||
classifiers = [ | ||
"Development Status :: 1 - Planning", | ||
"Operating System :: POSIX :: Linux", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.12", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Topic :: Internet :: WWW/HTTP :: HTTP Servers", | ||
"Topic :: Software Development :: Libraries", | ||
|
@@ -34,7 +33,7 @@ exclude = [ | |
] | ||
line-length = 88 | ||
src = ["src", "tests", "examples", "scripts"] | ||
target-version = "py39" | ||
target-version = "py312" | ||
|
||
[tool.ruff.lint] | ||
fixable = [ | ||
|
@@ -43,8 +42,9 @@ fixable = [ | |
"D", # pydocstyle | ||
] | ||
ignore = [ | ||
"E", # pycodestyle errors | ||
"W", # pycodestyle warnings - pycodestyle covered by black | ||
"E111", # indentation with invalid multiple (for formatter) | ||
"E114", # indentation with invalid multiple comment (for formatter) | ||
"E116", # over indentation (for formatter) | ||
"PLW", # pylint warnings | ||
"RUF001", # ambiguous unicode character strings | ||
"RUF010", # explicit conversion to string or repr: !s or !r | ||
|
@@ -56,8 +56,9 @@ ignore = [ | |
"D400", # first doc line ends in period | ||
"D401", # non-imperative-mood | ||
"D107", # missing docstring in __init__ | ||
"D206", # indent-with-spaces (ignored for formatter) | ||
"D300", # triple-single-quotes (ignored for formatter) | ||
"D206", # indent-with-spaces (for formatter) | ||
"D300", # triple-single-quotes (for formatter) | ||
"UP040", # type statement (not yet supported by mypy) | ||
] | ||
select = [ | ||
"C90", # McCabe Complexity | ||
|
@@ -98,12 +99,12 @@ check_untyped_defs = true | |
no_site_packages = false | ||
|
||
[tool.pytest.ini_options] | ||
minversion = "7.1" | ||
minversion = "8.0" | ||
asyncio_mode = "strict" | ||
|
||
[tool.coverage.paths] | ||
source = [ | ||
"src", | ||
"/workspace/src", | ||
"**/lib/python*/site-packages", | ||
"src", | ||
"/workspace/src", | ||
"**/lib/python*/site-packages", | ||
] |
Oops, something went wrong.