Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add slotscheck #1233

Merged
merged 4 commits into from
Jan 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ jobs:
- name: Run tests
run: |
poetry run flake8 .
# In order to make `exclude` option works we need to separate the checks
# of returns and its tests in a two separated commands
# In order to make `exclude` option work, we need to separate the checks
# of returns and its tests into two separated commands
poetry run mypy returns
poetry run mypy tests
# Different python versions are covered differently:
Expand All @@ -62,6 +62,7 @@ jobs:
poetry run poetry check
poetry run pip check
poetry run safety check --full-report
poetry run slotscheck returns --verbose
# We do this to speed up the build:
poetry run pytest typesafety -p no:cov -o addopts="" --mypy-ini-file=setup.cfg

Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ See [0Ver](https://0ver.org/).

- Adds `attempt` decorator

### Misc

- Check ``__slots__`` correctness with `slotscheck`


## 0.18.0

New Year Release! 🎄
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ Before submitting your code please do the following steps:
7. Run `mypy` to ensure that types are correct
8. Run `flake8` to ensure that style is correct
9. Run `doc8` to ensure that docs are correct
10. Run `slotscheck` to ensure that slots are correct


## Other help
Expand Down
Loading