create-dara-app 1.20.0__py3-none-any.whl → 1.20.1a1__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,7 +14,6 @@ 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
-
18
17
  from importlib.metadata import version
19
18
 
20
19
  __version__ = version('create-dara-app')
create_dara_app/cli.py CHANGED
@@ -14,7 +14,6 @@ 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
-
18
17
  import logging
19
18
  import pathlib
20
19
  import shutil
@@ -22,11 +21,10 @@ import sys
22
21
  from importlib.metadata import version
23
22
  from typing import Literal
24
23
 
24
+ import click
25
25
  from cookiecutter.exceptions import FailedHookException, OutputDirExistsException
26
26
  from cookiecutter.main import cookiecutter
27
27
 
28
- import click
29
-
30
28
  from create_dara_app.default_command_group import DefaultCommandGroup
31
29
 
32
30
  logger = logging.getLogger('create-dara-app')
@@ -14,8 +14,6 @@ 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
-
19
17
  import click
20
18
 
21
19
 
@@ -46,7 +44,7 @@ class DefaultCommandGroup(click.Group):
46
44
  def get_command(self, ctx, cmd_name):
47
45
  if cmd_name not in self.commands:
48
46
  # No command name matched.
49
- ctx.arg0 = cmd_name # pyright: ignore
47
+ ctx.arg0 = cmd_name
50
48
  cmd_name = self.default_cmd_name
51
49
  return super().get_command(ctx, cmd_name)
52
50
 
@@ -54,15 +52,15 @@ class DefaultCommandGroup(click.Group):
54
52
  base = super()
55
53
  cmd_name, cmd, args = base.resolve_command(ctx, args)
56
54
  if hasattr(ctx, 'arg0'):
57
- args.insert(0, ctx.arg0) # pyright: ignore
58
- cmd_name = cmd.name # pyright: ignore
55
+ args.insert(0, ctx.arg0)
56
+ cmd_name = cmd.name
59
57
  return cmd_name, cmd, args
60
58
 
61
59
  def format_commands(self, ctx, formatter):
62
60
  formatter = DefaultCommandFormatter(self, formatter, mark='*')
63
- return super().format_commands(ctx, formatter) # pyright: ignore
61
+ return super().format_commands(ctx, formatter)
64
62
 
65
- def command(self, *args, **kwargs): # pyright: ignore
63
+ def command(self, *args, **kwargs):
66
64
  default = kwargs.pop('default', False)
67
65
  decorator = super().command(*args, **kwargs)
68
66
  if not default:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: create-dara-app
3
- Version: 1.20.0
3
+ Version: 1.20.1a1
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.0/img/dara_light.svg?raw=true">
24
+ <img src="https://github.com/causalens/dara/blob/v1.20.1-alpha.1/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=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
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
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.0.dist-info/LICENSE,sha256=r9u1w2RvpLMV6YjuXHIKXRBKzia3fx_roPwboGcLqCc,10944
19
- create_dara_app-1.20.0.dist-info/METADATA,sha256=IGGl-tcGuCyT5LA_lPY1g8JPKL9C0qC-hutIQHI7vO0,1984
20
- create_dara_app-1.20.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
21
- create_dara_app-1.20.0.dist-info/entry_points.txt,sha256=RZETW6Q9lb0vM1gptGnobZGlD2qvU-0ZgztNoboRRTk,59
22
- create_dara_app-1.20.0.dist-info/RECORD,,
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,,