-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add internal hidden rules for testing #9747
Changes from all commits
fa3a8e6
43ed884
0fea08c
f5e44b6
ca92070
7d80d95
d05452f
3419e5c
072c52d
4a3a02d
6d20a71
052edbd
8247b85
2b31bbe
d89a888
fafbc25
8d9b6b5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,6 +54,8 @@ walkdir = { workspace = true } | |
wild = { workspace = true } | ||
|
||
[dev-dependencies] | ||
# Enable test rules during development | ||
ruff_linter = { path = "../ruff_linter", features = ["clap", "test-rules"] } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @BurntSushi - Can you double-confirm for me that these won't enable in non- There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If I do
but they are not present without There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Idk what features we include in releases, it's buried in maturin? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't specify anything, so we get the default features. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (Which should omit these.) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh great so I think we're good then There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah features enabled in |
||
assert_cmd = { workspace = true } | ||
# Avoid writing colored snapshots when running tests from the terminal | ||
colored = { workspace = true, features = ["no-color"]} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add another run command that runs the test of
ruff_dev
but with the default features only? We otherwise lose the schema test.Although I'm seeing test failures locally even when not using
--all-features
, making that test rather annoying.A workaround could be to export a
are_testing_rules_enabled
and conditionally implement it depending on the presence of the feature flag and not run the schema test when it's enabled. But that still means that the test won't fail anymore locally and still requires an explicit cargo testruff_dev
run :(