Skip to content

Commit

Permalink
refactor: add python 3.9 as an option and remove un-necessary if-else…
Browse files Browse the repository at this point in the history
… statements
  • Loading branch information
engineervix committed Jul 21, 2021
1 parent 55ab9fb commit 434608b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
9 changes: 1 addition & 8 deletions {{cookiecutter.project_slug}}/.gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
include:
template: Dependency-Scanning.gitlab-ci.yml

{% if cookiecutter.python_version == "3.7" %}
image: python:3.7-buster
{% elif cookiecutter.python_version == "3.8" %}
image: python:3.8-buster
{% else %}
image: python:3.6-buster
{% endif %}

image: python:{{cookiecutter.python_version}}-buster
services:
- postgis/postgis:10-2.5

Expand Down
8 changes: 1 addition & 7 deletions {{cookiecutter.project_slug}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,7 @@ build-backend = "setuptools.build_meta"

[tool.black]
line-length = 88
{% if cookiecutter.python_version == "3.6" %}
target-version = ['py36']
{% elif cookiecutter.python_version == "3.7" %}
target-version = ['py37']
{% else %}
target-version = ['py38']
{% endif %}
target-version = ["py{{cookiecutter.python_version|replace('.', '')}}"]
include = '\.pyi?$'
exclude = '''
Expand Down

0 comments on commit 434608b

Please sign in to comment.