Skip to content

Commit d72d202

Browse files
committed
Apply prettier fixes
1 parent 3b5f1e5 commit d72d202

File tree

4 files changed

+60
-57
lines changed

4 files changed

+60
-57
lines changed

.github/workflows/docker-publish.yml

Lines changed: 1 addition & 1 deletion
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

Lines changed: 3 additions & 3 deletions
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

Lines changed: 51 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,58 @@
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/\w*.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/\w*.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: [
41-
--target-version, "5.0",
42-
# Trac needs psycopg2
43-
# https://github.com/adamchainz/django-upgrade?tab=readme-ov-file#databases
44-
--skip, "settings_database_postgresql",
45-
]
36+
- repo: https://github.com/adamchainz/django-upgrade
37+
rev: "1.22.2"
38+
hooks:
39+
- id: django-upgrade
40+
args: [
41+
--target-version,
42+
"5.0",
43+
# Trac needs psycopg2
44+
# https://github.com/adamchainz/django-upgrade?tab=readme-ov-file#databases
45+
--skip,
46+
"settings_database_postgresql",
47+
]
4648

47-
- repo: https://github.com/psf/black
48-
rev: 24.10.0
49-
hooks:
50-
- id: black
49+
- repo: https://github.com/psf/black
50+
rev: 24.10.0
51+
hooks:
52+
- id: black
5153

52-
- repo: https://github.com/rbubley/mirrors-prettier
53-
rev: "v3.4.1"
54-
hooks:
55-
- id: prettier
56-
exclude_types: [html, css, javascript, json, scss]
54+
- repo: https://github.com/rbubley/mirrors-prettier
55+
rev: "v3.4.1"
56+
hooks:
57+
- id: prettier
58+
exclude_types: [html, css, javascript, json, scss]

docker-compose.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '3.7'
1+
version: "3.7"
22

33
services:
44
trac:
@@ -7,10 +7,11 @@ services:
77
build:
88
context: ./
99
dockerfile: Dockerfile
10-
command: ["gunicorn", "--bind", "0:9000", "--reload", "tracdjangoplugin.wsgi"]
10+
command:
11+
["gunicorn", "--bind", "0:9000", "--reload", "tracdjangoplugin.wsgi"]
1112
environment:
12-
- TRAC_INI_database=postgres://code.djangoproject:secret@db/code.djangoproject
13-
- SECRETS_FILE=/code/secrets.json
13+
- TRAC_INI_database=postgres://code.djangoproject:secret@db/code.djangoproject
14+
- SECRETS_FILE=/code/secrets.json
1415
volumes:
1516
- ./:/code/
1617
ports:

0 commit comments

Comments
 (0)