Skip to content

Commit 3c19370

Browse files
committed
Merge remote-tracking branch 'upstream/features' into jonozzz/features
2 parents 7d0dba1 + 3f5e06e commit 3c19370

File tree

288 files changed

+16973
-12521
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

288 files changed

+16973
-12521
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ include/
1919
.hypothesis/
2020

2121
# autogenerated
22-
_pytest/_version.py
22+
src/_pytest/_version.py
2323
# setuptools
2424
.eggs/
2525

.pre-commit-config.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
exclude: doc/en/example/py2py3/test_py2.py
2+
repos:
3+
- repo: https://github.com/ambv/black
4+
rev: 18.6b4
5+
hooks:
6+
- id: black
7+
args: [--safe, --quiet]
8+
language_version: python3.6
9+
- repo: https://github.com/asottile/blacken-docs
10+
rev: v0.2.0
11+
hooks:
12+
- id: blacken-docs
13+
additional_dependencies: [black==18.6b4]
14+
language_version: python3.6
15+
- repo: https://github.com/pre-commit/pre-commit-hooks
16+
rev: v1.3.0
17+
hooks:
18+
- id: trailing-whitespace
19+
- id: end-of-file-fixer
20+
- id: check-yaml
21+
- id: debug-statements
22+
exclude: _pytest/debugging.py
23+
- id: flake8
24+
- repo: https://github.com/asottile/pyupgrade
25+
rev: v1.2.0
26+
hooks:
27+
- id: pyupgrade
28+
- repo: local
29+
hooks:
30+
- id: rst
31+
name: rst
32+
entry: rst-lint --encoding utf-8
33+
files: ^(CHANGELOG.rst|HOWTORELEASE.rst|README.rst|changelog/.*)$
34+
language: python
35+
additional_dependencies: [pygments, restructuredtext_lint]
36+
python_version: python3.6

.travis.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
sudo: false
22
language: python
3+
stages:
4+
- linting
5+
- test
6+
- deploy
37
python:
48
- '3.6'
59
install:
@@ -9,7 +13,7 @@ env:
913
# coveralls is not listed in tox's envlist, but should run in travis
1014
- TOXENV=coveralls
1115
# note: please use "tox --listenvs" to populate the build matrix below
12-
- TOXENV=linting
16+
# please remove the linting env in all cases
1317
- TOXENV=py27
1418
- TOXENV=py34
1519
- TOXENV=py36
@@ -33,8 +37,8 @@ jobs:
3337
python: 'pypy-5.4'
3438
- env: TOXENV=py35
3539
python: '3.5'
36-
- env: TOXENV=py35-freeze
37-
python: '3.5'
40+
- env: TOXENV=py36-freeze
41+
python: '3.6'
3842
- env: TOXENV=py37
3943
python: 'nightly'
4044

@@ -53,6 +57,14 @@ jobs:
5357
on:
5458
tags: true
5559
repo: pytest-dev/pytest
60+
- stage: linting
61+
python: '3.6'
62+
env:
63+
install:
64+
- pip install pre-commit
65+
- pre-commit install-hooks
66+
script:
67+
- pre-commit run --all-files
5668

5769
script: tox --recreate
5870

@@ -65,3 +77,7 @@ notifications:
6577
skip_join: true
6678
email:
6779
80+
cache:
81+
directories:
82+
- $HOME/.cache/pip
83+
- $HOME/.cache/pre-commit

AUTHORS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Antony Lee
2323
Armin Rigo
2424
Aron Coyle
2525
Aron Curzon
26+
Aviral Verma
2627
Aviv Palivoda
2728
Barney Gale
2829
Ben Webb
@@ -81,6 +82,7 @@ Greg Price
8182
Grig Gheorghiu
8283
Grigorii Eremeev (budulianin)
8384
Guido Wesdorp
85+
Guoqiang Zhang
8486
Harald Armin Massa
8587
Henk-Jaap Wagenaar
8688
Hugo van Kemenade
@@ -125,6 +127,7 @@ Maik Figura
125127
Mandeep Bhutani
126128
Manuel Krebber
127129
Marc Schlaich
130+
Marcelo Duarte Trevisani
128131
Marcin Bachry
129132
Mark Abramowitz
130133
Markus Unterwaditzer
@@ -146,6 +149,7 @@ Michael Seifert
146149
Michal Wajszczuk
147150
Mihai Capotă
148151
Mike Lundy
152+
Miro Hrončok
149153
Nathaniel Waisbrot
150154
Ned Batchelder
151155
Neven Mundar
@@ -155,6 +159,7 @@ Oleg Sushchenko
155159
Oliver Bestwalter
156160
Omar Kohl
157161
Omer Hadari
162+
Ondřej Súkup
158163
Patrick Hayes
159164
Paweł Adamczak
160165
Pedro Algarvio
@@ -178,6 +183,7 @@ Ryan Wooden
178183
Samuel Dion-Girardeau
179184
Samuele Pedroni
180185
Segev Finer
186+
Serhii Mozghovyi
181187
Simon Gomizelj
182188
Skylar Downes
183189
Srinivas Reddy Thatiparthy
@@ -202,6 +208,7 @@ Victor Uriarte
202208
Vidar T. Fauske
203209
Vitaly Lashmanov
204210
Vlad Dragos
211+
Wil Cooley
205212
William Lee
206213
Wouter van Ackooy
207214
Xuan Luong

0 commit comments

Comments
 (0)