Skip to content

Commit 0bed867

Browse files
committed
style: remove trailing whitespace and add newlines at end of files
1 parent 453eb28 commit 0bed867

File tree

17 files changed

+75
-83
lines changed

17 files changed

+75
-83
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,43 +13,43 @@ jobs:
1313
WELLCODE_APP_ID: ${{ secrets.WELLCODE_APP_ID }}
1414
WELLCODE_CLIENT_ID: ${{ secrets.WELLCODE_CLIENT_ID }}
1515
ENVIRONMENT: development
16-
16+
1717
steps:
1818
- uses: actions/checkout@v4
19-
19+
2020
- name: Set up Python
2121
uses: actions/setup-python@v5
2222
with:
2323
python-version: "3.x"
2424
cache: 'pip'
25-
25+
2626
- name: Install dependencies
2727
run: |
2828
python -m pip install --upgrade pip
2929
pip install black ruff mypy pytest pytest-cov
3030
pip install -e .
31-
31+
3232
- name: Check code formatting with Black
3333
run: |
3434
black --check src tests
35-
35+
3636
- name: Lint with Ruff
3737
run: |
3838
ruff check src tests
39-
39+
4040
#- name: Type checking with mypy
4141
# run: |
4242
# mypy src/wellcode_cli
43-
43+
4444
- name: Run tests with pytest
4545
run: |
4646
PYTHONPATH=$PYTHONPATH:${{ github.workspace }}/src pytest -v --cov=src/wellcode_cli --cov-report=xml
47-
47+
4848
- name: Build package
4949
run: |
5050
pip install build
5151
python -m build
52-
52+
5353
- name: Check package structure
5454
run: |
5555
pip install twine check-wheel-contents
@@ -63,53 +63,53 @@ jobs:
6363
matrix:
6464
os: [ubuntu-latest, windows-latest, macos-latest]
6565
python-version: ['3.9', '3.10', '3.11', '3.12']
66-
66+
6767
env:
6868
WELLCODE_APP_ID: ${{ secrets.WELLCODE_APP_ID }}
6969
WELLCODE_CLIENT_ID: ${{ secrets.WELLCODE_CLIENT_ID }}
7070
ENVIRONMENT: development
71-
71+
7272
steps:
7373
- uses: actions/checkout@v4
74-
74+
7575
- name: Set up Python ${{ matrix.python-version }}
7676
uses: actions/setup-python@v5
7777
with:
7878
python-version: ${{ matrix.python-version }}
7979
cache: 'pip'
80-
80+
8181
- name: Install dependencies
8282
run: |
8383
python -m pip install --upgrade pip
8484
pip install black ruff mypy pytest pytest-cov
8585
pip install -e ".[test]"
86-
86+
8787
- name: Run tests
8888
run: |
8989
pytest tests -v
9090
9191
security:
9292
needs: quality
9393
runs-on: ubuntu-latest
94-
94+
9595
steps:
9696
- uses: actions/checkout@v4
97-
97+
9898
- name: Set up Python
9999
uses: actions/setup-python@v5
100100
with:
101101
python-version: "3.x"
102102
cache: 'pip'
103-
103+
104104
- name: Install dependencies
105105
run: |
106106
python -m pip install --upgrade pip
107107
pip install bandit safety
108-
108+
109109
- name: Run security checks with Bandit
110110
run: |
111111
bandit -r src
112-
112+
113113
- name: Check dependencies for known vulnerabilities
114114
run: |
115115
safety check

.github/workflows/publish.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,53 +10,53 @@ jobs:
1010
runs-on: ubuntu-latest
1111
permissions:
1212
contents: write # Needed for creating releases
13-
13+
1414
env:
1515
WELLCODE_APP_ID: ${{ secrets.WELLCODE_APP_ID }}
1616
WELLCODE_CLIENT_ID: ${{ secrets.WELLCODE_CLIENT_ID }}
1717
ENVIRONMENT: production
18-
18+
1919
steps:
2020
- uses: actions/checkout@v4
2121
with:
2222
fetch-depth: 0 # Fetch all history for changelog generation
23-
23+
2424
- name: Set up Python
2525
uses: actions/setup-python@v5
2626
with:
2727
python-version: "3.x"
28-
28+
2929
- name: Extract version from tag
3030
id: get_version
3131
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
32-
32+
3333
- name: Update version in files
3434
run: |
3535
# Update __init__.py
3636
echo "__version__ = \"$VERSION\"" > src/wellcode_cli/__init__.py
37-
37+
3838
# Update pyproject.toml
3939
sed -i "s/version = \".*\"/version = \"$VERSION\"/" pyproject.toml
40-
40+
4141
- name: Install dependencies
4242
run: |
4343
python -m pip install --upgrade pip
4444
pip install build twine
45-
45+
4646
- name: Build package
4747
run: python -m build
48-
48+
4949
- name: Publish to PyPI
5050
env:
5151
TWINE_USERNAME: pimoussTO
5252
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
5353
run: |
5454
twine upload dist/*
55-
55+
5656
- name: Create GitHub Release
5757
uses: softprops/action-gh-release@v1
5858
with:
5959
name: Release ${{ env.VERSION }}
6060
draft: false
6161
prerelease: false
62-
generate_release_notes: true
62+
generate_release_notes: true

.pre-commit-config.yaml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,4 @@ repos:
99
rev: v0.2.1 # Use the latest stable version
1010
hooks:
1111
- id: ruff
12-
args: [--fix, --exit-non-zero-on-fix]
13-
14-
- repo: https://github.com/pre-commit/pre-commit-hooks
15-
rev: v4.5.0
16-
hooks:
17-
- id: trailing-whitespace
18-
- id: end-of-file-fixer
19-
- id: check-yaml
20-
- id: check-added-large-files
12+
args: [--fix, --exit-non-zero-on-fix]

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
22
"python.analysis.typeCheckingMode": "basic"
3-
}
3+
}

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ Project maintainers are responsible for clarifying the standards of acceptable b
2828

2929
## Enforcement
3030

31-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [INSERT EMAIL ADDRESS]. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement
31+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [INSERT EMAIL ADDRESS]. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ This section lists the labels we use to help us track and manage issues and pull
6262
* `documentation` - Issues or pull requests related to documentation.
6363
* `good first issue` - Good for newcomers.
6464

65-
Thank you for contributing to wellcode-cli!
65+
Thank you for contributing to wellcode-cli!

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,4 +671,4 @@ into proprietary programs. If your program is a subroutine library, you
671671
may consider it more useful to permit linking proprietary applications with
672672
the library. If this is what you want to do, use the GNU Lesser General
673673
Public License instead of this License. But first, please read
674-
<https://www.gnu.org/licenses/why-not-lgpl.html>.
674+
<https://www.gnu.org/licenses/why-not-lgpl.html>.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,4 @@ wellcode-cli
102102

103103
## 📄 License
104104

105-
MIT License - see LICENSE file for details
105+
MIT License - see LICENSE file for details

mypy.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ disallow_incomplete_defs = True
99
ignore_missing_imports = True
1010

1111
[mypy-plotly.*]
12-
ignore_missing_imports = True
12+
ignore_missing_imports = True

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ pythonpath = [
6060
]
6161
testpaths = [
6262
"tests"
63-
]
63+
]

0 commit comments

Comments
 (0)