diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..76d0b32 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "ruff"] + path = ruff + url = https://github.com/astral-sh/ruff diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..7da4d66 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,28 @@ +# Contributing + +## Repository structure + +ty's Rust crates can be found in the [Ruff](https://github.com/astral-sh/ruff) project. While the +relationship between these projects will evolve over time, they currently share foundational crates +and it's easiest to use a single repository for development. To contribute changes to ty's core, +open a pull request on the Ruff repository. + +The Ruff repository is included as a submodule to allow ty's release tags to reflect an exact +snapshot of the Ruff project. The submodule is only updated on release. To see the latest +development code, visit the Ruff repository. + +The ty repository only includes code relevant to distributing the ty project. + +## Getting started with the ty repository + +Clone the repository: + +``` +git clone https://github.com/astral-sh/ty.git +``` + +Then, ensure the submodule is initialized: + +``` +git submodule update --init --recursive +``` diff --git a/ruff b/ruff new file mode 160000 index 0000000..675a5af --- /dev/null +++ b/ruff @@ -0,0 +1 @@ +Subproject commit 675a5af89af5b786a6c99870fe0cf7f841454271