Skip to content

Poetry --> UV (+ Makefile Added) #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Mar 17, 2025

Conversation

duragdatadude
Copy link
Contributor

@duragdatadude duragdatadude commented Mar 13, 2025

  • Change command in .lintstagedrc from 'poetry run ruff' to 'uv run ruff'
  • Migrate from [tool.poetry] to [project] section in pyproject.toml
  • Update authors and license format in pyproject.toml
  • Add dependencies under [project] and [project.optional-dependencies] sections
  • Switch build system from poetry to hatchling
  • CI switched from poetry to UV

KLonge added 5 commits March 13, 2025 10:33
- Change command in .lintstagedrc from 'poetry run ruff' to 'uv run ruff'
- Migrate from [tool.poetry] to [project] section in pyproject.toml
- Update authors and license format in pyproject.toml
- Add dependencies under [project] and [project.optional-dependencies] sections
- Switch build system from poetry to hatchling
- Deleted the poetry.lock file as part of the transition to a new dependency management approach.
- Removed the clean-dagster target to streamline the dagster-dev command.
- Updated the dagster-dev command to remove the explicit workspace.yaml path, allowing for default behavior.
- Replaced Poetry setup with actions/setup-python for Python installation.
- Added installation step for uv and updated commands to use uv for running checks and tests.
- Streamlined the CI process by integrating uv for dependency synchronization and execution of tasks.
- Added `pyright` command to Makefile for type checking.
- Updated `pyright` script in package.json to use the correct Python path.
- Revised README to reflect the new Make commands for initializing and upgrading dependencies.
- Simplified instructions for running tests and the sample dagster project using Make commands.
duragdatadude and others added 3 commits March 14, 2025 03:42
Co-authored-by: Reuven Gonzales <reuven.v.gonzales@gmail.com>
Co-authored-by: Reuven Gonzales <reuven.v.gonzales@gmail.com>
- Removed OS-specific checks for Windows in the Makefile.
- Unified Python, SQLMESH, and UV command definitions for a cleaner setup.
- Simplified activation and deactivation commands for the virtual environment.
- Added Pyright exclusion patterns in pyproject.toml to ignore specific directories.
- Introduced a new method `show_linter_violations` in EventConsole to handle and publish linting violations.
- Reorganized imports in console.py for better clarity and consistency.
@duragdatadude
Copy link
Contributor Author

duragdatadude commented Mar 15, 2025

@ravenac95 managed to fix the pyright test issue I think (and get pyright to sync up with my extension as well so it's easier to see the errors in the UI compared to before - it looks like it is consistent now).

I also adjusted the pyright command to use UV more plainly so that it doesn't require shell commands

@ravenac95
Copy link
Member

Thanks so much @duragdatadude looks good. Merging now!

@ravenac95 ravenac95 added this pull request to the merge queue Mar 17, 2025
Merged via the queue into opensource-observer:main with commit 4978a6f Mar 17, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants