CI

This guide shows how to use flake8 inside your CI.

travis

Here’s the minimal configuration required to set up wemake-python-styleguide, flake8, travis up and running:

  1. Learn how to build python projects with travis

  2. Copy this configuration into your .travis.yml:

dist: xenial
language: python
python: 3.7

install: pip install wemake-python-styleguide
script: flake8 .

You can also have some inspiration in our own .travis.yml configuration file.

Gitlab CI

Setting up GitlabCI is also easy:

  1. Learn how Gitlab CI works

  2. Copy this configuration into your .gitlab-ci.yml:

image: python3.12
test:
  before_script: pip install wemake-python-styleguide
  script: flake8 .

Examples: