Skip to content

Commit 99e442c

Browse files
authored
fix: issues with deprecated github actions to publish (#546)
* fix: issues with deprecated github actions to publish * fix: issues with isort linting * fix: spelling errors and re-bundle * fix: pre-commit for ruff * fix: ruff lint errors * fix: replace isort with ruff
1 parent ce227c1 commit 99e442c

File tree

10 files changed

+14
-21
lines changed

10 files changed

+14
-21
lines changed

.github/workflows/lint.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,11 @@ jobs:
2121
linters: flake8
2222
run: flake8
2323

24-
isort:
24+
ruff:
25+
name: ruff
2526
runs-on: ubuntu-latest
2627
steps:
27-
- name: Checkout
28-
uses: actions/checkout@v2
29-
- name: Set up Python
30-
uses: actions/setup-python@v2
31-
with:
32-
python-version: 3.9
33-
- run: python -m pip install isort
34-
- name: isort
35-
uses: liskin/gh-problem-matcher-wrap@v1
36-
with:
37-
linters: isort
38-
run: isort --check --diff djangocms_admin_style
28+
- uses: actions/checkout@v4
29+
- run: python -Im pip install --user ruff
30+
- name: Run ruff on cms
31+
run: ruff check --output-format=github djangocms_admin_style

.github/workflows/publish-to-live-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
3434
- name: Publish distribution 📦 to PyPI
3535
if: startsWith(github.ref, 'refs/tags')
36-
uses: pypa/gh-action-pypi-publish@master
36+
uses: pypa/gh-action-pypi-publish@release/v1
3737
with:
3838
user: __token__
3939
password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/publish-to-test-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
.
3333
3434
- name: Publish distribution 📦 to Test PyPI
35-
uses: pypa/gh-action-pypi-publish@master
35+
uses: pypa/gh-action-pypi-publish@release/v1
3636
with:
3737
user: __token__
3838
password: ${{ secrets.TEST_PYPI_API_TOKEN }}

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ repos:
3939
- id: codespell
4040

4141
- repo: https://github.com/astral-sh/ruff-pre-commit
42-
rev: v0.12.11
42+
rev: v0.12.12 # Use the desired Ruff version
4343
hooks:
44-
- id: ruff
45-
args: [--fix, --exit-non-zero-on-fix]
46-
- id: ruff-format
44+
- id: ruff-check # For linting checks
45+
args: [--fix] # Optional: automatically fix fixable issues
46+
- id: ruff-format # For code formatting
4747

4848
- repo: https://github.com/rstcheck/rstcheck
4949
rev: v6.2.5

djangocms_admin_style/sass/components/_changelist.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@
339339
display: inline-block;
340340
margin-top: 5px;
341341
}
342-
input[type="chekbox"] {
342+
input[type="checkbox"] {
343343
display: block;
344344
}
345345
input[type="submit"] {

djangocms_admin_style/static/djangocms_admin_style/css/djangocms-admin.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)