Skip to content

Commit 2921c33

Browse files
committed
Attempt to fix test runs on Azure pipelines
Also: - Build for some newer versions of Python on TravisCI and AzurePipelines - Add setup.cfg to make it easier to run flake8 and/or isort
1 parent 89fb4ee commit 2921c33

File tree

4 files changed

+25
-6
lines changed

4 files changed

+25
-6
lines changed

.travis.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,17 @@ matrix:
1414
python: 3.6
1515
env: TOXENV=py36
1616
- os: linux
17-
python: 3.7-dev
17+
python: 3.7
18+
dist: xenial
1819
env: TOXENV=py37
1920
- os: linux
20-
python: 3.8-dev
21+
python: 3.8
2122
dist: xenial
2223
env: TOXENV=py38
24+
- os: linux
25+
python: 3.9-dev
26+
dist: xenial
27+
env: TOXENV=py39
2328
# # Warning: Don't try to use code coverage analysis with pypy as it is insanely slow
2429
# - os: linux
2530
# python: pypy3

Pipfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ typing = {version = "*",markers = "python_version < '3.5'"}
1212
tableformatter = {editable = true,path = "."}
1313
colorama = "*"
1414
colored = "*"
15+
cmd2 = "*"
1516
flake8 = "*"
1617
invoke = "*"
1718
ipython = "*"
19+
isort = "*"
20+
numpy = "*"
21+
pandas = "*"
1822
pytest = "*"
1923
pytest-cov = "*"
2024
twine = ">=1.11"
21-
cmd2 = "*"
22-
numpy = "*"
23-
pandas = "*"

azure-pipelines.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99

1010
# Configure Build Environment to use Azure Pipelines to build tableformatter Python project using macOS
1111
pool:
12-
vmImage: 'macOS 10.13' # other options 'Ubuntu 16.04', 'VS2017-Win2016'
12+
vmImage: 'macOS-latest'
1313

1414
# Run the pipeline with multiple Python versions
1515
strategy:
@@ -20,6 +20,8 @@ jobs:
2020
python.version: '3.6'
2121
Python37:
2222
python.version: '3.7'
23+
Python38:
24+
python.version: '3.8'
2325
# Increase the maxParallel value to simultaneously run the job for all versions in the matrix (max 10 for free open-source)
2426
maxParallel: 3
2527

setup.cfg

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[flake8]
2+
exclude = .git,.idea,.pytest_cache,.tox,.venv,.vscode,build,tableformatter.egg-info,dist,htmlcov,__pycache__,*.egg
3+
max-line-length = 127
4+
max-complexity = 26
5+
6+
[isort]
7+
line_length=127
8+
multi_line_output = 3
9+
include_trailing_comma = true
10+
force_grid_wrap = 0
11+
use_parentheses = true

0 commit comments

Comments
 (0)