Skip to content

Commit d22cf4a

Browse files
committed
Add isort and black to travis/precommit
1 parent 8403c30 commit d22cf4a

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

.pre-commit-config.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
repos:
2+
- repo: https://github.com/psf/black
3+
rev: ''
4+
hooks:
5+
- id: black
6+
- repo: https://github.com/pycqa/isort
7+
rev: ''
8+
hooks:
9+
- id: isort

.travis.yml

+11-9
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
11
language: python
22

3-
python:
4-
- "3.4"
5-
- "3.5"
6-
- "3.6"
7-
- "3.7"
8-
dist: xenial
9-
sudo: true
10-
113
matrix:
4+
include:
5+
- python: '3.5'
6+
- python: '3.6'
7+
- python: '3.7'
8+
- python: '3.8'
9+
env: PRE_COMMIT=1
1210
fast_finish: true
11+
dist: xenial
12+
sudo: true
1313

1414
install:
15+
- test ! "$PRE_COMMIT" || pip install pre-commit
1516
- pip install pylint
1617
- pip install coverage
1718
- pip install coveralls
1819
# Check if installing works
1920
- pip install -e .
2021

2122
script:
23+
- test ! "$PRE_COMMIT" || pre-commit run --all-files
2224
# Check for import errors
2325
- coverage run --source=quantulum3 scripts/test_import_error.py
2426
# Build common words
@@ -44,7 +46,7 @@ deploy:
4446
provider: pypi
4547
on:
4648
branch: master
47-
python: "3.7"
49+
python: "3.8"
4850
distributions: "sdist bdist_wheel"
4951
skip_existing: true
5052
# Keep the generated classifier

0 commit comments

Comments
 (0)