Skip to content

Commit

Permalink
Adopt Blue Style (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickrobinson251 authored Jan 28, 2020
1 parent fb34d39 commit 304daed
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
[![Travis](https://travis-ci.org/JuliaDiff/ChainRulesCore.jl.svg?branch=master)](https://travis-ci.org/JuliaDiff/ChainRulesCore.jl)
[![Coveralls](https://coveralls.io/repos/github/JuliaDiff/ChainRulesCore.jl/badge.svg?branch=master)](https://coveralls.io/github/JuliaDiff/ChainRulesCore.jl?branch=master)
[![PkgEval](https://juliaci.github.io/NanosoldierReports/pkgeval_badges/C/ChainRulesCore.svg)](https://juliaci.github.io/NanosoldierReports/pkgeval_badges/report.html)
[![Code Style: Blue](https://img.shields.io/badge/code%20style-blue-4495d1.svg)](https://github.com/invenia/BlueStyle)

**Docs:**
[![](https://img.shields.io/badge/docs-master-blue.svg)](https://JuliaDiff.github.io/ChainRulesCore.jl/dev)
Expand All @@ -15,5 +16,3 @@ The ChainRulesCore package provides a light-weight dependency for defining sensi
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.

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.

The ChainRulesCore source code follows the [YASGuide](https://github.com/jrevels/YASGuide).
2 changes: 1 addition & 1 deletion test/rules.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ _second(t) = Base.tuple_type_head(Base.tuple_type_tail(t))

sx = @SVector [1, 2]
sy = @SVector [3, 4]
# This actually is testing that @scalar_rule and `One()` play nice together, w.r.t broadcasting
# This is testing that @scalar_rule and `One()` play nice together, w.r.t broadcasting
@inferred frule(very_nice, 1, 2, Zero(), sx, sy)
end
6 changes: 2 additions & 4 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# TODO: more tests!
using Test
using Base.Broadcast: broadcastable
using ChainRulesCore
using LinearAlgebra: Diagonal
using ChainRulesCore: extern, Composite, @scalar_rule, Zero, One, DoesNotExist, Thunk
using Base.Broadcast: broadcastable
using Test

@testset "ChainRulesCore" begin
@testset "differentials" begin
Expand Down

0 comments on commit 304daed

Please sign in to comment.