Skip to content

Commit c03e0bc

Browse files
committed
Some style fixing.
1 parent 1253f3e commit c03e0bc

File tree

11 files changed

+29
-106
lines changed

11 files changed

+29
-106
lines changed

.appveyor.yml

+17-61
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,33 @@
1+
# NOTE: this file is auto-generated via ci/bootstrap.py (ci/templates/appveyor.yml).
12
version: '{branch}-{build}'
23
build: off
34
environment:
45
matrix:
56
- TOXENV: check
6-
TOXPYTHON: C:\Python36\python.exe
7-
PYTHON_HOME: C:\Python36
8-
PYTHON_VERSION: '3.6'
9-
PYTHON_ARCH: '32'
10-
- TOXENV: py27
11-
TOXPYTHON: C:\Python27\python.exe
12-
PYTHON_HOME: C:\Python27
13-
PYTHON_VERSION: '2.7'
14-
PYTHON_ARCH: '32'
15-
- TOXENV: py27
16-
TOXPYTHON: C:\Python27-x64\python.exe
17-
PYTHON_HOME: C:\Python27-x64
18-
PYTHON_VERSION: '2.7'
19-
PYTHON_ARCH: '64'
20-
WINDOWS_SDK_VERSION: v7.0
21-
- TOXENV: py35
22-
TOXPYTHON: C:\Python35\python.exe
23-
PYTHON_HOME: C:\Python35
24-
PYTHON_VERSION: '3.5'
25-
PYTHON_ARCH: '32'
26-
- TOXENV: py35
27-
TOXPYTHON: C:\Python35-x64\python.exe
28-
PYTHON_HOME: C:\Python35-x64
29-
PYTHON_VERSION: '3.5'
30-
PYTHON_ARCH: '64'
31-
- TOXENV: py36
32-
TOXPYTHON: C:\Python36\python.exe
33-
PYTHON_HOME: C:\Python36
34-
PYTHON_VERSION: '3.6'
35-
PYTHON_ARCH: '32'
36-
- TOXENV: py36
37-
TOXPYTHON: C:\Python36-x64\python.exe
38-
PYTHON_HOME: C:\Python36-x64
39-
PYTHON_VERSION: '3.6'
40-
PYTHON_ARCH: '64'
41-
- TOXENV: py37
42-
TOXPYTHON: C:\Python37\python.exe
43-
PYTHON_HOME: C:\Python37
44-
PYTHON_VERSION: '3.7'
45-
PYTHON_ARCH: '32'
46-
- TOXENV: py37
47-
TOXPYTHON: C:\Python37-x64\python.exe
48-
PYTHON_HOME: C:\Python37-x64
49-
PYTHON_VERSION: '3.7'
50-
PYTHON_ARCH: '64'
51-
- TOXENV: py38
52-
TOXPYTHON: C:\Python38\python.exe
53-
PYTHON_HOME: C:\Python38
54-
PYTHON_VERSION: '3.8'
55-
PYTHON_ARCH: '32'
56-
- TOXENV: py38
57-
TOXPYTHON: C:\Python38-x64\python.exe
58-
PYTHON_HOME: C:\Python38-x64
59-
PYTHON_VERSION: '3.8'
60-
PYTHON_ARCH: '64'
7+
- TOXENV: 'py27-pytest46-xdist27-coverage45,py27-pytest46-xdist27-coverage52'
8+
- TOXENV: 'py35-pytest46-xdist27-coverage45,py35-pytest46-xdist27-coverage52'
9+
- TOXENV: 'py36-pytest46-xdist27-coverage45,py36-pytest46-xdist27-coverage52,py36-pytest46-xdist33-coverage45,py36-pytest46-xdist33-coverage52,py36-pytest54-xdist33-coverage45,py36-pytest54-xdist33-coverage52,py36-pytest60-xdist33-coverage52'
10+
- TOXENV: 'py37-pytest46-xdist27-coverage45,py37-pytest46-xdist27-coverage52,py37-pytest46-xdist33-coverage45,py37-pytest46-xdist33-coverage52,py37-pytest54-xdist33-coverage45,py37-pytest54-xdist33-coverage52,py37-pytest60-xdist33-coverage52'
11+
- TOXENV: 'pypy-pytest46-xdist27-coverage45,pypy-pytest46-xdist27-coverage52'
12+
6113
init:
6214
- ps: echo $env:TOXENV
6315
- ps: ls C:\Python*
6416
install:
65-
- '%PYTHON_HOME%\python -mpip install --progress-bar=off tox -rci/requirements.txt'
66-
- '%PYTHON_HOME%\Scripts\virtualenv --version'
67-
- '%PYTHON_HOME%\Scripts\easy_install --version'
68-
- '%PYTHON_HOME%\Scripts\pip --version'
69-
- '%PYTHON_HOME%\Scripts\tox --version'
17+
- IF "%TOXENV:~0,5%" == "pypy-" choco install --no-progress python.pypy
18+
- IF "%TOXENV:~0,6%" == "pypy3-" choco install --no-progress pypy3
19+
- SET PATH=C:\tools\pypy\pypy;%PATH%
20+
- C:\Python37\python -m pip install -U "virtualenv>=16.5.0"
21+
- C:\Python37\python -m pip install tox
22+
7023
test_script:
71-
- cmd /E:ON /V:ON /C .\ci\appveyor-with-compiler.cmd %PYTHON_HOME%\Scripts\tox
24+
- C:\Python37\python -m tox
25+
7226
on_failure:
7327
- ps: dir "env:"
7428
- ps: get-content .tox\*\log\*
29+
artifacts:
30+
- path: dist\*
7531

7632
### To enable remote debugging uncomment this (also, see: http://www.appveyor.com/docs/how-to/rdp-to-build-worker):
7733
# on_finish:

.github/ISSUE_TEMPLATE/bug_report.md

-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,3 @@ If you paste raw code make sure you quote it, eg:
2929
def foobar():
3030
pass
3131
```
32-

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# pre-commit install
33
# To update the pre-commit hooks run:
44
# pre-commit install-hooks
5-
exclude: '^(.tox|ci/templates|.bumpversion.cfg)(/|$)'
5+
exclude: '^(src/.*\.pth|\.tox|ci/templates|\.bumpversion\.cfg)(/|$)'
66
repos:
77
- repo: https://github.com/pre-commit/pre-commit-hooks
88
rev: master

MANIFEST.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ include README.rst
2323

2424
include tox.ini .travis.yml .appveyor.yml .readthedocs.yml .pre-commit-config.yaml
2525

26-
global-exclude *.py[cod] __pycache__/* *.so *.dylib
26+
global-exclude *.py[cod] __pycache__/* *.so *.dylib .coverage .coverage.*

appveyor.yml

-34
This file was deleted.

ci/bootstrap.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ def check_call(args):
2020
print("+", *args)
2121
subprocess.check_call(args)
2222

23+
2324
def exec_in_env():
2425
env_path = join(base_path, ".tox", "bootstrap")
2526
if sys.platform == "win32":
@@ -47,6 +48,7 @@ def exec_in_env():
4748
print("+ exec", python_executable, __file__, "--no-env")
4849
os.execv(python_executable, [python_executable, __file__, "--no-env"])
4950

51+
5052
def main():
5153
import jinja2
5254

@@ -79,6 +81,7 @@ def main():
7981
print("Wrote {}".format(name))
8082
print("DONE.")
8183

84+
8285
if __name__ == "__main__":
8386
args = sys.argv[1:]
8487
if args == ["--no-env"]:
@@ -88,4 +91,3 @@ def main():
8891
else:
8992
print("Unexpected arguments {0}".format(args), file=sys.stderr)
9093
sys.exit(1)
91-

docs/conf.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
import os
55

6+
import sphinx_py3doc_enhanced_theme
67

78
extensions = [
89
'sphinx.ext.autodoc',
@@ -33,7 +34,7 @@
3334
'issue': ('https://github.com/pytest-dev/pytest-cov/issues/%s', '#'),
3435
'pr': ('https://github.com/pytest-dev/pytest-cov/pull/%s', 'PR #'),
3536
}
36-
import sphinx_py3doc_enhanced_theme
37+
3738
html_theme = "sphinx_py3doc_enhanced_theme"
3839
html_theme_path = [sphinx_py3doc_enhanced_theme.get_html_theme_path()]
3940
html_theme_options = {

docs/index.rst

-1
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,3 @@ Indices and tables
2727
* :ref:`genindex`
2828
* :ref:`modindex`
2929
* :ref:`search`
30-

examples/adhoc-layout/setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from setuptools import setup, find_packages
2-
1+
from setuptools import find_packages
2+
from setuptools import setup
33

44
setup(
55
name='example',

examples/src-layout/setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from setuptools import setup, find_packages
2-
1+
from setuptools import find_packages
2+
from setuptools import setup
33

44
setup(
55
name='example',

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@ commands =
7373
python setup.py check --strict --metadata --restructuredtext
7474
check-manifest {toxinidir}
7575
flake8 src tests setup.py
76-
isort --check-only --diff --recursive src tests setup.py
76+
isort --check-only --diff src tests setup.py

0 commit comments

Comments
 (0)