Skip to content

Commit f7dd3ad

Browse files
authored
chore: cleanup container and linting (#263)
## Changes * Refresh container environment with actively-supported Dev Container features. * Refresh linting configuration. * Apply listing configuration with fixes. --- Reviewer: @cadojo
1 parent 93d32ce commit f7dd3ad

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+376
-377
lines changed

.devcontainer/devcontainer.json

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,33 @@
11
{
2-
"name": "GeneralAstrodynamics",
3-
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
4-
"features": {
5-
"ghcr.io/devcontainers/features/git": {},
6-
"ghcr.io/devcontainers/features/git-lfs": {},
7-
"ghcr.io/julialang/devcontainer-features/julia:1": {},
8-
"ghcr.io/devcontainers/features/github-cli": {},
9-
"ghcr.io/devcontainers-contrib/features/starship": {},
10-
"ghcr.io/rocker-org/devcontainer-features/quarto-cli:1": {},
11-
"ghcr.io/devcontainers/features/python:1": {"installJupyterlab": true}
2+
"name": "general-astrodynamics",
3+
"image": "mcr.microsoft.com/devcontainers/base:bookworm",
4+
"containerEnv": {
5+
"SHELL": "/bin/bash"
126
},
13-
"postCreateCommand": {
14-
"initialize starship": "echo 'eval $(starship init bash)' >> ~/.bashrc"
7+
"remoteEnv": {
8+
"JULIA_DEPOT_PATH": "/home/vscode/.julia"
159
},
16-
"customizations": {
17-
"vscode": {
18-
"extensions": [
19-
"GitHub.codespaces",
20-
"github.vscode-github-actions",
21-
"julialang.language-julia",
22-
"ms-toolsai.jupyter",
23-
"streetsidesoftware.code-spell-checker"
24-
]
10+
"features": {
11+
"ghcr.io/devcontainers/features/python:1": {
12+
"installTools": true,
13+
"enableShared": true,
14+
"installJupyterlab": true,
15+
"version": "3.12"
16+
},
17+
"ghcr.io/rocker-org/devcontainer-features/quarto-cli:1": {},
18+
"ghcr.io/julialang/devcontainer-features/julia:1": {},
19+
"ghcr.io/devcontainer-community/devcontainer-features/starship.rs:1": {},
20+
"ghcr.io/devcontainers/features/git:1": {},
21+
"ghcr.io/devcontainers/features/git-lfs:1": {},
22+
"ghcr.io/devcontainers-extra/features/pre-commit:2": {},
23+
"ghcr.io/devcontainers/features/github-cli:1": {},
24+
"ghcr.io/rocker-org/devcontainer-features/apt-packages:1": {
25+
"packages": "jq"
2526
}
27+
},
28+
"onCreateCommand": {
29+
"initialize starship": "echo eval '$(starship init bash)' >> ~/.bashrc",
30+
"configure starship": "starship preset no-runtime-versions -o ~/.config/starship.toml",
31+
"initialize pre-commit": "pre-commit install --install-hooks"
2632
}
27-
}
33+
}

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
paper/notebooks/*.ipynb filter=lfs diff=lfs merge=lfs -text
2-
*.ipynb linguist-vendored
2+
*.ipynb linguist-vendored

.github/ISSUE_TEMPLATE/enhancement.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ assignees: cadojo
77

88
---
99

10-
## Feature
11-
10+
## Feature

.github/ISSUE_TEMPLATE/question.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ assignees: cadojo
88
---
99

1010
## Question
11-

.github/workflows/Tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
project: lib/${{ matrix.group }}
5353
- uses: julia-actions/julia-processcoverage@v1
5454
with:
55-
directories: lib/${{ matrix.group }}/src
55+
directories: lib/${{ matrix.group }}/src,lib/${{ matrix.group }}/test
5656
- uses: codecov/codecov-action@v5
5757
with:
5858
files: lcov.info
@@ -87,7 +87,7 @@ jobs:
8787
GROUP: "GeneralAstrodynamics"
8888
- uses: julia-actions/julia-processcoverage@v1
8989
with:
90-
directories: src
90+
directories: src,test
9191
- uses: codecov/codecov-action@v5
9292
with:
9393
files: lcov.info

.pre-commit-config.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
exclude: '(^|/)pyproject\.toml$|(^|/)Project\.toml$|(^|/)Manifest\.toml$|^_extensions/|^_freeze/'
2+
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v5.0.0
6+
hooks:
7+
- id: trailing-whitespace
8+
- id: end-of-file-fixer
9+
- id: check-yaml
10+
- id: check-added-large-files
11+
- id: check-executables-have-shebangs
12+
- id: check-symlinks
13+
- repo: https://github.com/crate-ci/typos
14+
rev: v1.33.1
15+
hooks:
16+
- id: typos
17+
args: ["--config", ".typos.toml", "--write-changes"]

.typos.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[default.extend-words]
2+
Cloudfare = "Cloudfare"

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
22
"quarto.visualEditor.markdownWrap": "sentence"
3-
}
3+
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ orbit, T = let
6363
end
6464

6565
trajectory = propagate(orbit, T)
66-
```
66+
```

docs/src/.quarto/_freeze/api/index/execute-results/html.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)