Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.3.1
6.5.0
4 changes: 4 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Run manually to reformat a file:
# clang-format -i --style=file <file>
BasedOnStyle: Google
DerivePointerAlignment: false
11 changes: 11 additions & 0 deletions .github/workflows/check-bazel-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Bazel files check
on: [push]
jobs:
formatting-check:
name: Run buildifier check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Run buildifier
uses: jbajic/buildifier@v1
14 changes: 14 additions & 0 deletions .github/workflows/check-clang-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: clang-format Check
on: [push, pull_request]
jobs:
formatting-check:
name: Formatting Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run clang-format style check for C/C++/Protobuf programs.
uses: jidicula/clang-format-action@v4.15.0
with:
clang-format-version: '19'
check-path: 'src'
fallback-style: 'Google' # optional
8 changes: 8 additions & 0 deletions .github/workflows/check-python-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Ruff
on: [ push, pull_request ]
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/ruff-action@v3
42 changes: 0 additions & 42 deletions .github/workflows/ci_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,48 +11,6 @@ on:
- r*

jobs:
yapf-test:
name: Yapf Python code format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Ensure contributor used ("yapf --style=./.yapf -ri ./**/*.py") before commit
run: bash tools/run_build.sh yapf-test
valid_build_files:
name: Valid build files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run type check
run: bash tools/run_build.sh valid_build_files
clang-format:
name: Clang C++ code format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run type check
run: bash tools/run_build.sh clang-format
check-bazel-format:
name: Bazel code format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run type check
run: bash tools/run_build.sh check-bazel-format
pre-commit:
name: Check that the pre-commit works
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checking the pre-commit
run: bash tools/pre-commit.sh
# docs_tests:
# name: Check that we can build the docs
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Building the docs
# run: bash tools/run_build.sh docs_tests
nbfmt:
name: Notebook format
runs-on: ubuntu-latest
Expand Down
41 changes: 40 additions & 1 deletion BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,45 @@
load("@bazel_skylib//rules:build_test.bzl", "build_test")

# Copyright 2024 The Deepray Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
load("@rules_license//rules:license.bzl", "license")
load("//third_party/py:pypi.bzl", "pypi_requirement")

package(
default_applicable_licenses = [":license"],
default_visibility = ["//deepray:__subpackages__"],
)

license(
name = "license",
package_name = "deepray",
)

exports_files([
"LICENSE",
"setup.py",
"MANIFEST.in",
"README.md",
"requirements.txt",
])

###############################################################################
# PIP Package
###############################################################################
sh_binary(
name = "build_pip_pkg",
srcs = ["build_deps/build_pip_pkg.sh"],
srcs = ["//build_deps:build_pip_pkg.sh"],
data = [
"LICENSE",
"MANIFEST.in",
Expand Down
Loading
Loading