Testing pre-commit

This commit is contained in:
Jamil Bou Kheir
2020-05-04 23:44:55 -07:00
parent 66af1a18f8
commit ef8ef54999
6 changed files with 16 additions and 2 deletions

7
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,7 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace

View File

@@ -1,6 +1,6 @@
defmodule CfHttp.Devices.Device do
@moduledoc """
Handles Device stuff when it comes to the DB
Yeah baby moduledoc!
"""
use Ecto.Schema

View File

@@ -48,7 +48,8 @@ defmodule CfHttp.MixProject do
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:gettext, "~> 0.11"},
{:jason, "~> 1.0"},
{:plug_cowboy, "~> 2.1"}
{:plug_cowboy, "~> 2.1"},
{:credo, "~> 1.4", only: [:dev, :test], runtime: false}
]
end

View File

@@ -26,6 +26,7 @@ defmodule CfVpn.MixProject do
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:credo, "~> 1.4", only: [:dev, :test], runtime: false}
# {:dep_from_hexpm, "~> 0.3.0"},
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"},
# {:sibling_app_in_umbrella, in_umbrella: true}

View File

@@ -26,6 +26,7 @@ defmodule CfWall.MixProject do
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:credo, "~> 1.4", only: [:dev, :test], runtime: false}
# {:dep_from_hexpm, "~> 0.3.0"},
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"},
# {:sibling_app_in_umbrella, in_umbrella: true}

View File

@@ -1,4 +1,8 @@
defmodule CloudfireUmbrella.MixProject do
@moduledoc """
Welcome to the CloudFire Elixir Umbrella Project
"""
use Mix.Project
def project do