Skip to content
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

Tooling fixes #108

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Tooling fixes #108

wants to merge 3 commits into from

Conversation

xaocon
Copy link

@xaocon xaocon commented Aug 23, 2024

Thank you for submitting this pull request! We appreciate you spending the time to work on these changes.

What is the motivation?

It looks like there was a lot mangled during the effort to remove tokio and change the folder layout. I first noticed a merge conflict that got merged in but it send me down a rabbit hole with poetry being removed.

Type of Change

  • 📚 Examples / docs / tutorials / dependencies update
  • 🔧 Bug fix (non-breaking change which fixes an issue)
  • 🥂 Improvement (non-breaking change which improves an existing feature)
  • 🚀 New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to change)
  • 🔐 Security fix

What does this change do?

It's primarily clean up of poetry items and correction of the stability action

What is your testing strategy?

I didn't change any actual code. I tested running ruff, mypy, and black from the cli and pip installed to verify requirements files.

Is this related to any issues?

There is not

Have you read the Contributing Guidelines?

Poetry was removed as the standard way to manage the package and deps in surrealdb#76. The resulting pyproject.toml was missing a number of configs for other tools.

This commit:
- adds the tooling info back to pyproject
- adds .editorconfig file back
- removes the poetry.lock file
- updates typing-extensions name in deps
- adds the missing tooling packages to dev_requirements
- adds mise tooling files to gitignore
This was a merge diff that was left in and resolved. I also removed `poetry run` from the start of commands.
The github actions still referenced some poetry operations. I'm not sure that the `.venv` related parts are still useful but I will leave for now as they should not cause a problem.
@xaocon
Copy link
Author

xaocon commented Aug 23, 2024

stability should probably also run cargo fmt but I didn't want to add a new step in a PR focused on cleanup and fixing previous merge issues. I noticed that the rust code is no longer well formatted. There are also issues in most or all of the current steps in in stability but I think the workflow should function as intended now.


- id: Black
if: always()
run: poetry run black python_package/surrealdb/ --check --verbose --diff --color
run: black surrealdb/ --check --verbose --diff --color
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be ruff format, no one uses black anymore.

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.

2 participants