From 6bb27933b8567ff8642760055dad418c2c5ec3d9 Mon Sep 17 00:00:00 2001 From: "Joshua A. Anderson" Date: Thu, 9 May 2024 16:00:56 -0400 Subject: [PATCH] Add license headers. --- .pre-commit-config.yaml | 2 +- src/builtin.rs | 3 +++ src/cli.rs | 3 +++ src/cli/clean.rs | 3 +++ src/cli/cluster.rs | 3 +++ src/cli/directories.rs | 3 +++ src/cli/init.rs | 3 +++ src/cli/launchers.rs | 3 +++ src/cli/scan.rs | 3 +++ src/cli/status.rs | 3 +++ src/cli/submit.rs | 3 +++ src/cluster.rs | 3 +++ src/expr.rs | 3 +++ src/format.rs | 3 +++ src/launcher.rs | 3 +++ src/lib.rs | 3 +++ src/main.rs | 3 +++ src/progress_styles.rs | 3 +++ src/project.rs | 3 +++ src/scheduler.rs | 3 +++ src/scheduler/bash.rs | 3 +++ src/scheduler/slurm.rs | 3 +++ src/state.rs | 3 +++ src/ui.rs | 3 +++ src/workflow.rs | 3 +++ src/workspace.rs | 3 +++ tests/cli.rs | 3 +++ 27 files changed, 79 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c2463fe..ce8d172 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -42,5 +42,5 @@ repos: types_or: [rust] args: - --license-file=LICENSE - - --add=Part of Row, released under the BSD 3-Clause License. + - --add=Part of row, released under the BSD 3-Clause License. - --comment-prefix=// diff --git a/src/builtin.rs b/src/builtin.rs index 09f7a4a..dbebbb0 100644 --- a/src/builtin.rs +++ b/src/builtin.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2024 The Regents of the University of Michigan. +// Part of row, released under the BSD 3-Clause License. + use std::collections::HashMap; use crate::cluster::{self, Cluster, IdentificationMethod, Partition, SchedulerType}; diff --git a/src/cli.rs b/src/cli.rs index 8ab4b58..3d95cfd 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2024 The Regents of the University of Michigan. +// Part of row, released under the BSD 3-Clause License. + pub mod clean; pub mod cluster; pub mod directories; diff --git a/src/cli/clean.rs b/src/cli/clean.rs index ff52d34..48b2cfe 100644 --- a/src/cli/clean.rs +++ b/src/cli/clean.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2024 The Regents of the University of Michigan. +// Part of row, released under the BSD 3-Clause License. + use clap::Args; use log::{debug, info, warn}; use std::error::Error; diff --git a/src/cli/cluster.rs b/src/cli/cluster.rs index 548cc82..b3f82e7 100644 --- a/src/cli/cluster.rs +++ b/src/cli/cluster.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2024 The Regents of the University of Michigan. +// Part of row, released under the BSD 3-Clause License. + use clap::Args; use log::{debug, info}; use std::error::Error; diff --git a/src/cli/directories.rs b/src/cli/directories.rs index b616635..5299c7b 100644 --- a/src/cli/directories.rs +++ b/src/cli/directories.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2024 The Regents of the University of Michigan. +// Part of row, released under the BSD 3-Clause License. + use clap::Args; use console::Style; use log::{debug, warn}; diff --git a/src/cli/init.rs b/src/cli/init.rs index aeb38e6..19c6fe4 100644 --- a/src/cli/init.rs +++ b/src/cli/init.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2024 The Regents of the University of Michigan. +// Part of row, released under the BSD 3-Clause License. + use clap::Args; use log::{debug, info, trace, warn}; use path_absolutize::Absolutize; diff --git a/src/cli/launchers.rs b/src/cli/launchers.rs index 2c044a1..8988ee5 100644 --- a/src/cli/launchers.rs +++ b/src/cli/launchers.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2024 The Regents of the University of Michigan. +// Part of row, released under the BSD 3-Clause License. + use clap::Args; use log::{debug, info}; use std::error::Error; diff --git a/src/cli/scan.rs b/src/cli/scan.rs index dcb5a04..544fd15 100644 --- a/src/cli/scan.rs +++ b/src/cli/scan.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2024 The Regents of the University of Michigan. +// Part of row, released under the BSD 3-Clause License. + use clap::Args; use log::{debug, info, trace, warn}; use postcard; diff --git a/src/cli/status.rs b/src/cli/status.rs index 67bc665..b7a1e99 100644 --- a/src/cli/status.rs +++ b/src/cli/status.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2024 The Regents of the University of Michigan. +// Part of row, released under the BSD 3-Clause License. + use clap::Args; use console::Style; use indicatif::HumanCount; diff --git a/src/cli/submit.rs b/src/cli/submit.rs index 76c940f..91d0a58 100644 --- a/src/cli/submit.rs +++ b/src/cli/submit.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2024 The Regents of the University of Michigan. +// Part of row, released under the BSD 3-Clause License. + use clap::Args; use console::style; use indicatif::HumanCount; diff --git a/src/cluster.rs b/src/cluster.rs index 8cb50f7..e47a071 100644 --- a/src/cluster.rs +++ b/src/cluster.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2024 The Regents of the University of Michigan. +// Part of row, released under the BSD 3-Clause License. + use log::{debug, info, trace}; use serde::{Deserialize, Serialize}; use std::env; diff --git a/src/expr.rs b/src/expr.rs index fb1f7c1..f12c3b8 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2024 The Regents of the University of Michigan. +// Part of row, released under the BSD 3-Clause License. + use serde_json::Value; use std::cmp::Ordering; use std::iter; diff --git a/src/format.rs b/src/format.rs index a9bdfc2..31e2b28 100644 --- a/src/format.rs +++ b/src/format.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2024 The Regents of the University of Michigan. +// Part of row, released under the BSD 3-Clause License. + use std::fmt; use std::time::Duration; diff --git a/src/launcher.rs b/src/launcher.rs index 03421bc..4cd87b1 100644 --- a/src/launcher.rs +++ b/src/launcher.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2024 The Regents of the University of Michigan. +// Part of row, released under the BSD 3-Clause License. + use log::trace; use serde::{Deserialize, Serialize}; use std::collections::HashMap; diff --git a/src/lib.rs b/src/lib.rs index 0cb2987..353aedc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2024 The Regents of the University of Michigan. +// Part of row, released under the BSD 3-Clause License. + #![warn(clippy::pedantic)] #![allow(clippy::cast_precision_loss)] #![allow(clippy::cast_possible_wrap)] diff --git a/src/main.rs b/src/main.rs index 430f021..5a062bb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2024 The Regents of the University of Michigan. +// Part of row, released under the BSD 3-Clause License. + #![warn(clippy::pedantic)] use clap::Parser; diff --git a/src/progress_styles.rs b/src/progress_styles.rs index 45ba33e..b490534 100644 --- a/src/progress_styles.rs +++ b/src/progress_styles.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2024 The Regents of the University of Michigan. +// Part of row, released under the BSD 3-Clause License. + use indicatif::{ProgressState, ProgressStyle}; use std::fmt::Write; diff --git a/src/project.rs b/src/project.rs index 4d7d91c..38a0798 100644 --- a/src/project.rs +++ b/src/project.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2024 The Regents of the University of Michigan. +// Part of row, released under the BSD 3-Clause License. + use indicatif::ProgressBar; use log::{debug, trace, warn}; use serde_json::Value; diff --git a/src/scheduler.rs b/src/scheduler.rs index 38997e4..6f2c8d6 100644 --- a/src/scheduler.rs +++ b/src/scheduler.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2024 The Regents of the University of Michigan. +// Part of row, released under the BSD 3-Clause License. + pub mod bash; pub mod slurm; diff --git a/src/scheduler/bash.rs b/src/scheduler/bash.rs index 7ea5145..28c8357 100644 --- a/src/scheduler/bash.rs +++ b/src/scheduler/bash.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2024 The Regents of the University of Michigan. +// Part of row, released under the BSD 3-Clause License. + use log::{debug, error, trace}; use nix::sys::signal::{self, Signal}; use nix::unistd::Pid; diff --git a/src/scheduler/slurm.rs b/src/scheduler/slurm.rs index f309227..df25492 100644 --- a/src/scheduler/slurm.rs +++ b/src/scheduler/slurm.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2024 The Regents of the University of Michigan. +// Part of row, released under the BSD 3-Clause License. + use log::{debug, error, trace}; use std::collections::{HashMap, HashSet}; use std::fmt::Write as _; diff --git a/src/state.rs b/src/state.rs index 7d2f351..3f75423 100644 --- a/src/state.rs +++ b/src/state.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2024 The Regents of the University of Michigan. +// Part of row, released under the BSD 3-Clause License. + use indicatif::ProgressBar; use log::{debug, trace, warn}; use serde::{Deserialize, Serialize}; diff --git a/src/ui.rs b/src/ui.rs index 24cb46b..02a3dd5 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2024 The Regents of the University of Michigan. +// Part of row, released under the BSD 3-Clause License. + use console::Style; use indicatif::MultiProgress; use memchr::memmem; diff --git a/src/workflow.rs b/src/workflow.rs index f836d17..037bfdd 100644 --- a/src/workflow.rs +++ b/src/workflow.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2024 The Regents of the University of Michigan. +// Part of row, released under the BSD 3-Clause License. + use human_format::Formatter; use log::{debug, trace, warn}; use serde::{Deserialize, Deserializer}; diff --git a/src/workspace.rs b/src/workspace.rs index 39bc722..313a5f9 100644 --- a/src/workspace.rs +++ b/src/workspace.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2024 The Regents of the University of Michigan. +// Part of row, released under the BSD 3-Clause License. + use indicatif::ProgressBar; use log::debug; use serde_json::Value; diff --git a/tests/cli.rs b/tests/cli.rs index f3405bc..08901b6 100644 --- a/tests/cli.rs +++ b/tests/cli.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2024 The Regents of the University of Michigan. +// Part of row, released under the BSD 3-Clause License. + use assert_cmd::Command; use assert_fs::prelude::*; use assert_fs::TempDir;