devobs 0.2.9__tar.gz → 0.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {devobs-0.2.9 → devobs-0.3.1}/.github/workflows/ci.yaml +10 -33
- {devobs-0.2.9 → devobs-0.3.1}/.github/workflows/prepare-release.yaml +1 -1
- {devobs-0.2.9 → devobs-0.3.1}/.github/workflows/release.yaml +18 -5
- {devobs-0.2.9 → devobs-0.3.1}/.pre-commit-config.yaml +1 -1
- {devobs-0.2.9 → devobs-0.3.1}/.pre-commit-hooks.yaml +3 -3
- {devobs-0.2.9 → devobs-0.3.1}/.vscode.example/settings.json +0 -1
- {devobs-0.2.9 → devobs-0.3.1}/CONTRIBUTING.md +0 -1
- {devobs-0.2.9 → devobs-0.3.1}/Cargo.lock +319 -415
- devobs-0.3.1/Cargo.toml +29 -0
- {devobs-0.2.9 → devobs-0.3.1}/Justfile +2 -7
- {devobs-0.2.9 → devobs-0.3.1}/PKG-INFO +1 -1
- {devobs-0.2.9 → devobs-0.3.1}/flake.lock +6 -6
- {devobs-0.2.9 → devobs-0.3.1}/tests/helpers.rs +7 -1
- {devobs-0.2.9 → devobs-0.3.1}/tests/integration_test.rs +0 -1
- devobs-0.2.9/Cargo.toml +0 -29
- {devobs-0.2.9 → devobs-0.3.1}/.config/nextest.toml +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/.devcontainer.example/devcontainer-lock.json +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/.devcontainer.example/devcontainer.json +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/.editorconfig +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/.gitignore +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/.rustfmt.toml +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/.vscode.example/extensions.json +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/.vscode.example/launch.json +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/LICENSE +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/README.md +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/flake.nix +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/pyproject.toml +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/renovate.json +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/rust-toolchain.toml +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/src/commands/assert_diff.rs +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/src/commands/check_file_pair.rs +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/src/commands.rs +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/src/main.rs +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/src/utils/fs.rs +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/src/utils.rs +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/tests/commands/mod.rs +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/tests/commands/snapshots/integration_test__commands__test_assert_diff__changes_create-2.snap +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/tests/commands/snapshots/integration_test__commands__test_assert_diff__changes_create.snap +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/tests/commands/snapshots/integration_test__commands__test_assert_diff__changes_delete-2.snap +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/tests/commands/snapshots/integration_test__commands__test_assert_diff__changes_delete.snap +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/tests/commands/snapshots/integration_test__commands__test_assert_diff__changes_modify-2.snap +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/tests/commands/snapshots/integration_test__commands__test_assert_diff__changes_modify.snap +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/tests/commands/snapshots/integration_test__commands__test_assert_diff__empty_directory.snap +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/tests/commands/snapshots/integration_test__commands__test_assert_diff__no_changes.snap +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/tests/commands/snapshots/integration_test__commands__test_assert_diff__no_command_to_run.snap +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/tests/commands/snapshots/integration_test__commands__test_assert_diff__nonexistent_directory.snap +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/tests/commands/snapshots/integration_test__commands__test_assert_diff__on_command_error_ignore.snap +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/tests/commands/snapshots/integration_test__commands__test_assert_diff__on_command_error_propagate.snap +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/tests/commands/snapshots/integration_test__commands__test_check_file_pair__backward_matching.snap +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/tests/commands/snapshots/integration_test__commands__test_check_file_pair__create_if_not_exists.snap +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/tests/commands/snapshots/integration_test__commands__test_check_file_pair__create_if_not_exists_dry_run.snap +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/tests/commands/snapshots/integration_test__commands__test_check_file_pair__empty_directory_no_error_no_output.snap +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/tests/commands/snapshots/integration_test__commands__test_check_file_pair__forward_matching.snap +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/tests/commands/snapshots/integration_test__commands__test_check_file_pair__on_fully_populated_directory.snap +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/tests/commands/test_assert_diff.rs +0 -0
- {devobs-0.2.9 → devobs-0.3.1}/tests/commands/test_check_file_pair.rs +0 -0
|
@@ -33,43 +33,19 @@ jobs:
|
|
|
33
33
|
- name: Lint code
|
|
34
34
|
run: cargo clippy --all-targets --all-features -- --deny warnings
|
|
35
35
|
|
|
36
|
-
ub-check:
|
|
37
|
-
name: UB Check
|
|
38
|
-
runs-on: ubuntu-latest
|
|
39
|
-
timeout-minutes: 15
|
|
40
|
-
permissions:
|
|
41
|
-
contents: read
|
|
42
|
-
steps:
|
|
43
|
-
- name: Checkout
|
|
44
|
-
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
45
|
-
|
|
46
|
-
- name: Set up Rust toolchain
|
|
47
|
-
uses: actions-rust-lang/setup-rust-toolchain@ecabd13d1c56bd1345c230e542e9144811ad706f # v2.0.0
|
|
48
|
-
with:
|
|
49
|
-
build-warnings: ""
|
|
50
|
-
|
|
51
|
-
- name: Install nightly toolchain
|
|
52
|
-
run: rustup toolchain install nightly --profile minimal --component miri
|
|
53
|
-
|
|
54
|
-
- name: Install devtools
|
|
55
|
-
uses: taiki-e/install-action@ab6895351a88b908e96a4697860d4ffea5e57dbe # v2.87.27
|
|
56
|
-
with:
|
|
57
|
-
tool: cargo-nextest
|
|
58
|
-
|
|
59
|
-
- name: Run tests with Miri
|
|
60
|
-
env:
|
|
61
|
-
MIRIFLAGS: '-Zmiri-disable-isolation'
|
|
62
|
-
run: |
|
|
63
|
-
rustup run nightly cargo miri \
|
|
64
|
-
nextest run --workspace --all-targets --all-features
|
|
65
|
-
|
|
66
36
|
test:
|
|
67
|
-
name: Test
|
|
68
|
-
runs-on:
|
|
37
|
+
name: Test (${{ matrix.os }})
|
|
38
|
+
runs-on: ${{ matrix.os }}
|
|
69
39
|
timeout-minutes: 15
|
|
70
40
|
permissions:
|
|
71
41
|
contents: read
|
|
72
42
|
id-token: write
|
|
43
|
+
strategy:
|
|
44
|
+
matrix:
|
|
45
|
+
os:
|
|
46
|
+
- ubuntu-latest
|
|
47
|
+
- macos-latest
|
|
48
|
+
- windows-latest
|
|
73
49
|
steps:
|
|
74
50
|
- name: Checkout
|
|
75
51
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
@@ -78,11 +54,12 @@ jobs:
|
|
|
78
54
|
uses: actions-rust-lang/setup-rust-toolchain@ecabd13d1c56bd1345c230e542e9144811ad706f # v2.0.0
|
|
79
55
|
|
|
80
56
|
- name: Install devtools
|
|
81
|
-
uses: taiki-e/install-action@
|
|
57
|
+
uses: taiki-e/install-action@8cca0918f8471c33515202b73f56ab27f2bed283 # v2.87.29
|
|
82
58
|
with:
|
|
83
59
|
tool: cargo-llvm-cov,cargo-nextest
|
|
84
60
|
|
|
85
61
|
- name: Run tests
|
|
62
|
+
shell: bash # Ensure Windows compatibility (Git Bash on Windows)
|
|
86
63
|
run: |
|
|
87
64
|
cargo llvm-cov nextest --workspace --all-targets --all-features --lcov --output-path lcov.info
|
|
88
65
|
cargo llvm-cov report --summary-only
|
|
@@ -47,7 +47,7 @@ jobs:
|
|
|
47
47
|
sed --in-place "s/'devobs==.*'/'devobs==$tag_no_v'/" .pre-commit-hooks.yaml
|
|
48
48
|
|
|
49
49
|
- name: Generate GitHub App token
|
|
50
|
-
uses: actions/create-github-app-token@
|
|
50
|
+
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
|
|
51
51
|
id: generate-token
|
|
52
52
|
with:
|
|
53
53
|
client-id: ${{ vars.GH_APP_ID }}
|
|
@@ -4,13 +4,16 @@ on:
|
|
|
4
4
|
release:
|
|
5
5
|
types: [published]
|
|
6
6
|
|
|
7
|
+
# Dry-run (don't actually release) trigger for manual execution
|
|
8
|
+
workflow_dispatch: {}
|
|
9
|
+
|
|
7
10
|
concurrency:
|
|
8
11
|
group: ${{ github.workflow }}
|
|
9
12
|
cancel-in-progress: false
|
|
10
13
|
|
|
11
14
|
jobs:
|
|
12
15
|
build:
|
|
13
|
-
name: Build (${{ matrix.target }})
|
|
16
|
+
name: Build (${{ matrix.platform }}-${{ matrix.target }})
|
|
14
17
|
runs-on: ${{ matrix.platform }}
|
|
15
18
|
timeout-minutes: 15
|
|
16
19
|
permissions:
|
|
@@ -20,7 +23,16 @@ jobs:
|
|
|
20
23
|
matrix:
|
|
21
24
|
include:
|
|
22
25
|
- platform: ubuntu-latest
|
|
23
|
-
target: x86_64
|
|
26
|
+
target: x86_64 # x86_64-unknown-linux-gnu
|
|
27
|
+
- platform: ubuntu-26.04-arm
|
|
28
|
+
target: aarch64 # aarch64-unknown-linux-gnu
|
|
29
|
+
- platform: macos-latest
|
|
30
|
+
target: aarch64 # aarch64-apple-darwin
|
|
31
|
+
# We do not, and will not, support x86_64 on macOS
|
|
32
|
+
- platform: windows-latest
|
|
33
|
+
target: x86_64 # x86_64-pc-windows-msvc
|
|
34
|
+
- platform: windows-11-arm
|
|
35
|
+
target: aarch64 # aarch64-pc-windows-msvc
|
|
24
36
|
steps:
|
|
25
37
|
- name: Checkout
|
|
26
38
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
@@ -34,7 +46,7 @@ jobs:
|
|
|
34
46
|
- name: Upload wheels as artifact
|
|
35
47
|
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
36
48
|
with:
|
|
37
|
-
name: dist-${{ matrix.target }}
|
|
49
|
+
name: dist-${{ matrix.platform }}-${{ matrix.target }}
|
|
38
50
|
path: dist
|
|
39
51
|
|
|
40
52
|
sdist:
|
|
@@ -61,6 +73,7 @@ jobs:
|
|
|
61
73
|
|
|
62
74
|
release:
|
|
63
75
|
name: Release
|
|
76
|
+
if: github.event_name == 'release' && github.event.action == 'published'
|
|
64
77
|
needs: [build, sdist]
|
|
65
78
|
runs-on: ubuntu-latest
|
|
66
79
|
timeout-minutes: 5
|
|
@@ -82,7 +95,7 @@ jobs:
|
|
|
82
95
|
generate_release_notes: false
|
|
83
96
|
files: |
|
|
84
97
|
dist/sdist/devobs-*.tar.gz
|
|
85
|
-
dist/dist
|
|
98
|
+
dist/dist-*-*/devobs-*.whl
|
|
86
99
|
|
|
87
100
|
publish-pypi:
|
|
88
101
|
name: Publish to PyPI
|
|
@@ -103,6 +116,6 @@ jobs:
|
|
|
103
116
|
run: ls -l --all --recursive dist
|
|
104
117
|
|
|
105
118
|
- name: Publish release distributions to PyPI
|
|
106
|
-
uses: pypa/gh-action-pypi-publish@
|
|
119
|
+
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
|
|
107
120
|
with:
|
|
108
121
|
skip-existing: true
|
|
@@ -6,17 +6,17 @@
|
|
|
6
6
|
name: devobs
|
|
7
7
|
description: Run devobs commands using pipx
|
|
8
8
|
language: system
|
|
9
|
-
entry: pipx run 'devobs==0.
|
|
9
|
+
entry: pipx run 'devobs==0.3.1'
|
|
10
10
|
|
|
11
11
|
# Shortcuts for each command for convenience
|
|
12
12
|
- id: check-file-pair
|
|
13
13
|
name: check-file-pair
|
|
14
14
|
language: system
|
|
15
|
-
entry: pipx run 'devobs==0.
|
|
15
|
+
entry: pipx run 'devobs==0.3.1' check-file-pair
|
|
16
16
|
pass_filenames: false
|
|
17
17
|
|
|
18
18
|
- id: assert-diff
|
|
19
19
|
name: assert-diff
|
|
20
20
|
language: system
|
|
21
|
-
entry: pipx run 'devobs==0.
|
|
21
|
+
entry: pipx run 'devobs==0.3.1' assert-diff
|
|
22
22
|
pass_filenames: false
|
|
@@ -17,7 +17,6 @@ This project uses the following tech stack:
|
|
|
17
17
|
- [Rust](https://www.rust-lang.org)
|
|
18
18
|
- [clap](https://docs.rs/clap/latest/clap/) for command-line parsing
|
|
19
19
|
- [Clippy](https://doc.rust-lang.org/clippy/) for linting, and [rustfmt](https://github.com/rust-lang/rustfmt) for formatting
|
|
20
|
-
- [Miri](https://github.com/rust-lang/miri) for undefined behavior checks
|
|
21
20
|
- [cargo-nextest](https://nexte.st/) for test coverage and execution
|
|
22
21
|
|
|
23
22
|
### 📂 Key directory structure
|