Skip to content

Commit

Permalink
fix: exit with error message when an unknown file type is used (#236)
Browse files Browse the repository at this point in the history
* fix: exit with error message when an unknown file type is used

This PR also updates to the newer poetry syntax, plus fixes some bugs during CI
* build(dev-deps): bump safety from 1.10.3 to 2.1.1
* build(dev-deps): bump poetry in constraints
* fix: use new poetry syntax
* ci: fix pip constraints error
* ci: accept any codecov targets
  • Loading branch information
engeir authored Sep 5, 2022
1 parent 100d4d7 commit 5092d7e
Show file tree
Hide file tree
Showing 7 changed files with 89 additions and 61 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/constraints.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pip==22.1.2
nox==2022.1.7
nox-poetry==1.0.1
poetry==1.1.13
poetry==1.2.0
virtualenv==20.16.4
4 changes: 2 additions & 2 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ coverage:
status:
project:
default:
target: "100"
target: "0"
patch:
default:
target: "100"
target: "0"
6 changes: 4 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,15 @@ def install_with_constraints(session: Session, *args: str, **kwargs: Any) -> Non
session.run(
"poetry",
"export",
"--dev",
"--with",
"dev",
"--without-hashes",
"--format=requirements.txt",
f"--output={requirements.name}",
external=True,
)
session.install(f"--constraint={requirements.name}", *args, **kwargs)
# session.install(f"--constraint={requirements.name}", *args, **kwargs)
session.install(*args, **kwargs)


def activate_virtualenv_in_precommit_hooks(session: Session) -> None:
Expand Down
113 changes: 66 additions & 47 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "ncdump-rich"
version = "0.1.11"
version = "0.1.12"
description = "Rich NcDump"
authors = ["Eirik Enger <eirroleng@gmail.com>"]
license = "GPL-3.0"
Expand All @@ -25,10 +25,13 @@ click = "^8.0.1"
netCDF4 = "^1.5.7"
rich = ">=10.7,<13.0"

[tool.poetry.dev-dependencies]
[tool.poetry.scripts]
ncdump-rich = "ncdump_rich.__main__:main"

[tool.poetry.group.dev.dependencies]
safety = "^2.1.1"
pytest = "^7.1.2"
coverage = {extras = ["toml"], version = "^6.4"}
safety = "^1.10.3"
mypy = "^0.960"
typeguard = "^2.13.2"
xdoctest = {extras = ["colors"], version = "^1.0.0"}
Expand All @@ -52,9 +55,6 @@ Pygments = "^2.11.2"
pytest-cov = "^3.0.0"
numpy = "^1.22.3"

[tool.poetry.scripts]
ncdump-rich = "ncdump_rich.__main__:main"

[tool.coverage.paths]
source = ["src", "*/site-packages"]

Expand Down
2 changes: 1 addition & 1 deletion src/ncdump_rich/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""Rich NcDump."""
__version__ = "0.1.11"
__version__ = "0.1.12"
Loading

0 comments on commit 5092d7e

Please sign in to comment.