mirror of
https://github.com/Kunsi/pretalx-plugin-broadcast-tools
synced 2024-12-22 07:42:43 +00:00
adjust ci settings to match pretalx settings
This commit is contained in:
parent
a425caa211
commit
6d58ba7feb
2 changed files with 44 additions and 8 deletions
24
.github/workflows/style.yml
vendored
24
.github/workflows/style.yml
vendored
|
@ -61,6 +61,30 @@ jobs:
|
||||||
- name: Run flake8
|
- name: Run flake8
|
||||||
run: flake8 .
|
run: flake8 .
|
||||||
working-directory: .
|
working-directory: .
|
||||||
|
black:
|
||||||
|
name: black
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: install gettext
|
||||||
|
run: sudo apt install gettext
|
||||||
|
- name: Set up Python 3.8
|
||||||
|
uses: actions/setup-python@v1
|
||||||
|
with:
|
||||||
|
python-version: 3.8
|
||||||
|
- uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: ~/.cache/pip
|
||||||
|
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-pip-
|
||||||
|
- name: Install pretalx
|
||||||
|
run: pip3 install pretalx
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: pip3 install black -Ue .
|
||||||
|
- name: Run black
|
||||||
|
run: black --check .
|
||||||
|
working-directory: .
|
||||||
docformatter:
|
docformatter:
|
||||||
name: docformatter
|
name: docformatter
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
28
setup.cfg
28
setup.cfg
|
@ -1,10 +1,22 @@
|
||||||
[isort]
|
[isort]
|
||||||
balanced_wrapping = True
|
multi_line_output = 3
|
||||||
combine_as_imports = True
|
include_trailing_comma=True
|
||||||
default_section = THIRDPARTY
|
force_grid_wrap=0
|
||||||
include_trailing_comma = True
|
use_parentheses=True
|
||||||
known_third_party = pretalx
|
line_length=88
|
||||||
line_length = 80
|
|
||||||
multi_line_output = 5
|
|
||||||
not_skip = __init__.py
|
|
||||||
skip = migrations,setup.py
|
skip = migrations,setup.py
|
||||||
|
default_section = THIRDPARTY
|
||||||
|
known_third_party = pretalx
|
||||||
|
|
||||||
|
[tool:pytest]
|
||||||
|
DJANGO_SETTINGS_MODULE=pretalx.common.settings.test_settings
|
||||||
|
|
||||||
|
[check-manifest]
|
||||||
|
ignore =
|
||||||
|
LICENSE
|
||||||
|
README.rst
|
||||||
|
tests
|
||||||
|
tests/*
|
||||||
|
|
||||||
|
[flake8]
|
||||||
|
max-line-length = 120
|
||||||
|
|
Loading…
Reference in a new issue