Skip to content

Commit a2e72eb

Browse files
committed
Updats WPS, mypy, pytest-mypy-plugin
1 parent 98f21a0 commit a2e72eb

Some content is hidden

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

47 files changed

+1020
-606
lines changed

.travis.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,9 @@ install:
1818
- poetry install
1919

2020
script:
21-
- poetry run flake8 returns tests docs
21+
- poetry run flake8 .
2222
- poetry run mypy returns tests/**/*.py
23-
- poetry run pytest tests
24-
# Temporary work-around of
25-
# https://github.com/mkurnikov/pytest-mypy-plugins/issues/2
26-
- poetry run pytest -p no:cov -o addopts="" --mypy-ini-file=setup.cfg typesafety
23+
- poetry run pytest
2724
- poetry run doc8 -q docs
2825
- poetry check
2926
- poetry run pip check

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
We follow Semantic Versions since the `0.1.0` release.
44

55

6+
## 0.10.0 WIP
7+
8+
### Misc
9+
10+
- Updates `mypy` version
11+
- Updates `wemake-python-styleguide` and introduces `nitpick`
12+
13+
614
## 0.9.0
715

816
### Features

CONTRIBUTING.md

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,35 +35,17 @@ We also use `wemake_python_styleguide` to enforce the code quality.
3535
To run all tests:
3636

3737
```bash
38-
pytest tests
39-
pytest -p no:cov -o addopts="" --mypy-ini-file=setup.cfg typesafety
38+
pytest
4039
```
4140

4241
To run linting:
4342

4443
```bash
45-
flake8 returns tests docs
44+
flake8 .
4645
```
4746

4847
These steps are mandatory during the CI.
4948

50-
### Fixing pytest coverage issue
51-
52-
Coverage does not work well with `pytest-mypy-plugin`,
53-
that's why we have two phases of `pytest` run.
54-
55-
If you accidentally mess things up
56-
and see `INTERNALERROR> coverage.misc.CoverageException` in your log,
57-
do:
58-
59-
```bash
60-
rm .coverage*
61-
rm -rf .pytest_cache htmlcov
62-
```
63-
64-
And it should solve it.
65-
Then use correct test commands.
66-
6749
## Type checks
6850

6951
We use `mypy` to run type checks on our code.

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# -- Project information -----------------------------------------------------
2222

2323
def _get_project_meta():
24-
import tomlkit # noqa: Z435
24+
import tomlkit # noqa: WPS433
2525

2626
with open('../pyproject.toml') as pyproject:
2727
file_contents = pyproject.read()

0 commit comments

Comments
 (0)