Skip to content

Commit

Permalink
Update the plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ketkarameya committed Aug 14, 2023
1 parent 5b18385 commit f075ebc
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 42 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ target
Cargo.lock
tmp_test*
env/
**.egg-info


# Dependencies
Expand Down
25 changes: 25 additions & 0 deletions plugins/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"

[tool.poetry]
name = "scala_test"
version = "0.0.1"
description = "Rules to migrate 'scaletest'"
# Add any other metadata you need

[tool.poetry.dependencies]
python = "^3.9"
polyglot_piranha = "*"

[tool.poetry.dev-dependencies]
pytest = "*"

# [tool.poetry.scripts]
# scala_test = "scala_test.main:main"

[tool.poetry.scripts."scala_test"]
main = "scala_test.main:main"

[tool.poetry.scripts."pytest"]
main = "pytest"
19 changes: 19 additions & 0 deletions plugins/scala_test/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# `scalatest` Migration Plugin

## Usage:
```
python3 plugins/scala_test/main.py -h
usage: main.py [-h] --path_to_codebase PATH_TO_CODEBASE
Migrates scala tests!!!
options:
-h, --help show this help message and exit
--path_to_codebase PATH_TO_CODEBASE
Path to the codebase directory.
```

## Test
```
pytest plugins/scala_test
```
3 changes: 0 additions & 3 deletions plugins/scala_test/main.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import argparse
from update_imports import update_imports




def _parse_args():
parser = argparse.ArgumentParser(description="Migrates scala tests!!!")
parser.add_argument(
Expand Down
39 changes: 0 additions & 39 deletions plugins/setup.py

This file was deleted.

0 comments on commit f075ebc

Please sign in to comment.