Skip to content

Commit f879b24

Browse files
authored
Merge pull request #236 from sommersoft/improve_formatting
Improve formatting
2 parents 5b7e4de + 54db626 commit f879b24

29 files changed

+2450
-1333
lines changed

.github/workflows/bundle_cron.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ jobs:
3333
env:
3434
GITHUB_CONTEXT: ${{ toJson(github) }}
3535
run: echo "$GITHUB_CONTEXT"
36-
- name: Set up Python 3.6
36+
- name: Set up Python 3.9
3737
uses: actions/setup-python@v1
3838
with:
39-
python-version: 3.6
39+
python-version: 3.9
4040
- name: Versions
4141
run: |
4242
python3 --version

.github/workflows/pre-commit.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Run pre-commit
2+
3+
on: [pull_request, push]
4+
5+
jobs:
6+
pre-commit:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Dump GitHub context
10+
env:
11+
GITHUB_CONTEXT: ${{ toJson(github) }}
12+
run: echo "$GITHUB_CONTEXT"
13+
- name: Set up Python 3.9
14+
uses: actions/setup-python@v1
15+
with:
16+
python-version: 3.9
17+
- name: Versions
18+
run: |
19+
python3 --version
20+
- name: Checkout Current Repo
21+
uses: actions/checkout@v1
22+
- name: Pip install requirements
23+
run: |
24+
pip install --force-reinstall -r requirements.txt
25+
- name: Pip install pre-commit
26+
run: |
27+
pip install pre-commit
28+
- name: Run pre-commit hooks
29+
run: |
30+
pre-commit run --all-files

.github/workflows/reports_cron.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ jobs:
3030
env:
3131
GITHUB_CONTEXT: ${{ toJson(github) }}
3232
run: echo "$GITHUB_CONTEXT"
33-
- name: Set up Python 3.6
33+
- name: Set up Python 3.9
3434
uses: actions/setup-python@v1
3535
with:
36-
python-version: 3.6
36+
python-version: 3.9
3737
- name: Versions
3838
run: |
3939
python3 --version

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ jobs:
3131
env:
3232
GITHUB_CONTEXT: ${{ toJson(github) }}
3333
run: echo "$GITHUB_CONTEXT"
34-
- name: Set up Python 3.8
34+
- name: Set up Python 3.9
3535
uses: actions/setup-python@v1
3636
with:
37-
python-version: 3.8
37+
python-version: 3.9
3838
- name: Versions
3939
run: |
4040
python3 --version
@@ -51,4 +51,4 @@ jobs:
5151
ADABOT_GITHUB_ACCESS_TOKEN: ${{ secrets.ADABOT_GITHUB_ACCESS_TOKEN }}
5252
REDIS_PORT: ${{ job.services.redis.ports[6379] }}
5353
run: |
54-
python3 -u -m pytest
54+
python3 -u -m pytest

.pre-commit-config.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
exclude: patches
2+
repos:
3+
- repo: https://github.com/pre-commit/pre-commit-hooks
4+
rev: v4.0.1
5+
hooks:
6+
- id: end-of-file-fixer
7+
- id: trailing-whitespace
8+
- repo: https://github.com/psf/black
9+
rev: 21.6b0
10+
hooks:
11+
- id: black
12+
- repo: https://github.com/pycqa/pylint
13+
rev: v2.9.3
14+
hooks:
15+
- id: pylint
16+
name: pylint
17+
types: [python]

0 commit comments

Comments
 (0)