-
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.
Merge pull request #12 from FREVA-CLINT/rename-module
Rename module
- Loading branch information
Showing
14 changed files
with
70 additions
and
16 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,35 @@ | ||
# .coveragerc to control coverage.py | ||
[run] | ||
branch = False | ||
omit = .converage* | ||
*/tests/* | ||
*/__main__.py | ||
[report] | ||
fail_under = 95 | ||
# Regexes for lines to exclude from consideration | ||
exclude_lines = | ||
# Have to re-enable the standard pragma | ||
pragma: no cover | ||
|
||
# Don't complain about missing debug-only code: | ||
def __repr__ | ||
if self\.debug | ||
def _post_url(self) | ||
|
||
# Don't complain if tests don't hit defensive assertion code: | ||
raise AssertionError | ||
raise NotImplementedError | ||
except KeyboardInterrupt: | ||
except ImportError: | ||
except RuntimeError | ||
raise SystemExit | ||
|
||
# Don't complain if non-runnable code isn't run: | ||
if 0: | ||
if perf_file *: | ||
p_col = * | ||
f_col = * | ||
q_col = * | ||
if __name__ == .__main__.: | ||
|
||
ignore_errors = False |
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ requires = ["flit_core >=3.2"] | |
build-backend = "flit_core.buildapi" | ||
|
||
[project] | ||
name = "kernel-install" | ||
name = "jupyter-kernel-install" | ||
authors = [{name = "DKRZ, Clint", email = "[email protected]"}] | ||
readme = "README.md" | ||
license = {file = "LICENSE"} | ||
|
@@ -38,10 +38,10 @@ Home= "https://github.com/FREVA-CLINT/install-kernelspec" | |
|
||
|
||
[project.scripts] | ||
jupyter-kernel-install = "kernel_install.cli:cli" | ||
jupyter-kernel-install = "jupyter_kernel_install.cli:cli" | ||
|
||
[tool.mypy] | ||
files = "src/kernel_install" | ||
files = "src/jupyter_kernel_install" | ||
strict = true | ||
warn_unused_ignores = true | ||
warn_unreachable = true | ||
|
@@ -73,7 +73,7 @@ deps = -c {toxinidir}/.github/dependabot/constraints.txt | |
-e .[dev] | ||
commands = | ||
python3 -m pytest -vv --cov=src --cov-report=html:coverage_report --junitxml report.xml --cov-report xml src/kernel_install/tests | ||
python3 -m pytest -vv --cov=src --cov-report=html:coverage_report --junitxml report.xml --cov-report xml src/jupyter_kernel_install/tests | ||
python3 -m coverage report --fail-under=98.5 --precision=2 | ||
[testenv:lint] | ||
|
@@ -84,8 +84,8 @@ deps = .[dev] | |
pylint | ||
commands = | ||
isort --check --profile black -t py312 -l 79 src | ||
flake8 src/kernel_install --count --max-complexity=5 --max-line-length=88 --statistics --show-source | ||
pylint src/kernel_install --fail-under 9 | ||
flake8 src/jupyter_kernel_install --count --max-complexity=5 --max-line-length=88 --statistics --show-source | ||
pylint src/jupyter_kernel_install --fail-under 9 | ||
[testenv:types] | ||
deps = .[dev] | ||
mypy | ||
|
@@ -96,7 +96,7 @@ deps = git-python | |
packaging | ||
requests | ||
tomli | ||
commands = python3 bump.py tag kernel_install -b main | ||
commands = python3 bump.py tag jupyter_kernel_install -b main | ||
allowlist_externals = rm | ||
curl | ||
commands_pre = curl -H 'Cache-Control: no-cache' -Ls -o bump.py https://raw.githubusercontent.com/FREVA-CLINT/freva-deployment/versions/release.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
"""Command line interface for jupyter_kernel_install.""" | ||
|
||
import re | ||
import sys | ||
|
||
from .cli import cli | ||
|
||
if __name__ == "__main__": | ||
sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) | ||
cli(sys.argv[1:]) |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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