Skip to content

Commit

Permalink
[wip] restructure
Browse files Browse the repository at this point in the history
  • Loading branch information
jkschneider committed Aug 20, 2024
1 parent 015d2bd commit 3146614
Show file tree
Hide file tree
Showing 128 changed files with 24 additions and 4,888 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"java.compile.nullAnalysis.mode": "disabled"
}
8 changes: 0 additions & 8 deletions rewrite/.idea/.gitignore

This file was deleted.

6 changes: 0 additions & 6 deletions rewrite/.idea/inspectionProfiles/profiles_settings.xml

This file was deleted.

7 changes: 0 additions & 7 deletions rewrite/.idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions rewrite/.idea/modules.xml

This file was deleted.

35 changes: 0 additions & 35 deletions rewrite/.idea/rewrite.iml

This file was deleted.

26 changes: 0 additions & 26 deletions rewrite/.idea/runConfigurations/rewrite_remote_server.xml

This file was deleted.

6 changes: 0 additions & 6 deletions rewrite/.idea/vcs.xml

This file was deleted.

17 changes: 4 additions & 13 deletions rewrite/Makefile
Original file line number Diff line number Diff line change
@@ -1,26 +1,17 @@
.PHONY: all install-deps build

# List of project directories
PROJECTS= rewrite-core rewrite-java rewrite-json rewrite-python rewrite-xml rewrite-yaml

# Default target
all: install-deps build

# Define a target to install dependencies for all projects
install-deps:
@for project in $(PROJECTS); do\
echo "Installing dependencies for $$project";\
cd $$project && poetry install;\
cd -;\
done
echo "Installing dependencies";\
poetry install;\

# Define a target to build all projects
build:
@for project in $(PROJECTS); do\
echo "Building project $$project";\
cd $$project && poetry build;\
cd -;\
done
echo "Building project";\
poetry build;\

test:
pytest
17 changes: 2 additions & 15 deletions rewrite/rewrite-test/poetry.lock → rewrite/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions rewrite/poetry.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[virtualenvs]
in-project = true
prefer-active-python = true

[virtualenvs.options]
always-copy = true
10 changes: 5 additions & 5 deletions rewrite/rewrite-java/pyproject.toml → rewrite/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
[tool.poetry]
name = "rewrite-java"
name = "rewrite"
version = "0.0.0" # This will be replaced by the GitHub Actions workflow
description = "Java functionality for the OpenRewrite library"
description = "OpenRewrite is a mass automated refactoring engine."
authors = ["Moderne Inc. <support@moderne.io>"]
license = "Apache-2.0"
packages = [
{ include = "rewrite/java", from = "src" }
{ include = "rewrite", from = "src" }
]

[tool.poetry.dependencies]
python = "^3.8"
rewrite-core = { path = "../rewrite-core", develop = true }
python = "~3.8"

[tool.poetry.group.dev.dependencies]
pytest = "^8.3.2"
# rewrite-remote-test = { path = "../../../../moderneinc/rewrite-remote/python/rewrite-remote-test", develop = true }

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down
8 changes: 4 additions & 4 deletions rewrite/pyrightconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"typeCheckingMode": "basic",
"pythonVersion": "3.8",
"include": ["**/*.py"]
}
"typeCheckingMode": "basic",
"pythonVersion": "3.8",
"include": ["**/*.py"]
}
2 changes: 0 additions & 2 deletions rewrite/rewrite-core/README.md

This file was deleted.

Loading

0 comments on commit 3146614

Please sign in to comment.