Skip to content

Commit 43081ad

Browse files
committed
Apply prettier fixes
1 parent be111c5 commit 43081ad

File tree

4 files changed

+52
-51
lines changed

4 files changed

+52
-51
lines changed

.github/workflows/docker-publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Create and publish a Docker image
22

33
on:
44
push:
5-
branches: ['main']
5+
branches: ["main"]
66

77
env:
88
REGISTRY: ghcr.io

.github/workflows/tests.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
uses: actions/checkout@v4
3030
- uses: actions/setup-python@v5
3131
with:
32-
python-version: '3.11'
32+
python-version: "3.11"
3333
- run: pip install "tinycss2>=1.2.0"
3434
- run: python noshadows.py --tests
3535

@@ -40,7 +40,7 @@ jobs:
4040
uses: actions/checkout@v4
4141
- uses: actions/setup-python@v5
4242
with:
43-
python-version: '3.11'
43+
python-version: "3.11"
4444
- name: Install system package dependencies
4545
run: |
4646
sudo apt-get update
@@ -57,7 +57,7 @@ jobs:
5757
uses: actions/checkout@v4
5858
- uses: actions/setup-python@v5
5959
with:
60-
python-version: '3.11'
60+
python-version: "3.11"
6161
- name: Install system package dependencies
6262
run: |
6363
sudo apt-get update

.pre-commit-config.yaml

+44-44
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,51 @@
11
default_language_version:
2-
python: python3
2+
python: python3
33

44
repos:
5-
- repo: https://github.com/pre-commit/pre-commit-hooks
6-
rev: "v5.0.0"
7-
hooks:
8-
- id: check-added-large-files
9-
args: ["--maxkb=1024"]
10-
- id: check-case-conflict
11-
- id: check-docstring-first
12-
- id: check-executables-have-shebangs
13-
- id: check-json
14-
- id: check-merge-conflict
15-
- id: check-shebang-scripts-are-executable
16-
- id: check-toml
17-
- id: check-yaml
18-
args: ["--allow-multiple-documents"]
19-
- id: debug-statements
20-
- id: detect-private-key
21-
- id: end-of-file-fixer
22-
exclude_types: [json, sql]
23-
- id: file-contents-sorter
24-
files: ^requirements\.txt$
25-
args: ["--ignore-case", "--unique"]
26-
- id: fix-byte-order-marker
27-
- id: mixed-line-ending
28-
- id: trailing-whitespace
5+
- repo: https://github.com/pre-commit/pre-commit-hooks
6+
rev: "v5.0.0"
7+
hooks:
8+
- id: check-added-large-files
9+
args: ["--maxkb=1024"]
10+
- id: check-case-conflict
11+
- id: check-docstring-first
12+
- id: check-executables-have-shebangs
13+
- id: check-json
14+
- id: check-merge-conflict
15+
- id: check-shebang-scripts-are-executable
16+
- id: check-toml
17+
- id: check-yaml
18+
args: ["--allow-multiple-documents"]
19+
- id: debug-statements
20+
- id: detect-private-key
21+
- id: end-of-file-fixer
22+
exclude_types: [json, sql]
23+
- id: file-contents-sorter
24+
files: ^requirements\.txt$
25+
args: ["--ignore-case", "--unique"]
26+
- id: fix-byte-order-marker
27+
- id: mixed-line-ending
28+
- id: trailing-whitespace
2929

30-
- repo: https://github.com/asottile/pyupgrade
31-
rev: "v3.19.0"
32-
hooks:
33-
- id: pyupgrade
34-
args: [--py312]
30+
- repo: https://github.com/asottile/pyupgrade
31+
rev: "v3.19.0"
32+
hooks:
33+
- id: pyupgrade
34+
args: [--py312]
3535

36-
- repo: https://github.com/adamchainz/django-upgrade
37-
rev: "1.22.2"
38-
hooks:
39-
- id: django-upgrade
40-
args: [--target-version, "5.0"]
36+
- repo: https://github.com/adamchainz/django-upgrade
37+
rev: "1.22.2"
38+
hooks:
39+
- id: django-upgrade
40+
args: [--target-version, "5.0"]
4141

42-
- repo: https://github.com/psf/black
43-
rev: 24.10.0
44-
hooks:
45-
- id: black
42+
- repo: https://github.com/psf/black
43+
rev: 24.10.0
44+
hooks:
45+
- id: black
4646

47-
- repo: https://github.com/rbubley/mirrors-prettier
48-
rev: "v3.4.1"
49-
hooks:
50-
- id: prettier
51-
exclude_types: [html, css, javascript, json, scss]
47+
- repo: https://github.com/rbubley/mirrors-prettier
48+
rev: "v3.4.1"
49+
hooks:
50+
- id: prettier
51+
exclude_types: [html, css, javascript, json, scss]

docker-compose.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ services:
55
build:
66
context: ./
77
dockerfile: Dockerfile
8-
command: ["gunicorn", "--bind", "0:9000", "--reload", "tracdjangoplugin.wsgi"]
8+
command:
9+
["gunicorn", "--bind", "0:9000", "--reload", "tracdjangoplugin.wsgi"]
910
environment:
10-
- TRAC_INI_database=postgres://code.djangoproject:secret@db/code.djangoproject
11-
- SECRETS_FILE=/code/secrets.json
11+
- TRAC_INI_database=postgres://code.djangoproject:secret@db/code.djangoproject
12+
- SECRETS_FILE=/code/secrets.json
1213
volumes:
1314
- ./:/code/
1415
ports:

0 commit comments

Comments
 (0)