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

Enforce rustfmt and clippy on all Rust code #7636

Merged
merged 9 commits into from
Aug 16, 2024

Conversation

mmastrac
Copy link
Contributor

@mmastrac mmastrac commented Aug 8, 2024

This starts enforcing rustfmt and clippy on all Rust code, and adds a test to tests/test_sourcecode.py to test this at build time.

The graphql-rewrite codebase is removed as part of this work -- we can recover it from git history if we revisit it in the future.

@mmastrac mmastrac requested a review from elprans August 12, 2024 03:09
@elprans
Copy link
Member

elprans commented Aug 12, 2024

The graphql-rewrite codebase is removed as part of this work -- we can recover it from git history if we revisit it in the future.

Any specific reason for that? It isn't dead code, we use it here.

@mmastrac
Copy link
Contributor Author

The graphql-rewrite codebase is removed as part of this work -- we can recover it from git history if we revisit it in the future.

Any specific reason for that? It isn't dead code, we use it here.

Ah, I missed that it was used. I can restore that code.

@mmastrac mmastrac merged commit 266df6d into geldata:master Aug 16, 2024
25 checks passed
@@ -107,3 +107,54 @@ def test_cqa_mypy(self):
output += '\n\n' + ex.stderr.decode()
raise AssertionError(
f'mypy validation failed:\n{output}') from None

def test_clippy(self):
Copy link
Member

Choose a reason for hiding this comment

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

These 2 tests are failing on nightlies (where we run tests with released binary):

https://github.com/edgedb/edgedb/actions/runs/10481913983/job/29032928532

You can test this by pushing code into a branch in the main repo and manually triggering the Dry Run CI.

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