Skip to content

Commit c40f17c

Browse files
authored
convert CRLF files to LF (#34)
* manual fixes and auto fixes * autofixed
1 parent 0b2fa3a commit c40f17c

18 files changed

Lines changed: 1901 additions & 1900 deletions

File tree

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
---
2-
name: Bug Fix
3-
about: Create a report to help us improve
4-
title: ''
5-
labels: ''
6-
assignees: ''
7-
8-
---
9-
10-
**Describe the bug**
11-
A clear and concise description of what the bug is.
12-
13-
**To Reproduce**
14-
Steps to reproduce the behavior:
15-
1. Go to '...'
16-
2. Click on '....'
17-
3. Scroll down to '....'
18-
4. See error
19-
20-
**Expected behavior**
21-
A clear and concise description of what you expected to happen.
22-
23-
**Screenshots**
24-
If applicable, add screenshots to help explain your problem.
25-
26-
**Additional context**
27-
Add any other context about the problem here.
1+
---
2+
name: Bug Fix
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Additional context**
27+
Add any other context about the problem here.
Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
---
2-
name: New Issue
3-
about: Create a new issue and provide enough information to have a discussion
4-
title: ''
5-
labels: ''
6-
assignees: ''
7-
8-
---
9-
10-
## Description
11-
A clear and concise description of what the problem is.
12-
13-
## Considerations
14-
Make sure not to forget about these.
15-
16-
## Sub-tasks
17-
List any sub-tasks that might help create a clear flow or sub-issues.
18-
19-
## Definition of Done
20-
This might help in cases when what is to be delivered is more than just one
21-
piece of functional code.
1+
---
2+
name: New Issue
3+
about: Create a new issue and provide enough information to have a discussion
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
## Description
11+
A clear and concise description of what the problem is.
12+
13+
## Considerations
14+
Make sure not to forget about these.
15+
16+
## Sub-tasks
17+
List any sub-tasks that might help create a clear flow or sub-issues.
18+
19+
## Definition of Done
20+
This might help in cases when what is to be delivered is more than just one
21+
piece of functional code.
Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
name: pre-commit
2-
description: run pre-commit
3-
inputs:
4-
extra_args:
5-
description: options to pass to pre-commit run
6-
required: false
7-
default: '--all-files'
8-
runs:
9-
using: composite
10-
steps:
11-
- run: python -m pip install pre-commit
12-
shell: bash
13-
- run: python -m pip freeze --local
14-
shell: bash
15-
- uses: actions/cache@v4
16-
with:
17-
path: |
18-
~/.cache/pre-commit
19-
~/.cache/R/renv
20-
key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
21-
- run: pre-commit run --show-diff-on-failure --color=always ${{ inputs.extra_args }}
22-
shell: bash
1+
name: pre-commit
2+
description: run pre-commit
3+
inputs:
4+
extra_args:
5+
description: options to pass to pre-commit run
6+
required: false
7+
default: '--all-files'
8+
runs:
9+
using: composite
10+
steps:
11+
- run: python -m pip install pre-commit
12+
shell: bash
13+
- run: python -m pip freeze --local
14+
shell: bash
15+
- uses: actions/cache@v4
16+
with:
17+
path: |
18+
~/.cache/pre-commit
19+
~/.cache/R/renv
20+
key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
21+
- run: pre-commit run --show-diff-on-failure --color=always ${{ inputs.extra_args }}
22+
shell: bash

.github/workflows/release.yaml

Lines changed: 119 additions & 119 deletions
Original file line numberDiff line numberDiff line change
@@ -1,119 +1,119 @@
1-
name: Build Release Distribution
2-
3-
on:
4-
push:
5-
tags:
6-
# below is same as ^\d{4}\.\d{2}\.\d{2}$ seems workflows use simpler regex
7-
- '[0-9][0-9][0-9][0-9].[0-9][0-9].[0-9][0-9].[0-9]+'
8-
9-
jobs:
10-
build-and-release:
11-
name: Build and Release
12-
runs-on: ubuntu-latest
13-
14-
steps:
15-
- name: Checkout Code
16-
uses: actions/checkout@v4
17-
with:
18-
fetch-depth: 0
19-
20-
- name: Checkout release
21-
run: |
22-
git fetch origin release
23-
git checkout release
24-
25-
- name: Determine Version
26-
id: get-version
27-
env:
28-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29-
run: |
30-
VERSION="${GITHUB_REF#refs/tags/}"
31-
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
32-
33-
- name: Determine If Tag Is From Release
34-
id: is-release
35-
env:
36-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37-
run: |
38-
TAG_COMMIT=$(git rev-parse ${{ github.ref }})
39-
BRANCHES=$(git branch -r --contains "$TAG_COMMIT")
40-
41-
if echo "$BRANCHES" | grep -q 'origin/release'; then
42-
echo "should_continue=true" >> "$GITHUB_OUTPUT"
43-
else
44-
echo "Exiting Workflow: Tag is not from release branch"
45-
echo "IF intending to create a release from tag follow steps under 'Creating A Release' in the README file"
46-
echo "should_continue=false" >> "$GITHUB_OUTPUT"
47-
fi
48-
49-
- name: Setup Python
50-
if: steps.is-release.outputs.should_continue == 'true'
51-
uses: actions/setup-python@v5
52-
with:
53-
python-version: '3.10'
54-
55-
- name: Install Poetry
56-
if: steps.is-release.outputs.should_continue == 'true'
57-
run: |
58-
curl -sSL https://install.python-poetry.org | python3 -
59-
poetry --version
60-
61-
- name: Install Dependencies
62-
if: steps.is-release.outputs.should_continue == 'true'
63-
run: |
64-
poetry install --no-root --with dev
65-
66-
- name: Build Wheel
67-
if: steps.is-release.outputs.should_continue == 'true'
68-
run: |
69-
poetry build
70-
71-
- name: Create Release
72-
if: steps.is-release.outputs.should_continue == 'true'
73-
env:
74-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
75-
run: |
76-
gh release create ${{ github.ref }} dist/* --generate-notes --latest
77-
78-
- name: Update pyproject.toml Version
79-
if: steps.is-release.outputs.should_continue == 'true'
80-
env:
81-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
82-
run: |
83-
VERSION=${{ steps.get-version.outputs.version }}
84-
85-
sed -i.bak -E "s/^version\s*=\s*\"[^\"]+\"/version = \"${VERSION}\"/" pyproject.toml
86-
87-
- name: Update Change Log
88-
if: steps.is-release.outputs.should_continue == 'true'
89-
env:
90-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
91-
run: |
92-
VERSION=${{ steps.get-version.outputs.version }}
93-
REPO_URL="https://github.com/${{ github.repository }}"
94-
RELEASE_URL="$REPO_URL/releases/tag/$VERSION"
95-
96-
awk -v tag="## [$VERSION]" -v url="$RELEASE_URL" '
97-
!done && /---/ {
98-
print $0
99-
print ""
100-
print tag
101-
print url
102-
done = 1
103-
next
104-
}
105-
{ print $0 }
106-
' changelog.md > temp.md && mv temp.md changelog.md
107-
108-
- name: Commit Change Log and pyproject.toml Updates
109-
if: steps.is-release.outputs.should_continue == 'true'
110-
env:
111-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
112-
run: |
113-
VERSION=${{ steps.get-version.outputs.version }}
114-
115-
git config user.name "github-actions"
116-
git config user.email "github-actions@users.noreply.github.com"
117-
git add pyproject.toml changelog.md
118-
git commit -m "Update Version to ${{ steps.get-version.outputs.version }}"
119-
git push origin release
1+
name: Build Release Distribution
2+
3+
on:
4+
push:
5+
tags:
6+
# below is same as ^\d{4}\.\d{2}\.\d{2}$ seems workflows use simpler regex
7+
- '[0-9][0-9][0-9][0-9].[0-9][0-9].[0-9][0-9].[0-9]+'
8+
9+
jobs:
10+
build-and-release:
11+
name: Build and Release
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout Code
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Checkout release
21+
run: |
22+
git fetch origin release
23+
git checkout release
24+
25+
- name: Determine Version
26+
id: get-version
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
run: |
30+
VERSION="${GITHUB_REF#refs/tags/}"
31+
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
32+
33+
- name: Determine If Tag Is From Release
34+
id: is-release
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
run: |
38+
TAG_COMMIT=$(git rev-parse ${{ github.ref }})
39+
BRANCHES=$(git branch -r --contains "$TAG_COMMIT")
40+
41+
if echo "$BRANCHES" | grep -q 'origin/release'; then
42+
echo "should_continue=true" >> "$GITHUB_OUTPUT"
43+
else
44+
echo "Exiting Workflow: Tag is not from release branch"
45+
echo "IF intending to create a release from tag follow steps under 'Creating A Release' in the README file"
46+
echo "should_continue=false" >> "$GITHUB_OUTPUT"
47+
fi
48+
49+
- name: Setup Python
50+
if: steps.is-release.outputs.should_continue == 'true'
51+
uses: actions/setup-python@v5
52+
with:
53+
python-version: '3.10'
54+
55+
- name: Install Poetry
56+
if: steps.is-release.outputs.should_continue == 'true'
57+
run: |
58+
curl -sSL https://install.python-poetry.org | python3 -
59+
poetry --version
60+
61+
- name: Install Dependencies
62+
if: steps.is-release.outputs.should_continue == 'true'
63+
run: |
64+
poetry install --no-root --with dev
65+
66+
- name: Build Wheel
67+
if: steps.is-release.outputs.should_continue == 'true'
68+
run: |
69+
poetry build
70+
71+
- name: Create Release
72+
if: steps.is-release.outputs.should_continue == 'true'
73+
env:
74+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
75+
run: |
76+
gh release create ${{ github.ref }} dist/* --generate-notes --latest
77+
78+
- name: Update pyproject.toml Version
79+
if: steps.is-release.outputs.should_continue == 'true'
80+
env:
81+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
82+
run: |
83+
VERSION=${{ steps.get-version.outputs.version }}
84+
85+
sed -i.bak -E "s/^version\s*=\s*\"[^\"]+\"/version = \"${VERSION}\"/" pyproject.toml
86+
87+
- name: Update Change Log
88+
if: steps.is-release.outputs.should_continue == 'true'
89+
env:
90+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
91+
run: |
92+
VERSION=${{ steps.get-version.outputs.version }}
93+
REPO_URL="https://github.com/${{ github.repository }}"
94+
RELEASE_URL="$REPO_URL/releases/tag/$VERSION"
95+
96+
awk -v tag="## [$VERSION]" -v url="$RELEASE_URL" '
97+
!done && /---/ {
98+
print $0
99+
print ""
100+
print tag
101+
print url
102+
done = 1
103+
next
104+
}
105+
{ print $0 }
106+
' changelog.md > temp.md && mv temp.md changelog.md
107+
108+
- name: Commit Change Log and pyproject.toml Updates
109+
if: steps.is-release.outputs.should_continue == 'true'
110+
env:
111+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
112+
run: |
113+
VERSION=${{ steps.get-version.outputs.version }}
114+
115+
git config user.name "github-actions"
116+
git config user.email "github-actions@users.noreply.github.com"
117+
git add pyproject.toml changelog.md
118+
git commit -m "Update Version to ${{ steps.get-version.outputs.version }}"
119+
git push origin release

0 commit comments

Comments
 (0)