Skip to content

Commit

Permalink
Add license headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaander committed May 9, 2024
1 parent 0222254 commit 6bb2793
Show file tree
Hide file tree
Showing 27 changed files with 79 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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=//
3 changes: 3 additions & 0 deletions src/builtin.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down
3 changes: 3 additions & 0 deletions src/cli.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 3 additions & 0 deletions src/cli/clean.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 3 additions & 0 deletions src/cli/cluster.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 3 additions & 0 deletions src/cli/directories.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down
3 changes: 3 additions & 0 deletions src/cli/init.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 3 additions & 0 deletions src/cli/launchers.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 3 additions & 0 deletions src/cli/scan.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 3 additions & 0 deletions src/cli/status.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 3 additions & 0 deletions src/cli/submit.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 3 additions & 0 deletions src/cluster.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 3 additions & 0 deletions src/expr.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 3 additions & 0 deletions src/format.rs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
3 changes: 3 additions & 0 deletions src/launcher.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -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)]
Expand Down
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 3 additions & 0 deletions src/progress_styles.rs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
3 changes: 3 additions & 0 deletions src/project.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 3 additions & 0 deletions src/scheduler.rs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
3 changes: 3 additions & 0 deletions src/scheduler/bash.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 3 additions & 0 deletions src/scheduler/slurm.rs
Original file line number Diff line number Diff line change
@@ -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 _;
Expand Down
3 changes: 3 additions & 0 deletions src/state.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down
3 changes: 3 additions & 0 deletions src/ui.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 3 additions & 0 deletions src/workflow.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down
3 changes: 3 additions & 0 deletions src/workspace.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 3 additions & 0 deletions tests/cli.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 6bb2793

Please sign in to comment.