Skip to content

Commit 6204f47

Browse files
authored
chore: cleanup and labeler (#463)
* core: minor cleanup * ci: labeler
1 parent ba6533b commit 6204f47

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed

.github/labeler.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Add 'needs changelog` label to any change to code files as long as the `CHANGELOG` hasn't changed
2+
needs changelog:
3+
- any: ['src/**/*.py', 'src/**/*.cpp', 'include/**/*.hpp']
4+
all: ['!docs/CHANGELOG.md']

.github/workflows/pr.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: "Pull Request Labeler"
2+
on:
3+
- pull_request_target
4+
5+
jobs:
6+
triage:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/labeler@main
10+
with:
11+
repo-token: ${{ secrets.GITHUB_TOKEN }}
12+
sync-labels: true

include/bh_python/transform.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ struct func_transform {
7171
auto c = py::reinterpret_borrow<py::capsule>(
7272
PyCFunction_GET_SELF(cfunc.ptr()));
7373

74-
// NOLINTNEXTLINE(google-readability-casting)
75-
auto rec = (py::detail::function_record*)(c);
74+
// This calls operator T* (PyCapsule_SetPointer)
75+
auto rec = static_cast<py::detail::function_record*>(c);
7676

7777
if(rec && rec->is_stateless
7878
&& py::detail::same_type(

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[metadata]
22
name = boost_histogram
33
author = Hans Dembinski and Henry Schreiner
4-
author_email="[email protected]",
4+
author_email = [email protected]
55
maintainer = Hans Dembinski and Henry Schreiner
66
maintainer_email = [email protected]
77
url = https://github.com/scikit-hep/boost-histogram

0 commit comments

Comments
 (0)