Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 497316c

Browse files
GDYendellAlexanderWells-diamondTom Willemsendependabot[bot]DominicOram
authored
Skeleton update (DiamondLightSource#16)
* Remove trailing spaces and rationalise newlines Some tools remove trailing whitespace by default on save, so may as well correct the originals. Ensures every file ends with an empty blank line. Again some tools do this automatically. * Use ruff as a linter as a replacement for flake8/isort * Bump docker/build-push-action from 3 to 5 Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 3 to 5. - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](docker/build-push-action@v3...v5) --- updated-dependencies: - dependency-name: docker/build-push-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Bump actions/checkout from 3 to 4 Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Bump docker/login-action from 2 to 3 Bumps [docker/login-action](https://github.com/docker/login-action) from 2 to 3. - [Release notes](https://github.com/docker/login-action/releases) - [Commits](docker/login-action@v2...v3) --- updated-dependencies: - dependency-name: docker/login-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Bump docker/metadata-action from 4 to 5 Bumps [docker/metadata-action](https://github.com/docker/metadata-action) from 4 to 5. - [Release notes](https://github.com/docker/metadata-action/releases) - [Upgrade guide](https://github.com/docker/metadata-action/blob/master/UPGRADE.md) - [Commits](docker/metadata-action@v4...v5) --- updated-dependencies: - dependency-name: docker/metadata-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Bump docker/setup-buildx-action from 2 to 3 Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 2 to 3. - [Release notes](https://github.com/docker/setup-buildx-action/releases) - [Commits](docker/setup-buildx-action@v2...v3) --- updated-dependencies: - dependency-name: docker/setup-buildx-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * (DiamondLightSource#153) Fix docs build by providing default arg --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: AlexWells <[email protected]> Co-authored-by: Tom Willemsen <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Dominic Oram <[email protected]>
1 parent f5dec71 commit 497316c

20 files changed

Lines changed: 102 additions & 99 deletions

File tree

.github/actions/install_requirements/action.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,3 @@ runs:
5555
fi
5656
fi
5757
shell: bash
58-

.github/pages/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
<link rel="canonical" href="main/index.html">
99
</head>
1010

11-
</html>
11+
</html>

.github/pages/make_switcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def get_versions(ref: str, add: Optional[str], remove: Optional[str]) -> List[st
5959
def write_json(path: Path, repository: str, versions: str):
6060
org, repo_name = repository.split("/")
6161
struct = [
62-
dict(version=version, url=f"https://{org}.github.io/{repo_name}/{version}/")
62+
{"version": version, "url": f"https://{org}.github.io/{repo_name}/{version}/"}
6363
for version in versions
6464
]
6565
text = json.dumps(struct, indent=2)

.github/workflows/code.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919

2020
- name: Install python packages
2121
uses: ./.github/actions/install_requirements
@@ -47,7 +47,7 @@ jobs:
4747

4848
steps:
4949
- name: Checkout
50-
uses: actions/checkout@v3
50+
uses: actions/checkout@v4
5151
with:
5252
# Need this to get version number from last tag
5353
fetch-depth: 0
@@ -77,7 +77,7 @@ jobs:
7777

7878
steps:
7979
- name: Checkout
80-
uses: actions/checkout@v3
80+
uses: actions/checkout@v4
8181
with:
8282
# Need this to get version number from last tag
8383
fetch-depth: 0
@@ -120,7 +120,7 @@ jobs:
120120

121121
steps:
122122
- name: Checkout
123-
uses: actions/checkout@v3
123+
uses: actions/checkout@v4
124124

125125
# image names must be all lower case
126126
- name: Generate image repo name
@@ -133,18 +133,18 @@ jobs:
133133

134134
- name: Log in to GitHub Docker Registry
135135
if: github.event_name != 'pull_request'
136-
uses: docker/login-action@v2
136+
uses: docker/login-action@v3
137137
with:
138138
registry: ghcr.io
139139
username: ${{ github.actor }}
140140
password: ${{ secrets.GITHUB_TOKEN }}
141141

142142
- name: Set up Docker Buildx
143143
id: buildx
144-
uses: docker/setup-buildx-action@v2
144+
uses: docker/setup-buildx-action@v3
145145

146146
- name: Build and export to Docker local cache
147-
uses: docker/build-push-action@v4
147+
uses: docker/build-push-action@v5
148148
with:
149149
# Note build-args, context, file, and target must all match between this
150150
# step and the later build-push-action, otherwise the second build-push-action
@@ -167,7 +167,7 @@ jobs:
167167

168168
- name: Create tags for publishing image
169169
id: meta
170-
uses: docker/metadata-action@v4
170+
uses: docker/metadata-action@v5
171171
with:
172172
images: ${{ env.IMAGE_REPOSITORY }}
173173
tags: |
@@ -179,8 +179,8 @@ jobs:
179179

180180
- name: Push cached image to container registry
181181
if: github.ref_type == 'tag' # || github.ref_name == 'main'
182-
uses: docker/build-push-action@v3
183-
# This does not build the image again, it will find the image in the
182+
uses: docker/build-push-action@v5
183+
# This does not build the image again, it will find the image in the
184184
# Docker cache and publish it
185185
with:
186186
# Note build-args, context, file, and target must all match between this

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
run: sleep 60
1616

1717
- name: Checkout
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919
with:
2020
# Need this to get version number from last tag
2121
fetch-depth: 0

.github/workflows/docs_clean.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
2222
with:
2323
ref: gh-pages
2424

.github/workflows/linkcheck.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616

1717
- name: Install python packages
1818
uses: ./.github/actions/install_requirements
@@ -24,4 +24,4 @@ jobs:
2424
run: tox -e docs build -- -b linkcheck
2525

2626
- name: Keepalive Workflow
27-
uses: gautamkrishnar/keepalive-workflow@v1
27+
uses: gautamkrishnar/keepalive-workflow@v1

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,5 @@ venv*
6868
# further build artifacts
6969
lockfiles/
7070

71+
# ruff cache
72+
.ruff_cache/

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ repos:
1515
entry: black --check --diff
1616
types: [python]
1717

18-
- id: flake8
19-
name: Run flake8
18+
- id: ruff
19+
name: Run ruff
2020
stages: [commit]
2121
language: system
22-
entry: flake8
22+
entry: ruff
2323
types: [python]

.vscode/extensions.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"ms-python.python",
55
"tamasfe.even-better-toml",
66
"redhat.vscode-yaml",
7-
"ryanluker.vscode-coverage-gutters"
7+
"ryanluker.vscode-coverage-gutters",
8+
"charliermarsh.Ruff"
89
]
9-
}
10+
}

0 commit comments

Comments
 (0)