-
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.
- Loading branch information
Showing
45 changed files
with
26,047 additions
and
3,608 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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,9 @@ | ||
* @lars-reimann | ||
* @lars-reimann | ||
|
||
# Documentation | ||
/docs/ @Safe-DS/Stdlib | ||
/mkdocs.yml @Safe-DS/Stdlib | ||
|
||
# Code | ||
/src/ @Safe-DS/Stdlib | ||
/tests/ @Safe-DS/Stdlib |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
ignore-init-module-imports = true | ||
line-length = 120 | ||
target-version = "py310" | ||
|
||
select = [ | ||
"F", | ||
"E", | ||
"W", | ||
"I", | ||
"N", | ||
"D", | ||
"UP", | ||
"YTT", | ||
"BLE", | ||
"FBT", | ||
"B", | ||
"A", | ||
"COM", | ||
"C4", | ||
"DTZ", | ||
"T10", | ||
"ISC", | ||
"ICN", | ||
"G", | ||
"INP", | ||
"PIE", | ||
"T20", | ||
"PYI", | ||
"PT", | ||
"Q", | ||
"RSE", | ||
"RET", | ||
"SLF", | ||
"SIM", | ||
"TID", | ||
"TCH", | ||
"INT", | ||
"ARG", | ||
"PTH", | ||
"PD", | ||
"PGH", | ||
"PL", | ||
"TRY", | ||
"NPY", | ||
"RUF" | ||
] | ||
ignore = [ | ||
# line-too-long (handled by black) | ||
"E501", | ||
# tab-indentation (handled by black) | ||
"W191", | ||
# trailing-whitespace (handled by black) | ||
"W291", | ||
# missing-newline-at-end-of-file (handled by black) | ||
"W292", | ||
# blank-line-with-witespace (handled by black) | ||
"W293", | ||
# boolean-positional-arg-in-function-definition (we leave it to the call-site) | ||
"FBT001", | ||
# boolean-default-value-in-function-definition (we leave it to the call-site) | ||
"FBT002", | ||
# builtin-attribute-shadowing (not an issue) | ||
"A003", | ||
# superfluous-else-return (sometimes it's more readable) | ||
"RET505", | ||
# superfluous-else-raise (sometimes it's more readable) | ||
"RET506", | ||
# superfluous-else-continue (sometimes it's more readable) | ||
"RET507", | ||
# superfluous-else-break (sometimes it's more readable) | ||
"RET508", | ||
# private-member-access (we cannot always avoid it if we want a clean API) | ||
"SLF001", | ||
# if-else-block-instead-of-if-exp (an if-else block can be more readable) | ||
"SIM108", | ||
# compare-to-empty-string (sometimes it's better to be explicit) | ||
"PLC1901", | ||
# too-many-return-statements | ||
"PLR0911", | ||
# too-many-branches | ||
"PLR0912", | ||
# too-many-arguments | ||
"PLR0913", | ||
# too-many-statements | ||
"PLR0915", | ||
# magic-value-comparison | ||
"PLR2004", | ||
# raise-vanilla-args | ||
"TRY003", | ||
] | ||
|
||
[per-file-ignores] | ||
"*test*.py" = [ | ||
# Undocumented declarations | ||
"D100", | ||
"D101", | ||
"D102", | ||
"D103", | ||
"D104", | ||
"D105", | ||
"D106", | ||
"D107", | ||
] | ||
|
||
[pydocstyle] | ||
convention = "numpy" |
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,6 @@ | ||
{ | ||
"extends": "stylelint-config-standard", | ||
"rules": { | ||
"selector-class-pattern": null | ||
} | ||
} |
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,9 @@ | ||
name: Dependency Review | ||
|
||
on: | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
dependency-review: | ||
uses: lars-reimann/.github/.github/workflows/dependency-review-reusable.yml@main |
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,11 @@ | ||
name: MegaLinter | ||
|
||
on: | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
megalinter: | ||
uses: lars-reimann/.github/.github/workflows/megalinter-reusable.yml@main | ||
secrets: | ||
PAT: ${{ secrets.PAT }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Pull Request Format | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
- reopened | ||
|
||
jobs: | ||
check-format: | ||
uses: lars-reimann/.github/.github/workflows/pr-format-reusable.yml@main |
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 |
---|---|---|
|
@@ -32,6 +32,9 @@ htmlcov/ | |
.coverage | ||
coverage.xml | ||
|
||
# ruff | ||
.ruff_cache/ | ||
|
||
# mkdocs | ||
/site/ | ||
|
||
|
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,10 +1,20 @@ | ||
# Safe-DS Python Library - Examples | ||
|
||
[![PyPI](https://img.shields.io/pypi/v/safe-ds-examples)](https://pypi.org/project/safe-ds-examples/) | ||
[![PyPI](https://img.shields.io/pypi/v/safe-ds-examples)](https://pypi.org/project/safe-ds-examples) | ||
[![Main](https://github.com/Safe-DS/Stdlib-Examples/actions/workflows/main.yml/badge.svg)](https://github.com/Safe-DS/Stdlib-Examples/actions/workflows/main.yml) | ||
[![codecov](https://codecov.io/gh/Safe-DS/Stdlib-Examples/branch/main/graph/badge.svg?token=X5CU9V952H)](https://codecov.io/gh/Safe-DS/Stdlib-Examples) | ||
[![Documentation Status](https://readthedocs.org/projects/stdlib-examples/badge/?version=latest)](https://stdlib-examples.safe-ds.com) | ||
[![Documentation Status](https://readthedocs.org/projects/stdlib-examples/badge/?version=stable)](https://stdlib-examples.safe-ds.com) | ||
|
||
Ready-to-use examples for the [Safe-DS Python Library](https://github.com/Safe-DS/Stdlib). | ||
|
||
## Documentation | ||
|
||
You can find the full documentation [here](https://stdlib-examples.safe-ds.com). | ||
|
||
## Installation | ||
|
||
Get the latest version from [PyPI](https://pypi.org/project/safe-ds-examples): | ||
|
||
```shell | ||
pip install safe-ds-examples | ||
``` |
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 @@ | ||
"""Information about the included example datasets.""" |
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,10 @@ | ||
"""Disable output of warnings.""" | ||
|
||
import logging | ||
import warnings | ||
|
||
|
||
def disable_warnings() -> None: | ||
"""Disable output of warnings.""" | ||
logging.root.setLevel(logging.ERROR) | ||
warnings.filterwarnings("ignore") |
Oops, something went wrong.