File tree 4 files changed +10
-15
lines changed
4 files changed +10
-15
lines changed Original file line number Diff line number Diff line change 10
10
types :
11
11
- published
12
12
13
+ concurrency :
14
+ group : ${ github.workflow }-${ github.ref }
15
+ cancel-in-progress : true
16
+
13
17
jobs :
14
18
pre-commit :
15
19
name : Format
Original file line number Diff line number Diff line change 1
1
repos :
2
- - repo : https://github.com/psf/black-pre-commit-mirror
3
- rev : 24.4.2
4
- hooks :
5
- - id : black
6
-
7
2
- repo : https://github.com/pre-commit/pre-commit-hooks
8
3
rev : v4.6.0
9
4
hooks :
23
18
hooks :
24
19
- id : ruff
25
20
args : ["--fix", "--show-fixes"]
21
+ - id : ruff-format
26
22
27
23
- repo : https://github.com/pre-commit/mirrors-mypy
28
24
rev : v1.10.0
Original file line number Diff line number Diff line change @@ -170,14 +170,11 @@ uproot-browser tree ../scikit-hep-testdata/src/skhep_testdata/data/uproot-Event.
170
170
## Development
171
171
172
172
[ ![ pre-commit.ci status] [ pre-commit-badge ]] [ pre-commit-link ]
173
- [ ![ Code style: black] [ black-badge ]] [ black-link ]
174
173
175
174
See [ CONTRIBUTING.md] ( https://github.com/scikit-hep/uproot-browser/blob/main/.github/CONTRIBUTING.md ) for details on how to set up a development environment.
176
175
177
176
[ actions-badge ] : https://github.com/scikit-hep/uproot-browser/workflows/CI/badge.svg
178
177
[ actions-link ] : https://github.com/scikit-hep/uproot-browser/actions
179
- [ black-badge ] : https://img.shields.io/badge/code%20style-black-000000.svg
180
- [ black-link ] : https://github.com/psf/black
181
178
[ conda-badge ] : https://img.shields.io/conda/vn/conda-forge/uproot-browser
182
179
[ conda-link ] : https://github.com/conda-forge/uproot-browser-feedstock
183
180
[ github-discussions-badge ] : https://img.shields.io/static/v1?label=Discussions&message=Ask&color=blue&logo=github
Original file line number Diff line number Diff line change @@ -130,8 +130,10 @@ messages_control.disable = [
130
130
]
131
131
132
132
[tool .ruff ]
133
- select = [
134
- " E" , " F" , " W" , # flake8
133
+ src = [" src" ]
134
+
135
+ [tool .ruff .lint ]
136
+ extend-select = [
135
137
" B" , # flake8-bugbear
136
138
" I" , # isort
137
139
" ARG" , # flake8-unused-arguments
@@ -157,16 +159,12 @@ ignore = [
157
159
" RUF001" , # Unicode chars
158
160
" PLR" ,
159
161
]
160
- src = [" src" ]
161
162
typing-modules = [" uproot_browser._compat.typing" ]
162
163
unfixable = [
163
- " T20" , # Removes print statements
164
- " F841" , # Removes unused variables
165
164
" SIM118" , # Dict .keys() removal (uproot)
166
165
]
167
- exclude = []
168
166
169
- [tool .ruff .per-file-ignores ]
167
+ [tool .ruff .lint . per-file-ignores ]
170
168
"noxfile.py" = [" T20" ]
171
169
"tests/*" = [" T20" ]
172
170
"src/uproot_browser/tree.py" = [" UP006" ]
You can’t perform that action at this time.
0 commit comments