Skip to content

Commit c25d54b

Browse files
committed
Switch from pre-commit.ci to autofix.ci + dprint, update shared configs
1 parent 1d2a2c0 commit c25d54b

File tree

11 files changed

+212
-124
lines changed

11 files changed

+212
-124
lines changed

.dprint.jsonc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
// https://dprint.dev/config/#extending-a-different-configuration-file
3+
"extends": "https://raw.githubusercontent.com/BesLogic/shared-configs/main/.dprint.jsonc",
4+
}

.github/ISSUE_TEMPLATE/bug-or-crash-report.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ about: Create a report to help us improve
44
title: ''
55
labels: bug
66
assignees: ''
7-
87
---
98

109
### Describe the bug
10+
1111
<!-- A clear and concise description of what the bug is. -->
1212

1313
### To Reproduce
@@ -20,18 +20,20 @@ Steps to reproduce the behavior:
2020
4. See error
2121

2222
### Expected behavior
23+
2324
<!-- A clear and concise description of what you expected to happen. -->
2425

2526
### Screenshots and recordings
27+
2628
<!-- If applicable, add screenshots and/or recordings to help explain your problem. -->
2729

2830
### Traceback or Crash Report
2931

3032
If AutoSplit showed an exception traceback, please paste it here:
3133

3234
```py
33-
3435
```
36+
3537
<!-- If AutoSplit crashed and closed without saying anything, please check Windows' Event Viewer, under Windows Logs > Application, for any recent error relating to AutoSplit -->
3638

3739
### Version (please complete the following information)
@@ -40,7 +42,9 @@ If AutoSplit showed an exception traceback, please paste it here:
4042
- AutoSplit: [e.g. v2.0.0]
4143

4244
### AutoSplit Profile and Split Images
45+
4346
<!-- Please include your AutoSplit profile `.toml` file. You can also add your Split Images if relevant. -->
4447

4548
### Additional context
49+
4650
<!-- Add any other context about the problem here. -->

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,21 @@ about: Suggest an idea or improvement
44
title: ''
55
labels: enhancement
66
assignees: ''
7-
87
---
98

109
### Is your feature request related to a problem? Please describe
10+
1111
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
1212

1313
### Describe the solution you'd like
14+
1415
<!-- A clear and concise description of what you want to happen. -->
1516

1617
### Describe alternatives you've considered
18+
1719
<!-- A clear and concise description of any alternative solutions or features you've considered. -->
1820

1921
### Additional context
22+
2023
<!-- Add any other context or screenshots about the feature request here. -->
2124
<!-- Please include an AutoSplit profile `.toml` file and/or Split Images if relevant. -->

.github/workflows/autofix.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# https://autofix.ci/setup#getting-started
2+
name: autofix.ci # needed to securely identify the workflow
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
autofix:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- uses: astral-sh/ruff-action@v3
17+
with:
18+
version-file: "pyproject.toml"
19+
args: "check --fix"
20+
- run: ruff format
21+
# Format even if the the previous step failed
22+
if: ${{ !cancelled() }}
23+
24+
- run: npx dprint fmt
25+
# Format even if the the previous step failed
26+
if: ${{ !cancelled() }}
27+
28+
- uses: autofix-ci/action@551dded8c6cc8a1054039c8bc0b8b48c51dfc6ef

.github/workflows/lint-and-build.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,6 @@ concurrency:
3636
cancel-in-progress: true
3737

3838
jobs:
39-
Ruff:
40-
runs-on: ubuntu-22.04
41-
steps:
42-
- uses: actions/checkout@v4
43-
- uses: astral-sh/ruff-action@v3
44-
with:
45-
version-file: "pyproject.toml"
46-
- run: ruff format --check --diff
47-
# Show formatting issues even if the "check" step failed
48-
if: ${{ !cancelled() }}
49-
5039
Pyright:
5140
runs-on: ${{ matrix.os }}
5241
strategy:

.pre-commit-config.yaml

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

.vscode/extensions.json

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,39 @@
1-
// Keep in alphabetical order
1+
// SPDX-License-Identifier: MIT
2+
// Copyright 2024 Beslogic Inc.
3+
4+
// The source skeleton for this configuration can be found at
5+
// https://github.com/BesLogic/shared-configs/blob/main/.vscode/extensions.json
6+
// Modifications to this file that are not project-specific should also be done upstream.
27
{
8+
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
9+
// List of extensions which should be recommended for users of this workspace.
10+
// Only keep those used by your specific project
311
"recommendations": [
4-
"charliermarsh.ruff",
5-
"davidanson.vscode-markdownlint",
12+
// General
13+
"dprint.dprint",
614
"eamodio.gitlens",
15+
"editorconfig.editorconfig",
16+
"pkief.material-icon-theme",
17+
// GitHub
18+
"bierner.github-markdown-preview",
719
"github.vscode-github-actions",
20+
// Dotenv
21+
"dotenv.dotenv-vscode",
22+
// Python/TOML
23+
"charliermarsh.ruff",
24+
"ms-python.mypy-type-checker",
825
"ms-python.python",
926
"ms-python.vscode-pylance",
27+
"tamasfe.even-better-toml",
28+
// Markdown
29+
"bierner.github-markdown-preview",
30+
"davidanson.vscode-markdownlint",
31+
// Powershell
1032
"ms-vscode.powershell",
11-
"pkief.material-icon-theme",
33+
// XML / Qt
1234
"redhat.vscode-xml",
35+
// YAML
1336
"redhat.vscode-yaml",
14-
"tamasfe.even-better-toml",
1537
],
1638
"unwantedRecommendations": [
1739
// Must disable in this workspace //

0 commit comments

Comments
 (0)