Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Apr 16, 2024
1 parent 527ad6c commit 0e81355
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cpp.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copied from https://github.com/rerun-io/rerun_template
on: [push, pull_request]

name: C++
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/labels.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copied from https://github.com/rerun-io/rerun_template

# https://github.com/marketplace/actions/require-labels
# Check for existence of labels
# See all our labels at https://github.com/rerun-io/rerun/issues/labels
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/links.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copied from https://github.com/rerun-io/rerun_template
on: [push, pull_request]

name: Link checker
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/typos.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copied from https://github.com/rerun-io/rerun_template

# https://github.com/crate-ci/typos
# Add exceptions to `.typos.toml`
# install and run locally: cargo install typos-cli && typos
Expand Down
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
# C++ build directory
build

# Rust compile target directory:
**/target
**/target_ra
**/target_wasm
# Rust compile target directories:
target
target_ra
target_wasm

# https://github.com/lycheeverse/lychee
.lycheecache
Expand Down
2 changes: 1 addition & 1 deletion LICENSE-MIT
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2022 Rerun Technologies AB <[email protected]>
Copyright (c) 2024 Rerun Technologies AB <[email protected]>

Permission is hereby granted, free of charge, to any
person obtaining a copy of this software and associated
Expand Down
2 changes: 2 additions & 0 deletions lychee.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copied from https://github.com/rerun-io/rerun_template

################################################################################
# Config for the link checker lychee.
#
Expand Down
9 changes: 5 additions & 4 deletions scripts/template_update.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
#!/usr/bin/env python3
# Copied from https://github.com/rerun-io/rerun_template

"""
The script has two purposes.
After using `rerun_template` as a template, run this to clean out things you don't need.
Use `scripts/setup_template.py init --languages cpp,rust,python` for this.
Use `scripts/template_update.py init --languages cpp,rust,python` for this.
Update an existing repository with the latest changes from the template.
Use `scripts/setup_template.py update --languages cpp,rust,python` for this.
Use `scripts/template_update.py update --languages cpp,rust,python` for this.
In either case, make sure the list of languages matches the languages you want to support.
You can also use `--dry-run` to see what would happen without actually changing anything.
Expand Down Expand Up @@ -45,7 +46,6 @@

# Files requires by Rust, but not by both C++ or Python
RUST_FILES = {
".clang-format",
".github/workflows/rust.yml",
"bacon.toml",
"Cargo.lock",
Expand Down Expand Up @@ -117,7 +117,8 @@ def update(languages: Set[str], dry_run: bool) -> None:
continue
if rel_path.startswith("src/"):
continue
if rel_path == "README.md":

if rel_path in {"README.md", "pixi.lock", "Cargo.lock"}:
continue

if rel_path not in files_to_ignore:
Expand Down

0 comments on commit 0e81355

Please sign in to comment.