Skip to content

Commit d21ccd3

Browse files
[pre-commit] Add and apply prettier (#416)
1 parent 130dd8e commit d21ccd3

File tree

5 files changed

+70
-64
lines changed

5 files changed

+70
-64
lines changed

.github/ISSUE_TEMPLATE.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
**WARNING:** Please do not report issues about missing Django, see
1+
**WARNING:** Please do not report issues about missing Django, see
22
[README](https://github.com/PyCQA/pylint-django#installation)!
33

44
**TODO:** make sure to post the output of `pip freeze`
55

6-
**NOTES:** make sure you have the latest version of 3rd party packages
7-
like `rest_framework`, `factory`, `model_utils`, etc. before reporting
8-
issues!
6+
**NOTES:** make sure you have the latest version of 3rd party packages like
7+
`rest_framework`, `factory`, `model_utils`, etc. before reporting issues!

.github/workflows/build.yml

+32-29
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,17 @@ jobs:
2424

2525
- name: Execute tests
2626
run: |
27-
pip install -U pip poetry tox
28-
poetry install
29-
30-
export TOXENV=${{ matrix.toxenv }}
31-
export PYTHON=${{ matrix.python-version }}
32-
tox
27+
pip install -U pip poetry tox
28+
poetry install
3329
30+
export TOXENV=${{ matrix.toxenv }}
31+
export PYTHON=${{ matrix.python-version }}
32+
tox
3433
3534
test:
36-
name: test latest / Django@${{ matrix.django-version }} / Python@${{ matrix.python-version }}
35+
name:
36+
test latest / Django@${{ matrix.django-version }} / Python@${{
37+
matrix.python-version }}
3738
runs-on: ubuntu-latest
3839
strategy:
3940
fail-fast: false
@@ -50,26 +51,28 @@ jobs:
5051

5152
- name: Execute tests
5253
run: |
53-
pip install -U pip poetry tox
54-
poetry install
54+
pip install -U pip poetry tox
55+
poetry install
5556
56-
export DJANGO=${{ matrix.django-version }}
57-
export PYTHON=${{ matrix.python-version }}
58-
export TOXENV=$(echo py${{ matrix.python-version }}-django${{ matrix.django-version }} | tr -d .)
59-
tox
57+
export DJANGO=${{ matrix.django-version }}
58+
export PYTHON=${{ matrix.python-version }}
59+
export TOXENV=$(echo py${{ matrix.python-version }}-django${{ matrix.django-version }} | tr -d .)
60+
tox
6061
6162
- name: Coveralls
6263
env:
6364
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
6465
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6566
run: |
66-
pip install coveralls
67-
coveralls --service=github
67+
pip install coveralls
68+
coveralls --service=github
6869
69-
test_deprecated: # testing older versions of python+django
70-
name: test old stuff / Django@${{ matrix.django-version }} / Python@${{ matrix.python-version }}
70+
test_deprecated: # testing older versions of python+django
71+
name:
72+
test old stuff / Django@${{ matrix.django-version }} / Python@${{
73+
matrix.python-version }}
7174
runs-on: ubuntu-latest
72-
strategy: # TODO: use a YAML anchor - not supported in GitHub actions "yet"
75+
strategy: # TODO: use a YAML anchor - not supported in GitHub actions "yet"
7376
fail-fast: false
7477
matrix:
7578
python-version: [3.7, 3.8, 3.9]
@@ -84,21 +87,21 @@ jobs:
8487

8588
- name: Execute tests
8689
run: |
87-
pip install -U pip poetry tox
88-
poetry install
90+
pip install -U pip poetry tox
91+
poetry install
8992
90-
export DJANGO=${{ matrix.django-version }}
91-
export PYTHON=${{ matrix.python-version }}
92-
export TOXENV=$(echo py${{ matrix.python-version }}-django${{ matrix.django-version }} | tr -d .)
93-
tox
93+
export DJANGO=${{ matrix.django-version }}
94+
export PYTHON=${{ matrix.python-version }}
95+
export TOXENV=$(echo py${{ matrix.python-version }}-django${{ matrix.django-version }} | tr -d .)
96+
tox
9497
9598
- name: Coveralls
9699
env:
97100
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
98101
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
99102
run: |
100-
pip install coveralls
101-
coveralls --service=github
103+
pip install coveralls
104+
coveralls --service=github
102105
103106
build_and_package_sanity:
104107
runs-on: ubuntu-latest
@@ -115,6 +118,6 @@ jobs:
115118

116119
- name: Build
117120
run: |
118-
pip install -U pip poetry tox
119-
poetry install
120-
./scripts/build.sh
121+
pip install -U pip poetry tox
122+
poetry install
123+
./scripts/build.sh

.pre-commit-config.yaml

+7-3
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@ repos:
1010
- id: mixed-line-ending
1111
args: [--fix=lf]
1212
- id: debug-statements
13-
# code formatting
1413
- repo: https://github.com/PyCQA/flake8
1514
rev: 6.1.0
1615
hooks:
1716
- id: flake8
18-
args: [ --max-line-length=120 ]
17+
args: [--max-line-length=120]
1918
- repo: https://github.com/psf/black
2019
rev: 23.10.1
2120
hooks:
@@ -25,7 +24,12 @@ repos:
2524
rev: 5.12.0
2625
hooks:
2726
- id: isort
28-
args: ['--profile', 'black']
27+
args: ["--profile", "black"]
28+
- repo: https://github.com/pre-commit/mirrors-prettier
29+
rev: v3.0.3
30+
hooks:
31+
- id: prettier
32+
args: [--prose-wrap=always, --print-width=88]
2933
- repo: local
3034
hooks:
3135
- id: pylint

CONTRIBUTORS.md

+22-22
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
* [carlio](https://github.com/carlio)
2-
* [mbarrien](https://github.com/mbarrien)
3-
* [frost-nzcr4](https://github.com/frost-nzcr4)
4-
* [ustun](https://github.com/ustun)
5-
* [jproffitt](https://github.com/jproffitt)
6-
* [lhupfeldt](https://github.com/lhupfeldt)
7-
* [smirolo](https://github.com/smirolo)
8-
* [mbertolacci](https://github.com/mbertolacci)
9-
* [atodorov](https://github.com/atodorov)
10-
* [bittner](https://github.com/bittner)
11-
* [federicobond](https://github.com/federicobond)
12-
* [matusvalo](https://github.com/matusvalo)
13-
* [fadedDexofan](https://github.com/fadeddexofan)
14-
* [imomaliev](https://github.com/imomaliev)
15-
* [psrb](https://github.com/psrb)
16-
* [WayneLambert](https://github.com/WayneLambert)
17-
* [alejandro-angulo](https://github.com/alejandro-angulo)
18-
* [brymut](https://github.com/brymut)
19-
* [michael-k](https://github.com/michael-k)
20-
* [naquiroz](https://github.com/naquiroz)
21-
* [john-sandall](https://github.com/john-sandall)
22-
* [dineshtrivedi](https://github.com/dineshtrivedi)
1+
- [carlio](https://github.com/carlio)
2+
- [mbarrien](https://github.com/mbarrien)
3+
- [frost-nzcr4](https://github.com/frost-nzcr4)
4+
- [ustun](https://github.com/ustun)
5+
- [jproffitt](https://github.com/jproffitt)
6+
- [lhupfeldt](https://github.com/lhupfeldt)
7+
- [smirolo](https://github.com/smirolo)
8+
- [mbertolacci](https://github.com/mbertolacci)
9+
- [atodorov](https://github.com/atodorov)
10+
- [bittner](https://github.com/bittner)
11+
- [federicobond](https://github.com/federicobond)
12+
- [matusvalo](https://github.com/matusvalo)
13+
- [fadedDexofan](https://github.com/fadeddexofan)
14+
- [imomaliev](https://github.com/imomaliev)
15+
- [psrb](https://github.com/psrb)
16+
- [WayneLambert](https://github.com/WayneLambert)
17+
- [alejandro-angulo](https://github.com/alejandro-angulo)
18+
- [brymut](https://github.com/brymut)
19+
- [michael-k](https://github.com/michael-k)
20+
- [naquiroz](https://github.com/naquiroz)
21+
- [john-sandall](https://github.com/john-sandall)
22+
- [dineshtrivedi](https://github.com/dineshtrivedi)

SECURITY.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
## Supported Versions
44

5-
| Version | Supported |
6-
| ------- | ------------------ |
5+
| Version | Supported |
6+
| ------------------------------------------------- | ------------------ |
77
| [latest](https://pypi.org/project/pylint-django/) | :heavy_check_mark: |
88

99
## Reporting a Vulnerability
1010

11-
In case you have found a security problem with pylint-django *DO NOT* report
12-
it into GitHub Issues. Instead go to
13-
[https://tidelift.com/security](https://tidelift.com/security)
14-
and follow the instructions there.
11+
In case you have found a security problem with pylint-django _DO NOT_ report it into
12+
GitHub Issues. Instead go to
13+
[https://tidelift.com/security](https://tidelift.com/security) and follow the
14+
instructions there.

0 commit comments

Comments
 (0)