File tree 2 files changed +2
-13
lines changed
2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -1327,8 +1327,9 @@ jobs:
1327
1327
run : |
1328
1328
python -m pip install --upgrade pip
1329
1329
pip install ruff
1330
+ # Include `--format=github` to enable automatic inline annotations.
1330
1331
- name : Run Ruff
1331
- run : ruff .
1332
+ run : ruff --format=github .
1332
1333
` ` `
1333
1334
1334
1335
## FAQ
Original file line number Diff line number Diff line change 1
- use std:: env;
2
1
use std:: hash:: Hash ;
3
2
use std:: ops:: Deref ;
4
3
use std:: path:: { Path , PathBuf } ;
@@ -164,17 +163,6 @@ pub enum SerializationFormat {
164
163
165
164
impl Default for SerializationFormat {
166
165
fn default ( ) -> Self {
167
- if let Ok ( github_actions) = env:: var ( "GITHUB_ACTIONS" ) {
168
- if github_actions == "true" {
169
- return Self :: Github ;
170
- }
171
- }
172
-
173
- if let Ok ( gitlab_ci) = env:: var ( "GITLAB_CI" ) {
174
- if gitlab_ci == "true" {
175
- return Self :: Gitlab ;
176
- }
177
- }
178
166
Self :: Text
179
167
}
180
168
}
You can’t perform that action at this time.
0 commit comments