Skip to content

Commit 0d66c4c

Browse files
committed
[qa] Reformatted code with latest qa-format tool
1 parent 70410b8 commit 0d66c4c

File tree

4 files changed

+69
-71
lines changed

4 files changed

+69
-71
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ updates:
1212
commit-message:
1313
prefix: "[deps] "
1414
- package-ecosystem: "github-actions" # Check for GitHub Actions updates
15-
directory: "/"
15+
directory: "/"
1616
schedule:
1717
interval: "monthly" # Check for updates weekly
1818
commit-message:

.github/workflows/ci.yml

Lines changed: 54 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
32
name: Django Flat JSON Widget CI Build
43

54
on:
@@ -11,7 +10,6 @@ on:
1110
- master
1211

1312
jobs:
14-
1513
build:
1614
name: Python==${{ matrix.python-version }} | ${{ matrix.django-version }}
1715
runs-on: ubuntu-24.04
@@ -40,70 +38,70 @@ jobs:
4038
django-version: django~=4.2.0
4139

4240
steps:
43-
- uses: actions/checkout@v4
44-
with:
45-
ref: ${{ github.event.pull_request.head.sha }}
41+
- uses: actions/checkout@v4
42+
with:
43+
ref: ${{ github.event.pull_request.head.sha }}
4644

47-
- name: Cache APT packages
48-
uses: actions/cache@v4
49-
with:
50-
path: /var/cache/apt/archives
51-
key: apt-${{ runner.os }}-${{ hashFiles('.github/workflows/ci.yml') }}
52-
restore-keys: |
53-
apt-${{ runner.os }}-
45+
- name: Cache APT packages
46+
uses: actions/cache@v4
47+
with:
48+
path: /var/cache/apt/archives
49+
key: apt-${{ runner.os }}-${{ hashFiles('.github/workflows/ci.yml') }}
50+
restore-keys: |
51+
apt-${{ runner.os }}-
5452
55-
- name: Disable man page auto-update
56-
run: |
57-
echo 'set man-db/auto-update false' | sudo debconf-communicate >/dev/null
58-
sudo dpkg-reconfigure man-db
53+
- name: Disable man page auto-update
54+
run: |
55+
echo 'set man-db/auto-update false' | sudo debconf-communicate >/dev/null
56+
sudo dpkg-reconfigure man-db
5957
60-
- name: Set up Python ${{ matrix.python-version }}
61-
uses: actions/setup-python@v5
62-
with:
63-
python-version: ${{ matrix.python-version }}
64-
cache: 'pip'
65-
cache-dependency-path: |
66-
setup.py
58+
- name: Set up Python ${{ matrix.python-version }}
59+
uses: actions/setup-python@v5
60+
with:
61+
python-version: ${{ matrix.python-version }}
62+
cache: "pip"
63+
cache-dependency-path: |
64+
setup.py
6765
68-
- name: Install Dependencies
69-
id: deps
70-
run: |
71-
pip install -U pip wheel setuptools
72-
pip install -U -e .[test]
73-
pip install ${{ matrix.django-version }}
74-
sudo npm install -g prettier
66+
- name: Install Dependencies
67+
id: deps
68+
run: |
69+
pip install -U pip wheel setuptools
70+
pip install -U -e .[test]
71+
pip install ${{ matrix.django-version }}
72+
sudo npm install -g prettier
7573
76-
- name: QA checks
77-
run: |
78-
./run-qa-checks
74+
- name: QA checks
75+
run: |
76+
./run-qa-checks
7977
80-
- name: Tests
81-
if: ${{ !cancelled() && steps.deps.conclusion == 'success' }}
82-
run: |
83-
coverage run runtests.py
84-
coverage xml
85-
env:
86-
SELENIUM_HEADLESS: 1
87-
GECKO_LOG: 1
78+
- name: Tests
79+
if: ${{ !cancelled() && steps.deps.conclusion == 'success' }}
80+
run: |
81+
coverage run runtests.py
82+
coverage xml
83+
env:
84+
SELENIUM_HEADLESS: 1
85+
GECKO_LOG: 1
8886

89-
- name: Show gecko web driver log on failures
90-
if: ${{ failure() }}
91-
run: cat geckodriver.log
87+
- name: Show gecko web driver log on failures
88+
if: ${{ failure() }}
89+
run: cat geckodriver.log
9290

93-
- name: Upload Coverage
94-
if: ${{ success() }}
95-
uses: coverallsapp/github-action@v2
96-
with:
97-
parallel: true
98-
format: cobertura
99-
flag-name: python-${{ matrix.env.env }}
100-
github-token: ${{ secrets.GITHUB_TOKEN }}
91+
- name: Upload Coverage
92+
if: ${{ success() }}
93+
uses: coverallsapp/github-action@v2
94+
with:
95+
parallel: true
96+
format: cobertura
97+
flag-name: python-${{ matrix.env.env }}
98+
github-token: ${{ secrets.GITHUB_TOKEN }}
10199

102100
coveralls:
103101
needs: build
104102
runs-on: ubuntu-latest
105103
steps:
106-
- name: Coveralls Finished
107-
uses: coverallsapp/github-action@v2
108-
with:
109-
parallel-finished: true
104+
- name: Coveralls Finished
105+
uses: coverallsapp/github-action@v2
106+
with:
107+
parallel-finished: true

.github/workflows/pypi.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ jobs:
1717
permissions:
1818
id-token: write
1919
steps:
20-
- uses: actions/checkout@v4
21-
- name: Set up Python
22-
uses: actions/setup-python@v5
23-
with:
24-
python-version: '3.10'
25-
- name: Install dependencies
26-
run: |
27-
pip install -U pip
28-
pip install build
29-
- name: Build package
30-
run: python -m build
31-
- name: Publish package distributions to PyPI
32-
uses: pypa/[email protected]
20+
- uses: actions/checkout@v4
21+
- name: Set up Python
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: "3.10"
25+
- name: Install dependencies
26+
run: |
27+
pip install -U pip
28+
pip install build
29+
- name: Build package
30+
run: python -m build
31+
- name: Publish package distributions to PyPI
32+
uses: pypa/[email protected]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
]
3333
},
3434
classifiers=[
35-
"Development Status :: 5 - Production/Stable ",
35+
"Development Status :: 5 - Production/Stable",
3636
"Environment :: Web Environment",
3737
"Topic :: Internet :: WWW/HTTP",
3838
"Intended Audience :: Developers",

0 commit comments

Comments
 (0)