Skip to content

Separate the installation of pre-commit to -f|--format case - #28

Merged
Mayankm96 merged 3 commits into
isaac-sim:mainfrom
AndrejOrsula:fix_precommit_installation
Mar 2, 2023
Merged

Mayankm96 merged 3 commits into
isaac-sim:mainfrom
AndrejOrsula:fix_precommit_installation

Conversation

@AndrejOrsula

Copy link
Copy Markdown
Contributor

Description

This PR separates the installation of pre-commit from the main installation via orbit.sh -i|--install into the already existing -f|--format case.

This means that end-users are no longer required to install pre-commit when using the included orbit.sh -i|--install option, which should simplify the Dockerfile layers (#17).

With this PR, pre-commit is automatically installed with orbit.sh -f|--format option if its command is not detected on the system. Furthermore, this PR makes sure that pre-commit run is always executed in the correct directory regardless of ${PWD} when calling orbit.sh -f|--format . Contributors are already informed to run pre-commit via the PR checklist found in the template (as seen below).

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have run the pre-commit checks with pre-commit run --all-files (see here instructions to set it up)
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the changelog and the corresponding version in the extension's config/extension.toml file

Comment thread orbit.sh Resolved
@AndrejOrsula

Copy link
Copy Markdown
Contributor Author

We should probably make doc changes at the following places to only use the bash utilities instead of pre-commit. What do you think?

I added instructions to use ./orbit.sh --format instead of pre-commit run --all-files in those three files. I don't know if there's a better way of formatting it (I think that ./orbit.sh --format is more informative than ./orbit.sh -f).
In one of the files, I also removed a link to the installation instructions of pre-commit as it is done automatically via ./orbit.sh -f|--format now.

Please, review this change (ceaf2a0).

@Mayankm96

Copy link
Copy Markdown
Contributor

Yeah, I agree. The flag --format is more explicit for users.

I slowly want to make the dependency on being on top of the repo to run orbit.sh a bit obsolete. The solution to add this script to the ~/.bashrc is alright but I think it doesn't scale well when one has multiple clones of the repo.

Anyway, that's for another discussion. I'll merge and close this one for now. Thanks a lot!

@Mayankm96
Mayankm96 merged commit 9eb7810 into isaac-sim:main Mar 2, 2023
@AndrejOrsula AndrejOrsula mentioned this pull request Mar 2, 2023
5 tasks
Batou1406 added a commit to iit-DLSLab/dls_orbit that referenced this pull request Jul 8, 2024
Merge 'sampler' branch into main
LJones-alt pushed a commit to LJones-alt/IsaacLab-Laura that referenced this pull request Jul 1, 2026
….sh (isaac-sim#28)

* Separate install of `pre-commit` to `-f|--format` case
* Always execute `pre-commit` inside the Orbit directory
* Instruct contributors to run `pre-commit` with `./orbit.sh --format`

---------

Signed-off-by: Andrej Orsula <[email protected]>
RLRK-dev added a commit to RLRK-dev/IsaacLab that referenced this pull request Jul 20, 2026
… cycle-2 v4

The cycle-2 debate closed and DESIGN v4 is banked in f00c02e, sha256
recomputed here across all 64 characters. It adds a fourth golden
fixture and hardens the builder with conformance across all fourteen
types, sixteen of sixteen negative controls and a non-destructive
--verify mode. The debate has reached its two-cycle maximum; pS
re-passes next, then pN's exact-pin re-verify.

The important part is the register. Cycle-2's CC5 found that four
carries existed only in prose, so the next chunk's [DEFER-RECON] would
have had nothing to match against and would have passed straight
through. They are now rows in the register with their gates named:
isaac-sim#27 the B1 locator, blocked pending Rs since frozen ArtifactSlot has no
ref and the locator exists only at rank 3, not in SHADOW rank 2, with
options A/A'/B before Rs; isaac-sim#28 U-2 producer artifact prevention; isaac-sim#29 the
U-5 demo migration, where 198 demos do not bind and need re-recording
after the kinematic deletion; isaac-sim#30 the U-6 topology ledger binding, which
carries a warning that detection is all it buys - the §5D hole stays
open until the contract layer closes it, and that is a schema delta
needing Rs review.

Also folds pN's c38: N1 closes, c37's C1-C4 closure is complete, and
step 2 remains the only thing open.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants