Skip to content

Commit

Permalink
Merge pull request #236 from sommersoft/improve_formatting
Browse files Browse the repository at this point in the history
Improve formatting
  • Loading branch information
kattni committed Aug 5, 2021
2 parents 5b7e4de + 54db626 commit f879b24
Show file tree
Hide file tree
Showing 29 changed files with 2,450 additions and 1,333 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/bundle_cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ jobs:
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Set up Python 3.6
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.6
python-version: 3.9
- name: Versions
run: |
python3 --version
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Run pre-commit

on: [pull_request, push]

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Versions
run: |
python3 --version
- name: Checkout Current Repo
uses: actions/checkout@v1
- name: Pip install requirements
run: |
pip install --force-reinstall -r requirements.txt
- name: Pip install pre-commit
run: |
pip install pre-commit
- name: Run pre-commit hooks
run: |
pre-commit run --all-files
4 changes: 2 additions & 2 deletions .github/workflows/reports_cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Set up Python 3.6
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.6
python-version: 3.9
- name: Versions
run: |
python3 --version
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ jobs:
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Set up Python 3.8
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.8
python-version: 3.9
- name: Versions
run: |
python3 --version
Expand All @@ -51,4 +51,4 @@ jobs:
ADABOT_GITHUB_ACCESS_TOKEN: ${{ secrets.ADABOT_GITHUB_ACCESS_TOKEN }}
REDIS_PORT: ${{ job.services.redis.ports[6379] }}
run: |
python3 -u -m pytest
python3 -u -m pytest
17 changes: 17 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
exclude: patches
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 21.6b0
hooks:
- id: black
- repo: https://github.com/pycqa/pylint
rev: v2.9.3
hooks:
- id: pylint
name: pylint
types: [python]
Loading

0 comments on commit f879b24

Please sign in to comment.