Skip to content

Commit 416e1ef

Browse files
committed
Set-up JuliaFormatter
1 parent 4066bf2 commit 416e1ef

File tree

6 files changed

+18
-2
lines changed

6 files changed

+18
-2
lines changed

.JuliaFormatter.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
style = "blue"
2+
3+
ignore = ["src/Wrapper.jl"]
4+
whitespace_in_kwargs = true
5+
whitespace_typedefs = true

.github/workflows/Format.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: Format suggestions
2+
on:
3+
pull_request:
4+
jobs:
5+
code-style:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: julia-actions/julia-format@v3

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Torch.jl
22

3+
[![Build Status](https://github.com/FluxML/Torch.jl/actions/workflows/CI.yml/badge.svg?branch=master)](https://github.com/FluxML/Torch.jl/actions/workflows/CI.yml?query=branch%3Amaster)
4+
[![Code Style: Blue](https://img.shields.io/badge/code%20style-blue-4495d1.svg)](https://github.com/JuliaDiff/BlueStyle)
5+
36
Sensible extensions for exposing torch in Julia.
47

58
This package is aimed at providing the `Tensor` type, which offloads all computations over to [ATen](https://pytorch.org/cppdocs/), the foundational tensor library for PyTorch, written in C++.

deps/julia_wrapper_generator/generator.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[general]
22
library_name = "libtorch_c_api"
3-
output_file_path = "../../src/wrapper.jl"
3+
output_file_path = "../../src/Wrapper.jl"
44
prologue_file_path = "./prologue.jl"
55
module_name = "Wrapper"
66
jll_pkg_name = "TorchCAPI_jll"

src/Torch.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ using FillArrays
1313

1414
TURN_ON_LOGGING = false
1515

16-
include("wrapper.jl")
16+
include("Wrapper.jl")
1717

1818
using .Wrapper
1919

File renamed without changes.

0 commit comments

Comments
 (0)