Skip to content

Commit 8743c2f

Browse files
Copilotfabaff
andauthored
chore: update workflow for hatchling and ruff (#13)
Agent-Logs-Url: https://github.com/home-assistant-ecosystem/python-opensensemap-api/sessions/17801e8d-ddfd-41a7-9637-96725481d6a8 Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: fabaff <116184+fabaff@users.noreply.github.com>
1 parent 15efcba commit 8743c2f

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/python.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,16 @@ jobs:
1515
python-version: [ "3.13", "3.14" ]
1616

1717
steps:
18-
- uses: actions/checkout@v6
18+
- uses: actions/checkout@v4
1919
- name: Set up Python ${{ matrix.python-version }}
20-
uses: actions/setup-python@v6
20+
uses: actions/setup-python@v5
2121
with:
2222
python-version: ${{ matrix.python-version }}
2323
- name: Install dependencies
2424
run: |
25-
python -m pip install --upgrade pip
26-
python setup.py install
27-
- name: Black Code Formatter
28-
uses: rodrigogiraoserrao/python-black-check@v2.0
25+
python -m pip install --upgrade pip hatchling
26+
pip install .
27+
- name: Lint with ruff
28+
run: |
29+
pip install ruff
30+
ruff check .

0 commit comments

Comments
 (0)