Skip to content

Commit

Permalink
x: check license headers on python files
Browse files Browse the repository at this point in the history
  • Loading branch information
bmwill committed Dec 9, 2022
1 parent 4405c1d commit 3c08bfd
Show file tree
Hide file tree
Showing 22 changed files with 43 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions crates/workspace-hack/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,8 @@ multihash = { version = "0.16", default-features = false, features = ["alloc", "
mysten-network = { version = "0.1", default-features = false }
named-lock = { version = "0.2", default-features = false }
nested = { version = "0.1", default-features = false }
nexlint = { git = "https://github.com/nextest-rs/nexlint.git", rev = "8df9c4ea982e2be6b528e7b288a82d79d2d4bf20", default-features = false }
nexlint-lints = { git = "https://github.com/nextest-rs/nexlint.git", rev = "8df9c4ea982e2be6b528e7b288a82d79d2d4bf20", default-features = false }
nexlint = { git = "https://github.com/nextest-rs/nexlint.git", rev = "44615b3f56a7a72ccc4a1b4f4e696b9f44fc7e2e", default-features = false }
nexlint-lints = { git = "https://github.com/nextest-rs/nexlint.git", rev = "44615b3f56a7a72ccc4a1b4f4e696b9f44fc7e2e", default-features = false }
nibble_vec = { version = "0.1", default-features = false }
nom-cdf1610d3e1514e9 = { package = "nom", version = "5", features = ["alloc", "lexical", "lexical-core", "std"] }
nom-a490c3000a992113 = { package = "nom", version = "6", features = ["alloc", "bitvec", "funty", "lexical", "lexical-core", "std"] }
Expand Down Expand Up @@ -1041,8 +1041,8 @@ multimap = { version = "0.8", default-features = false }
mysten-network = { version = "0.1", default-features = false }
named-lock = { version = "0.2", default-features = false }
nested = { version = "0.1", default-features = false }
nexlint = { git = "https://github.com/nextest-rs/nexlint.git", rev = "8df9c4ea982e2be6b528e7b288a82d79d2d4bf20", default-features = false }
nexlint-lints = { git = "https://github.com/nextest-rs/nexlint.git", rev = "8df9c4ea982e2be6b528e7b288a82d79d2d4bf20", default-features = false }
nexlint = { git = "https://github.com/nextest-rs/nexlint.git", rev = "44615b3f56a7a72ccc4a1b4f4e696b9f44fc7e2e", default-features = false }
nexlint-lints = { git = "https://github.com/nextest-rs/nexlint.git", rev = "44615b3f56a7a72ccc4a1b4f4e696b9f44fc7e2e", default-features = false }
nibble_vec = { version = "0.1", default-features = false }
nom-cdf1610d3e1514e9 = { package = "nom", version = "5", features = ["alloc", "lexical", "lexical-core", "std"] }
nom-a490c3000a992113 = { package = "nom", version = "6", features = ["alloc", "bitvec", "funty", "lexical", "lexical-core", "std"] }
Expand Down
4 changes: 2 additions & 2 deletions crates/x/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ edition = "2021"

[dependencies]
anyhow = "1.0.64"
nexlint = { git = "https://github.com/nextest-rs/nexlint.git", rev = "8df9c4ea982e2be6b528e7b288a82d79d2d4bf20" }
nexlint-lints = { git = "https://github.com/nextest-rs/nexlint.git", rev = "8df9c4ea982e2be6b528e7b288a82d79d2d4bf20" }
nexlint = { git = "https://github.com/nextest-rs/nexlint.git", rev = "44615b3f56a7a72ccc4a1b4f4e696b9f44fc7e2e" }
nexlint-lints = { git = "https://github.com/nextest-rs/nexlint.git", rev = "44615b3f56a7a72ccc4a1b4f4e696b9f44fc7e2e" }
clap = { version = "3.2.17", features = ["derive"] }
2 changes: 2 additions & 0 deletions narwhal/Docker/scripts/gen.committee.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env python3
# Copyright (c) Mysten Labs, Inc.
# SPDX-License-Identifier: Apache-2.0
"""Generate a committee.json file
"""

Expand Down
2 changes: 2 additions & 0 deletions narwhal/Docker/scripts/gen.compose.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env python3
# Copyright (c) Mysten Labs, Inc.
# SPDX-License-Identifier: Apache-2.0
"""Create a docker-compose.yaml file to stdout for --num # of nodes
"""

Expand Down
2 changes: 2 additions & 0 deletions narwhal/Docker/scripts/gen.workers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env python3
# Copyright (c) Mysten Labs, Inc.
# SPDX-License-Identifier: Apache-2.0
"""Generate a workers.json file
"""

Expand Down
2 changes: 2 additions & 0 deletions narwhal/benchmark/benchmark/aggregate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright(C) Facebook, Inc. and its affiliates.
# Copyright (c) Mysten Labs, Inc.
# SPDX-License-Identifier: Apache-2.0
from re import search
from collections import defaultdict
from statistics import mean, stdev
Expand Down
2 changes: 2 additions & 0 deletions narwhal/benchmark/benchmark/commands.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright(C) Facebook, Inc. and its affiliates.
# Copyright (c) Mysten Labs, Inc.
# SPDX-License-Identifier: Apache-2.0
from os.path import join

from benchmark.utils import PathMaker
Expand Down
2 changes: 2 additions & 0 deletions narwhal/benchmark/benchmark/config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright(C) Facebook, Inc. and its affiliates.
# Copyright (c) Mysten Labs, Inc.
# SPDX-License-Identifier: Apache-2.0
from json import dump, load
from collections import OrderedDict
from benchmark.utils import multiaddr_to_url_data
Expand Down
2 changes: 2 additions & 0 deletions narwhal/benchmark/benchmark/instance.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright(C) Facebook, Inc. and its affiliates.
# Copyright (c) Mysten Labs, Inc.
# SPDX-License-Identifier: Apache-2.0
import boto3
from botocore.exceptions import ClientError
from collections import defaultdict, OrderedDict
Expand Down
2 changes: 2 additions & 0 deletions narwhal/benchmark/benchmark/local.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright(C) Facebook, Inc. and its affiliates.
# Copyright (c) Mysten Labs, Inc.
# SPDX-License-Identifier: Apache-2.0
import subprocess
from math import ceil
from os.path import basename, splitext
Expand Down
2 changes: 2 additions & 0 deletions narwhal/benchmark/benchmark/logs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright(C) Facebook, Inc. and its affiliates.
# Copyright (c) Mysten Labs, Inc.
# SPDX-License-Identifier: Apache-2.0
from datetime import datetime
from dateutil import parser
from glob import glob
Expand Down
2 changes: 2 additions & 0 deletions narwhal/benchmark/benchmark/plot.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright(C) Facebook, Inc. and its affiliates.
# Copyright (c) Mysten Labs, Inc.
# SPDX-License-Identifier: Apache-2.0
from re import findall, search, split
import matplotlib.pyplot as plt
import matplotlib.ticker as tick
Expand Down
2 changes: 2 additions & 0 deletions narwhal/benchmark/benchmark/remote.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright(C) Facebook, Inc. and its affiliates.
# Copyright (c) Mysten Labs, Inc.
# SPDX-License-Identifier: Apache-2.0
from collections import OrderedDict
from fabric import Connection, ThreadingGroup as Group
from fabric.exceptions import GroupException
Expand Down
1 change: 1 addition & 0 deletions narwhal/benchmark/benchmark/seed.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Copyright (c) Mysten Labs, Inc.
# SPDX-License-Identifier: Apache-2.0
import subprocess
from math import ceil
from os.path import basename, splitext
Expand Down
2 changes: 2 additions & 0 deletions narwhal/benchmark/benchmark/settings.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright(C) Facebook, Inc. and its affiliates.
# Copyright (c) Mysten Labs, Inc.
# SPDX-License-Identifier: Apache-2.0
from json import load, JSONDecodeError


Expand Down
1 change: 1 addition & 0 deletions narwhal/benchmark/benchmark/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright (c) 2021, Facebook, Inc. and its affiliates.
# Copyright (c) Mysten Labs, Inc.
# SPDX-License-Identifier: Apache-2.0
import multiaddr
from multiaddr.protocols import (
P_DNS, P_DNS4, P_DNS6, P_HTTP, P_HTTPS, P_IP4, P_IP6, P_TCP, P_UDP)
Expand Down
2 changes: 2 additions & 0 deletions narwhal/benchmark/data/paper-data/plot-script.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright(C) Facebook, Inc. and its affiliates.
# Copyright (c) Mysten Labs, Inc.
# SPDX-License-Identifier: Apache-2.0

# This script produces the plot used in the paper [Narwhal and Tusk: A DAG-based
# Mempool and Efficient BFT Consensus](https://arxiv.org/abs/2105.11827). Its
Expand Down
2 changes: 2 additions & 0 deletions narwhal/benchmark/data/paper-data/summary-plot.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) Mysten Labs, Inc.
# SPDX-License-Identifier: Apache-2.0
import matplotlib.pyplot as plt
import matplotlib.ticker as ticker

Expand Down
2 changes: 2 additions & 0 deletions narwhal/benchmark/fabfile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright(C) Facebook, Inc. and its affiliates.
# Copyright (c) Mysten Labs, Inc.
# SPDX-License-Identifier: Apache-2.0
from fabric import task

from benchmark.seed import SeedData
Expand Down
2 changes: 2 additions & 0 deletions scripts/bench_sweep.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) Mysten Labs, Inc.
# SPDX-License-Identifier: Apache-2.0
from time import sleep
import matplotlib.pyplot as plt
import subprocess
Expand Down
2 changes: 1 addition & 1 deletion scripts/dependency.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) Mysten Labs
# Copyright (c) Mysten Labs, Inc.
# SPDX-License-Identifier: Apache-2.0

import argparse
Expand Down

0 comments on commit 3c08bfd

Please sign in to comment.