Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[flake8]
max-line-length = 88
extend-ignore = E203, W503
19 changes: 19 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
repos:
- hooks:
- id: black
repo: https://github.com/psf/black
rev: 21.12b0
- hooks:
- id: flake8
repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
- hooks:
- id: isort
repo: https://github.com/PyCQA/isort
rev: 5.10.1
- hooks:
- id: commitizen
stages:
- commit-msg
repo: https://github.com/commitizen-tools/commitizen
rev: v2.20.3
34 changes: 8 additions & 26 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,39 +9,21 @@ matrix:
fast_finish: true

python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "nightly"

before_install:
- pip install -U pip
- pip install -U wheel setuptools
- pip install flake8 codecov
- pip install poetry

install:
- pip install -e .

env: TEST_OPTS="--cov=keycloak --ignore=tests/keycloak/aio" FLAKE_OPTS="--exclude=src/keycloak/aio,tests/keycloak/aio"
- poetry install -E aio

script:
- flake8 src/keycloak tests/keycloak $FLAKE_OPTS
- python setup.py test --addopts "$TEST_OPTS"
- poetry run flake8 src/keycloak tests/keycloak
- poetry run pytest --addopts "$TEST_OPTS"

after_success:
- codecov

.mixins:
- &aio-mixin
env: TEST_OPTS="--cov=keycloak" FLAKE_OPTS=""
install: pip install -e .[aio]

jobs:
include:
- python: "3.5"
<<: *aio-mixin
- python: "3.6"
<<: *aio-mixin
- python: "nightly"
<<: *aio-mixin
Loading