create-dara-app 1.20.1a1__py3-none-any.whl → 1.20.1a2__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.
@@ -14,6 +14,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
14
  See the License for the specific language governing permissions and
15
15
  limitations under the License.
16
16
  """
17
+
17
18
  from importlib.metadata import version
18
19
 
19
20
  __version__ = version('create-dara-app')
create_dara_app/cli.py CHANGED
@@ -14,6 +14,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
14
  See the License for the specific language governing permissions and
15
15
  limitations under the License.
16
16
  """
17
+
17
18
  import logging
18
19
  import pathlib
19
20
  import shutil
@@ -21,10 +22,11 @@ import sys
21
22
  from importlib.metadata import version
22
23
  from typing import Literal
23
24
 
24
- import click
25
25
  from cookiecutter.exceptions import FailedHookException, OutputDirExistsException
26
26
  from cookiecutter.main import cookiecutter
27
27
 
28
+ import click
29
+
28
30
  from create_dara_app.default_command_group import DefaultCommandGroup
29
31
 
30
32
  logger = logging.getLogger('create-dara-app')
@@ -14,6 +14,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
14
  See the License for the specific language governing permissions and
15
15
  limitations under the License.
16
16
  """
17
+ # ruff: noqa
18
+
17
19
  import click
18
20
 
19
21
 
@@ -44,7 +46,7 @@ class DefaultCommandGroup(click.Group):
44
46
  def get_command(self, ctx, cmd_name):
45
47
  if cmd_name not in self.commands:
46
48
  # No command name matched.
47
- ctx.arg0 = cmd_name
49
+ ctx.arg0 = cmd_name # pyright: ignore
48
50
  cmd_name = self.default_cmd_name
49
51
  return super().get_command(ctx, cmd_name)
50
52
 
@@ -52,15 +54,15 @@ class DefaultCommandGroup(click.Group):
52
54
  base = super()
53
55
  cmd_name, cmd, args = base.resolve_command(ctx, args)
54
56
  if hasattr(ctx, 'arg0'):
55
- args.insert(0, ctx.arg0)
56
- cmd_name = cmd.name
57
+ args.insert(0, ctx.arg0) # pyright: ignore
58
+ cmd_name = cmd.name # pyright: ignore
57
59
  return cmd_name, cmd, args
58
60
 
59
61
  def format_commands(self, ctx, formatter):
60
62
  formatter = DefaultCommandFormatter(self, formatter, mark='*')
61
- return super().format_commands(ctx, formatter)
63
+ return super().format_commands(ctx, formatter) # pyright: ignore
62
64
 
63
- def command(self, *args, **kwargs):
65
+ def command(self, *args, **kwargs): # pyright: ignore
64
66
  default = kwargs.pop('default', False)
65
67
  decorator = super().command(*args, **kwargs)
66
68
  if not default:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: create-dara-app
3
- Version: 1.20.1a1
3
+ Version: 1.20.1a2
4
4
  Summary: CLI to quickly bootstrap a Dara app
5
5
  Home-page: https://dara.causalens.com/
6
6
  License: Apache-2.0
@@ -21,7 +21,7 @@ Description-Content-Type: text/markdown
21
21
 
22
22
  # Create Dara App
23
23
 
24
- <img src="https://github.com/causalens/dara/blob/v1.20.1-alpha.1/img/dara_light.svg?raw=true">
24
+ <img src="https://github.com/causalens/dara/blob/v1.20.1-alpha.2/img/dara_light.svg?raw=true">
25
25
 
26
26
  ![Master tests](https://github.com/causalens/dara/actions/workflows/tests.yml/badge.svg?branch=master)
27
27
  [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)
@@ -1,6 +1,6 @@
1
- create_dara_app/__init__.py,sha256=2GNh4sAYBaYZFs7Wz7eHNi-gSibZzksuSl8FKiqEB9A,658
2
- create_dara_app/cli.py,sha256=xpg36cJw3y4y1og9cSqkVEHeuoJFBZaXJuN24Gasp_Y,3735
3
- create_dara_app/default_command_group.py,sha256=W0dSVj0HK4sXbeA_UchuwybxGBLsZxexwL0S6wF3PLM,3182
1
+ create_dara_app/__init__.py,sha256=Q4w44q2CIpoUqXWFLGtH6nTaaoydnnUnncd0afqZch4,659
2
+ create_dara_app/cli.py,sha256=eWxPnc1A4ZD2_QdML5NlszhXc-91Y9KwMgu3zbZ7ZiI,3737
3
+ create_dara_app/default_command_group.py,sha256=6WLJS40MOQafj_YuyWF_Q4Cm6UJKqX3lKBpFD3P8zOw,3291
4
4
  create_dara_app/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  create_dara_app/templates/default/cookiecutter.json,sha256=q7HRrihrVAhYIvllP4FUKrSoUxBVHFR9e4Dbm4oZ2eI,318
6
6
  create_dara_app/templates/default/hooks/post_gen_project.py,sha256=Z82RxRP5C2GsnmqFS4mrwbC1oN0x6pBQlaQXsKaQH1Q,1285
@@ -15,8 +15,8 @@ create_dara_app/templates/default/{{ cookiecutter.__project_slug }}/{{ cookiecut
15
15
  create_dara_app/templates/default/{{ cookiecutter.__project_slug }}/{{ cookiecutter.__package_name }}/pages/intro_page.py,sha256=_G4z_9N66t6eMhIenzIFbIM-p_EzJM8LPGiJ_emRI8k,1590
16
16
  create_dara_app/templates/default/{{ cookiecutter.__project_slug }}/{{ cookiecutter.__package_name }}/utils/components.py,sha256=xAjhKxPC1cgMda5tpLyCwZEEJTVOALR4C7V3REUpxbo,65462
17
17
  create_dara_app/templates/default/{{ cookiecutter.__project_slug }}/{{ cookiecutter.__package_name }}/utils/template.py,sha256=R8EgjNKD5bou9HkT7CEEISAcO5H7R-sSWFtifFJyK5M,737
18
- create_dara_app-1.20.1a1.dist-info/LICENSE,sha256=r9u1w2RvpLMV6YjuXHIKXRBKzia3fx_roPwboGcLqCc,10944
19
- create_dara_app-1.20.1a1.dist-info/METADATA,sha256=AYPubw22pJ-GfQR7OSPS75nFw8zy-2sVKgMCDuxmYpU,1994
20
- create_dara_app-1.20.1a1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
21
- create_dara_app-1.20.1a1.dist-info/entry_points.txt,sha256=RZETW6Q9lb0vM1gptGnobZGlD2qvU-0ZgztNoboRRTk,59
22
- create_dara_app-1.20.1a1.dist-info/RECORD,,
18
+ create_dara_app-1.20.1a2.dist-info/LICENSE,sha256=r9u1w2RvpLMV6YjuXHIKXRBKzia3fx_roPwboGcLqCc,10944
19
+ create_dara_app-1.20.1a2.dist-info/METADATA,sha256=a-pI3clsneWk_qL2kF_SuO0eD6kC-zqeeeeXi88_ioI,1994
20
+ create_dara_app-1.20.1a2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
21
+ create_dara_app-1.20.1a2.dist-info/entry_points.txt,sha256=RZETW6Q9lb0vM1gptGnobZGlD2qvU-0ZgztNoboRRTk,59
22
+ create_dara_app-1.20.1a2.dist-info/RECORD,,