Skip to content

Commit 304daed

Browse files
Adopt Blue Style (#122)
1 parent fb34d39 commit 304daed

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
[![Travis](https://travis-ci.org/JuliaDiff/ChainRulesCore.jl.svg?branch=master)](https://travis-ci.org/JuliaDiff/ChainRulesCore.jl)
66
[![Coveralls](https://coveralls.io/repos/github/JuliaDiff/ChainRulesCore.jl/badge.svg?branch=master)](https://coveralls.io/github/JuliaDiff/ChainRulesCore.jl?branch=master)
77
[![PkgEval](https://juliaci.github.io/NanosoldierReports/pkgeval_badges/C/ChainRulesCore.svg)](https://juliaci.github.io/NanosoldierReports/pkgeval_badges/report.html)
8+
[![Code Style: Blue](https://img.shields.io/badge/code%20style-blue-4495d1.svg)](https://github.com/invenia/BlueStyle)
89

910
**Docs:**
1011
[![](https://img.shields.io/badge/docs-master-blue.svg)](https://JuliaDiff.github.io/ChainRulesCore.jl/dev)
@@ -15,5 +16,3 @@ The ChainRulesCore package provides a light-weight dependency for defining sensi
1516
This will allow your package to be used with [ChainRules.jl](https://github.com/JuliaDiff/ChainRules.jl), which aims to provide a variety of common utilities that can be used by downstream automatic differentiation (AD) tools to define and execute forward-, reverse-, and mixed-mode primitives.
1617

1718
This package is a work in progress; the framework is essentially there, but there are a bunch of TODOs, virtually no tests, etc. PRs welcome! The API is mostly documented, which should help if you'd like to contribute.
18-
19-
The ChainRulesCore source code follows the [YASGuide](https://github.com/jrevels/YASGuide).

test/rules.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ _second(t) = Base.tuple_type_head(Base.tuple_type_tail(t))
5353

5454
sx = @SVector [1, 2]
5555
sy = @SVector [3, 4]
56-
# This actually is testing that @scalar_rule and `One()` play nice together, w.r.t broadcasting
56+
# This is testing that @scalar_rule and `One()` play nice together, w.r.t broadcasting
5757
@inferred frule(very_nice, 1, 2, Zero(), sx, sy)
5858
end

test/runtests.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
# TODO: more tests!
2-
using Test
1+
using Base.Broadcast: broadcastable
32
using ChainRulesCore
43
using LinearAlgebra: Diagonal
5-
using ChainRulesCore: extern, Composite, @scalar_rule, Zero, One, DoesNotExist, Thunk
6-
using Base.Broadcast: broadcastable
4+
using Test
75

86
@testset "ChainRulesCore" begin
97
@testset "differentials" begin

0 commit comments

Comments
 (0)