repo-review 0.12.1__py3-none-any.whl → 0.12.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
repo_review/__main__.py CHANGED
@@ -6,6 +6,7 @@ import json
6
6
  import os
7
7
  import sys
8
8
  import typing
9
+ import urllib.error
9
10
  from collections.abc import Mapping, Sequence
10
11
  from pathlib import Path
11
12
  from typing import Any, Literal
@@ -17,6 +18,7 @@ if typing.TYPE_CHECKING:
17
18
  else:
18
19
  import rich_click as click
19
20
 
21
+ import rich
20
22
  import rich.console
21
23
  import rich.markdown
22
24
  import rich.syntax
@@ -265,7 +267,12 @@ def _remote_path_processor(package: Path) -> Path | GHPath:
265
267
  msg = "online repo must be of the form 'gh:org/repo@branch[:path]' (:branch missing)"
266
268
  raise click.BadParameter(msg)
267
269
  org_repo, branch = org_repo_branch.split("@", maxsplit=1)
268
- return GHPath(repo=org_repo, branch=branch, path=p[0] if p else "")
270
+ try:
271
+ return GHPath(repo=org_repo, branch=branch, path=p[0] if p else "")
272
+ except urllib.error.HTTPError as e:
273
+ rich.print(f"[red][bold]Error[/bold] accessing {e.url}", file=sys.stderr)
274
+ rich.print(f"[red]{e}", file=sys.stderr)
275
+ raise SystemExit(1) from None
269
276
 
270
277
 
271
278
  @click.command(context_settings={"help_option_names": ["-h", "--help"]})
repo_review/_version.py CHANGED
@@ -1,8 +1,13 @@
1
- # file generated by setuptools_scm
1
+ # file generated by setuptools-scm
2
2
  # don't change, don't track in version control
3
+
4
+ __all__ = ["__version__", "__version_tuple__", "version", "version_tuple"]
5
+
3
6
  TYPE_CHECKING = False
4
7
  if TYPE_CHECKING:
5
- from typing import Tuple, Union
8
+ from typing import Tuple
9
+ from typing import Union
10
+
6
11
  VERSION_TUPLE = Tuple[Union[int, str], ...]
7
12
  else:
8
13
  VERSION_TUPLE = object
@@ -12,5 +17,5 @@ __version__: str
12
17
  __version_tuple__: VERSION_TUPLE
13
18
  version_tuple: VERSION_TUPLE
14
19
 
15
- __version__ = version = '0.12.1'
16
- __version_tuple__ = version_tuple = (0, 12, 1)
20
+ __version__ = version = '0.12.2'
21
+ __version_tuple__ = version_tuple = (0, 12, 2)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: repo_review
3
- Version: 0.12.1
3
+ Version: 0.12.2
4
4
  Summary: Framework that can run checks on repos
5
5
  Project-URL: Changelog, https://github.com/scientific-python/repo-review/releases
6
6
  Project-URL: Demo, https://scientific-python.github.io/repo-review
@@ -22,6 +22,7 @@ Classifier: Programming Language :: Python :: 3.10
22
22
  Classifier: Programming Language :: Python :: 3.11
23
23
  Classifier: Programming Language :: Python :: 3.12
24
24
  Classifier: Programming Language :: Python :: 3.13
25
+ Classifier: Programming Language :: Python :: 3.14
25
26
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
26
27
  Classifier: Topic :: Software Development :: Quality Assurance
27
28
  Classifier: Typing :: Typed
@@ -128,7 +129,7 @@ repos have some [pre-commit][] check.
128
129
  ## Development of repo-review and plugins
129
130
 
130
131
  This project is intended to be fun and easy to develop and design checks for -
131
- it requires and uses Python 3.10, and uses a lot of the new features in 3.9 and
132
+ it requires and uses Python 3.10+, and uses a lot of the new features in 3.9 and
132
133
  3.10. It's maybe not entirely conventional, but it enables very simple plugin
133
134
  development. It works locally, remotely, and in WebAssembly (using
134
135
  [Pyodide][]). [See the docs][writing-a-plugin].
@@ -1,6 +1,6 @@
1
1
  repo_review/__init__.py,sha256=U03wTpj7PjSsIROp8O4VRG_NVG-plkx14d_MvqpmJ_w,229
2
- repo_review/__main__.py,sha256=-4cUtsnRua2Cwl5ESuBEzXljxWUY2kaAj3kZCFAfwh4,14863
3
- repo_review/_version.py,sha256=OSJc7-JxViAvW4SmGUZQQX05ZpGw9KopFINBSBZ_tHs,413
2
+ repo_review/__main__.py,sha256=oiwA_FGD-ogrflMyWt2wAoy_vlNqdIc7qN2zZjSPq0c,15117
3
+ repo_review/_version.py,sha256=zZwBOgFsGuwXoMQE3ufj9-wsWZuT7V5jwWvKP04rOSE,513
4
4
  repo_review/_version.pyi,sha256=j5kbzfm6lOn8BzASXWjGIA1yT0OlHTWqlbyZ8Si_o0E,118
5
5
  repo_review/checks.py,sha256=Iz5T1d0wDfBIyaO3f5waHEqhmfP_4-9eNOngJpRnpGo,4845
6
6
  repo_review/families.py,sha256=TEMQY3whMj8b3iVlWyVsTa0CAZexXRCFXq5uPIkV6bs,2389
@@ -19,8 +19,8 @@ repo_review/_compat/importlib/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5J
19
19
  repo_review/_compat/importlib/resources/abc.py,sha256=KLv7AqUaY-ezZ32lA5yVcZLfMqY6VEo8Q-1jyWpGRbk,300
20
20
  repo_review/resources/__init__.py,sha256=RBBaUp-hQrIYBqbAT0MytCXEjDmqVsCjiEgdK_K3dN4,138
21
21
  repo_review/resources/repo-review.schema.json,sha256=jAc7ZQV-Hc16ENrNFZm7nlIjiRQGTanq8EjBICkJKpE,791
22
- repo_review-0.12.1.dist-info/METADATA,sha256=usuR22S6tkCFLYZ04RoX0v4WaXXgFVCdHUBNi_sS4ho,10613
23
- repo_review-0.12.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
24
- repo_review-0.12.1.dist-info/entry_points.txt,sha256=9XaDWanm31NNpXOpjZh2HxSXR5owVdYJ2cbNG5D8wY8,244
25
- repo_review-0.12.1.dist-info/licenses/LICENSE,sha256=X7yOxzyAEckYl17p01lZzbraqDVmWEWXE8BnKKRrh7c,1525
26
- repo_review-0.12.1.dist-info/RECORD,,
22
+ repo_review-0.12.2.dist-info/METADATA,sha256=oo65FrIUnWRT6qyoRJzXJXgIhCQBE6pvt3t2GzvMp8A,10665
23
+ repo_review-0.12.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
24
+ repo_review-0.12.2.dist-info/entry_points.txt,sha256=9XaDWanm31NNpXOpjZh2HxSXR5owVdYJ2cbNG5D8wY8,244
25
+ repo_review-0.12.2.dist-info/licenses/LICENSE,sha256=X7yOxzyAEckYl17p01lZzbraqDVmWEWXE8BnKKRrh7c,1525
26
+ repo_review-0.12.2.dist-info/RECORD,,