1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
variables:
LC_ALL: "C.UTF-8"
LANG: "C.UTF-8"
# We use a job template to avoid mindless repetition. All of our jobs
# run 'tox', and we vary which tox environment they run or which
# Python version they use by overriding the 'TOXENV' environment
# variable or the 'image' job parameter.
#
# The name of the template starts with a dot to prevent GitLab from
# running it as an actual job.
.tox:
image: python:latest
before_script:
- pip install tox
script:
- tox
variables:
TOXENV: py
# The environment 'py' uses the version of Python used to invoke tox,
# which allows us to test various Python versions by changing the
# Docker image version in use.
flake8:
extends: .tox
variables:
TOXENV: flake8
black:
extends: .tox
variables:
TOXENV: black
mypy:
extends: .tox
variables:
TOXENV: mypy
codespell:
image:
name: debian:stable
before_script:
- apt update
- apt install -qy codespell
script:
- codespell --ignore-words-list=sigal *
|