From 53c05636f77cd9b9c0737e5ab01eddc4bc182fd0 Mon Sep 17 00:00:00 2001 From: Michael Gattozzi Date: Fri, 22 Nov 2019 10:02:16 -0500 Subject: Fix formatting and add checks to pre-commit hook This enables a pre-commit script and adding more pedantic checks to the commit. This means from now on all commits will be in a working state in the history and this enables us to build directly on master without worrying about it breaking the build. Where we're going we won't need feature branches anymore. This also fixes formatting issues that existed but the GitHub actions would not be able to catch at all. --- ticket/src/main.rs | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'ticket') diff --git a/ticket/src/main.rs b/ticket/src/main.rs index 00b6715..9005471 100644 --- a/ticket/src/main.rs +++ b/ticket/src/main.rs @@ -1,9 +1,24 @@ -use anyhow::{bail, Result}; +use anyhow::{ + bail, + Result, +}; use colored::*; -use rustyline::{error::ReadlineError, Editor}; -use serde::{Deserialize, Serialize}; +use rustyline::{ + error::ReadlineError, + Editor, +}; +use serde::{ + Deserialize, + Serialize, +}; use shared::find_root; -use std::{env, fs, path::PathBuf, process, process::Command}; +use std::{ + env, + fs, + path::PathBuf, + process, + process::Command, +}; #[derive(structopt::StructOpt)] enum Args { -- cgit v1.2.3