Skip to content

Commit 03b69c8

Browse files
committed
Code unification
1 parent f43c843 commit 03b69c8

File tree

7 files changed

+9
-12
lines changed

7 files changed

+9
-12
lines changed

.azure_pipelines/run_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
- script: |
4747
pip install asynctest mock pytest pytest-mock pytest-asyncio pytest-sugar pytest-cov
4848
49-
pytest -vvv --junitxml=unit_result.xml --cov=exec_helpers --cov-report=xml --cov-report=html --cov-report term test
49+
pytest --junitxml=unit_result.xml --cov=exec_helpers --cov-report=xml --cov-report=html --cov-report term test
5050
displayName: PyTest
5151
5252
- task: PublishTestResults@2

.github/workflows/pythonpackage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ jobs:
2828
python setup.py develop -v
2929
- name: Test with pytest
3030
run: |
31-
py.test -vvv --cov-config .coveragerc --cov-report= --cov=exec_helpers test
31+
py.test --cov-config .coveragerc --cov-report= --cov=exec_helpers test
3232
coverage report -m --fail-under 87

.pylintrc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ disable=non-ascii-bytes-literal,
6969
locally-disabled,
7070
file-ignored,
7171
suppressed-message,
72-
no-absolute-import,
73-
old-division,
7472
comprehension-escape,
7573
similarities,
7674
too-many-ancestors,

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ _helpers:
4747

4848
script:
4949
- python setup.py develop -v
50-
- py.test -vvv --cov-config .coveragerc --cov-report= --cov=exec_helpers test
50+
- py.test --cov-config .coveragerc --cov-report= --cov=exec_helpers test
5151
- coverage report -m --fail-under 87
5252
after_success:
5353
- coveralls
@@ -83,7 +83,7 @@ jobs:
8383
name: "PEP8"
8484
install:
8585
- *upgrade_python_toolset
86-
- pip install --upgrade flake8
86+
- pip install --upgrade flake8 flake8-bugbear
8787
script:
8888
- flake8
8989

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
displayName: 'Install dependencies'
2121
2222
- script: |
23-
pytest -vvv --flake8 -m flake8 --junitxml=flake8_result.xml exec_helpers
23+
pytest --flake8 -m flake8 --junitxml=flake8_result.xml exec_helpers
2424
displayName: 'PEP8'
2525
2626
- task: PublishTestResults@2

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
except ImportError:
4040
cythonize = None
4141

42-
4342
PACKAGE_NAME = "exec_helpers"
4443

4544
with open(os.path.join(os.path.dirname(__file__), PACKAGE_NAME, "__init__.py")) as f:
@@ -123,7 +122,7 @@ def run(self):
123122
shutil.copyfile(src, dst)
124123
except (
125124
distutils.errors.DistutilsPlatformError,
126-
getattr(globals()["__builtins__"], "FileNotFoundError", OSError),
125+
FileNotFoundError,
127126
):
128127
raise BuildFailed()
129128

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,19 @@ commands =
3636
commands =
3737
python setup.py bdist_wheel
3838
pip install exec_helpers --no-index -f dist
39-
py.test -vvv {posargs:test}
39+
py.test {posargs:test}
4040

4141
[testenv:py37-nocov]
4242
commands =
4343
python setup.py bdist_wheel
4444
pip install exec_helpers --no-index -f dist
45-
py.test -vvv {posargs:test}
45+
py.test {posargs:test}
4646

4747
[testenv:py38-nocov]
4848
commands =
4949
python setup.py bdist_wheel
5050
pip install exec_helpers --no-index -f dist
51-
py.test -vvv {posargs:test}
51+
py.test {posargs:test}
5252

5353
[testenv:venv]
5454
commands = {posargs:}

0 commit comments

Comments
 (0)