Skip to content

Commit 79eabe7

Browse files
committed
Code unification
1 parent 4c8a39e commit 79eabe7

File tree

12 files changed

+41
-37
lines changed

12 files changed

+41
-37
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 pytest pytest-sugar pytest-cov
4848
49-
pytest -vvv --junitxml=unit_result.xml --cov=advanced_descriptors --cov-report=xml --cov-report=html --cov-report term test
49+
pytest --junitxml=unit_result.xml --cov=advanced_descriptors --cov-report=xml --cov-report=html --cov-report term test
5050
displayName: PyTest
5151
5252
- task: PublishTestResults@2

.coveragerc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[run]
22
source =
3-
advanced_descriptors
3+
advanced_descriptors
44
omit =
5-
test/*
5+
test/*
66
branch = True
77
[report]
88
exclude_lines =

.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=advanced_descriptors test
31+
py.test --cov-config .coveragerc --cov-report= --cov=advanced_descriptors test
3232
coverage report -m --fail-under 89

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
### Test results
22
/*_result*.xml
33
/report.html
4+
/mypy_report
45
/assets/*
56
.cache/*
67
.pytest_cache/*
@@ -10,7 +11,7 @@
1011

1112
### Generated code
1213
/advanced_descriptors/*.c
13-
/pip-wheel-metadata/
14+
/pip-wheel-metadata
1415
### TortoiseGit template
1516
# Project-level settings
1617
/.tgitconfig

.pylintrc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,9 @@ enable=all
6666

6767
disable=non-ascii-bytes-literal,
6868
raw-checker-failed,
69-
bad-inline-option,
7069
locally-disabled,
7170
file-ignored,
7271
suppressed-message,
73-
no-absolute-import,
74-
eq-without-hash,
7572
comprehension-escape,
7673
similarities,
7774
too-many-ancestors,
@@ -83,6 +80,7 @@ disable=non-ascii-bytes-literal,
8380
too-many-locals,
8481
too-many-statements,
8582
too-many-instance-attributes,
83+
too-many-lines,
8684
misplaced-comparison-constant,
8785
bad-continuation,
8886
broad-except,

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ _helpers:
2121
- &install_cython pip install --upgrade Cython
2222
- &build_package python setup.py bdist_wheel
2323
- &install_built pip install advanced_descriptors --no-index -f dist
24-
- &test_no_cov py.test -vv test
24+
- &test_no_cov py.test -vvv test
2525
- &test_cythonized
2626
stage: Test cythonized
2727
install:
@@ -47,7 +47,7 @@ _helpers:
4747

4848
script:
4949
- python setup.py develop -v
50-
- py.test -vvv --cov-config .coveragerc --cov-report= --cov=advanced_descriptors test
50+
- py.test --cov-config .coveragerc --cov-report= --cov=advanced_descriptors test
5151
- coverage report -m --fail-under 89
5252
after_success:
5353
- coveralls
@@ -75,7 +75,7 @@ jobs:
7575
install:
7676
- *upgrade_python_toolset
7777
- *install_deps
78-
- pip install --upgrade "mypy >= 0.700"
78+
- pip install --upgrade "mypy >= 0.720"
7979
script:
8080
- python setup.py --version
8181
- mypy --strict advanced_descriptors
@@ -93,7 +93,7 @@ jobs:
9393
# - *upgrade_python_toolset
9494
# - pip install --upgrade pydocstyle
9595
# script:
96-
# - pydocstyle advanced_descriptors
96+
# - pydocstyle -v advanced_descriptors
9797
- <<: *code_style_check
9898
name: "Black formatting"
9999
install:

azure-pipelines.yml

Lines changed: 1 addition & 2 deletions
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 advanced_descriptors
23+
pytest --flake8 -m flake8 --junitxml=flake8_result.xml advanced_descriptors
2424
displayName: 'PEP8'
2525
2626
- task: PublishTestResults@2
@@ -107,7 +107,6 @@ jobs:
107107
- template: .azure_pipelines/run_tests.yml
108108
parameters: {name: 'Python_37', python: '3.7', architecture: 'x86', kind: 'cython'}
109109

110-
111110
- job: 'Build_and_deploy'
112111
dependsOn:
113112
- Python_36_x64_native

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# Minimum requirements for the build system to execute.
33
# PEP 508 specifications for PEP 518.
44
requires = [
5-
"setuptools >= 21.0.0,!=24.0.0,!=34.0.0,!=34.0.1,!=34.0.2,!=34.0.3,!=34.1.0,!=34.1.1,!=34.2.0,!=34.3.0,!=34.3.1,!=34.3.2,!=36.2.0",
5+
"setuptools >= 21.0.0,!=24.0.0,!=34.0.0,!=34.0.1,!=34.0.2,!=34.0.3,!=34.1.0,!=34.1.1,!=34.2.0,!=34.3.0,!=34.3.1,!=34.3.2,!=36.2.0", # PSF/ZPL
66
"wheel",
7-
"setuptools_scm"
7+
"setuptools_scm",
88
]
99
build-backend="setuptools.build_meta"
1010

pytest.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[pytest]
22
addopts = -vvv -s -p no:django -p no:ipdb
33
testpaths = test
4+
mock_use_standalone_module = false

setup.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ project_urls =
44
Bug Tracker = https://github.com/python-useful-helpers/advanced-descriptors/issues
55
Documentation = https://advanced-descriptors.readthedocs.io/
66

7+
long_description = file: README.rst
8+
79
[options]
810
zip_safe = False
911
packages = find:
@@ -37,6 +39,8 @@ exclude =
3739
ignore =
3840
E203,
3941
# whitespace before ':'
42+
W503,
43+
# line break before binary operator
4044
D401,
4145
# First line should be in imperative mood; try rephrasing
4246
D202,

0 commit comments

Comments
 (0)