Skip to content

Commit f075ebc

Browse files
committed
Update the plugin
1 parent 5b18385 commit f075ebc

File tree

5 files changed

+45
-42
lines changed

5 files changed

+45
-42
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ target
2323
Cargo.lock
2424
tmp_test*
2525
env/
26+
**.egg-info
2627

2728

2829
# Dependencies

plugins/pyproject.toml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
[build-system]
2+
requires = ["setuptools>=42", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[tool.poetry]
6+
name = "scala_test"
7+
version = "0.0.1"
8+
description = "Rules to migrate 'scaletest'"
9+
# Add any other metadata you need
10+
11+
[tool.poetry.dependencies]
12+
python = "^3.9"
13+
polyglot_piranha = "*"
14+
15+
[tool.poetry.dev-dependencies]
16+
pytest = "*"
17+
18+
# [tool.poetry.scripts]
19+
# scala_test = "scala_test.main:main"
20+
21+
[tool.poetry.scripts."scala_test"]
22+
main = "scala_test.main:main"
23+
24+
[tool.poetry.scripts."pytest"]
25+
main = "pytest"

plugins/scala_test/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# `scalatest` Migration Plugin
2+
3+
## Usage:
4+
```
5+
python3 plugins/scala_test/main.py -h
6+
usage: main.py [-h] --path_to_codebase PATH_TO_CODEBASE
7+
8+
Migrates scala tests!!!
9+
10+
options:
11+
-h, --help show this help message and exit
12+
--path_to_codebase PATH_TO_CODEBASE
13+
Path to the codebase directory.
14+
```
15+
16+
## Test
17+
```
18+
pytest plugins/scala_test
19+
```

plugins/scala_test/main.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import argparse
22
from update_imports import update_imports
33

4-
5-
6-
74
def _parse_args():
85
parser = argparse.ArgumentParser(description="Migrates scala tests!!!")
96
parser.add_argument(

plugins/setup.py

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)