Skip to content

Commit

Permalink
ci/lint: simplify prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Apr 6, 2024
1 parent cdd7f57 commit 1367a64
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ repos:
rev: v3.1.0
hooks:
- id: prettier
files: \.(json|yml|yaml|toml)
# https://prettier.io/docs/en/options.html#print-width
args: ["--print-width=120"]

Expand All @@ -47,7 +48,6 @@ repos:
rev: v0.3.2
hooks:
- id: ruff-format
args: ["--preview"]
- id: ruff
args: ["--fix"]

Expand Down
2 changes: 0 additions & 2 deletions .prettierignore

This file was deleted.

18 changes: 10 additions & 8 deletions _actions/assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,14 +357,16 @@ def slack_payload(fpath_results: str = "projects.json", dpath_configs: str = "co
}
for _, r in dfg.iterrows()
]
blocks.append({
"type": "section",
"text": {
"type": "mrkdwn",
"text": f"*{cfg}*: compatibility outcomes {':interrobang:' if failed else ':zap:'}: {cc}",
},
"fields": fields,
})
blocks.append(
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": f"*{cfg}*: compatibility outcomes {':interrobang:' if failed else ':zap:'}: {cc}",
},
"fields": fields,
}
)
now_str = datetime.now().strftime("%Y-%m-%d")
return json.dumps({"text": f"GitHub Action: compatibility result from {now_str}", "blocks": blocks})

Expand Down

0 comments on commit 1367a64

Please sign in to comment.