Skip to content
This repository was archived by the owner on Mar 31, 2020. It is now read-only.

Commit c3c15f5

Browse files
committed
Setup project template
1 parent 3fc14e1 commit c3c15f5

File tree

5 files changed

+115
-0
lines changed

5 files changed

+115
-0
lines changed

.flake8

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
max-line-length=100
2+
application_import_names=projectt
3+
ignore=P102,B311,W503,E226,S311,W504,F821
4+
exclude=__pycache__, venv, .venv, tests
5+
import-order-style=pycharm

Pipfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[[source]]
2+
name = "pypi"
3+
url = "https://pypi.org/simple"
4+
verify_ssl = true
5+
6+
[dev-packages]
7+
flake8 = "*"
8+
9+
[packages]
10+
11+
[requires]
12+
python_version = "3.7"
13+
14+
[scripts]
15+
lint = "python -m flake8"

Pipfile.lock

Lines changed: 57 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

azure-pipelines.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This is the linting configuration for Azure Pipelines
2+
# You should not need to change this unelss you have an
3+
# application which is incompatible with the version of
4+
# Python we are using, in which case your config should
5+
# be changed to use another version (see comment below)
6+
#
7+
# You may also have to change the Python version inside
8+
# the Pipfile (set python_version to different version)
9+
10+
jobs:
11+
- job: lint
12+
displayName: "Lint"
13+
14+
pool:
15+
vmImage: 'Ubuntu 16.04'
16+
17+
variables:
18+
PIPENV_CACHE_DIR: ".cache/pipenv"
19+
PIP_CACHE_DIR: ".cache/pip"
20+
21+
steps:
22+
- task: UsePythonVersion@0
23+
displayName: 'Set Python version'
24+
inputs:
25+
versionSpec: '3.7.x' # If your application does not support 3.7, change this
26+
addToPath: true
27+
28+
- script: sudo pip3 install setuptools
29+
displayName: 'Install base dependencies'
30+
31+
- script: sudo pip3 install pipenv
32+
displayName: 'Install Pipenv'
33+
34+
- script: pipenv install --dev
35+
displayName: 'Install project dependencies'
36+
37+
- script: pipenv run lint
38+
displayName: 'Lint the project'

project/__main__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)