Commit b5c6fb4
Fix ruff linting violations in plotly bar-basic implementation (#136)
Ruff reported 12 C408 violations (unnecessary `dict()` calls) in the
plotly bar-basic implementation that needed to be converted to
dictionary literals.
**Changes:**
- Replaced all `dict()` constructor calls with dictionary literal syntax
in `plots/plotly/bar/bar-basic/default.py`
**Example:**
```python
# Before
marker=dict(color=color, opacity=alpha, line=dict(color=edgecolor, width=1))
# After
marker={"color": color, "opacity": alpha, "line": {"color": edgecolor, "width": 1}}
```
All ruff checks now pass.
<!-- START COPILOT CODING AGENT TIPS -->
---
✨ Let Copilot coding agent [set things up for
you](https://github.com/MarkusNeusinger/pyplots/issues/new?title=✨+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot)
— coding agent works faster and does higher quality work when set up for
your repo.
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: MarkusNeusinger <2921697+MarkusNeusinger@users.noreply.github.com>1 parent fa71ad0 commit b5c6fb4
1 file changed
Lines changed: 12 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
0 commit comments