Skip to content

Commit

Permalink
chore: update cruft project #77
Browse files Browse the repository at this point in the history
  • Loading branch information
proofit404 committed Jun 2, 2022
1 parent 22b2be7 commit 503c0b3
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 17 deletions.
3 changes: 2 additions & 1 deletion .coveragerc
@@ -1,13 +1,14 @@
[run]
branch = true
parallel = true
disable_warnings =
module-not-imported
source =
_generics
generics
app
configuration
examples
helpers
mddoctest
tests

Expand Down
2 changes: 1 addition & 1 deletion .cruft.json
@@ -1,6 +1,6 @@
{
"template": "https://github.com/proofit404/python-library-template",
"commit": "805d005efe453acde4b46d88e8296f09dddfcd68",
"commit": "5be61c0a2d9c772d7f81fd4539244d0203eafa58",
"checkout": null,
"context": {
"cookiecutter": {
Expand Down
6 changes: 3 additions & 3 deletions docs/subtyping.md
Expand Up @@ -19,9 +19,9 @@ something similar to `zope.interface`. But default `ABC` library is widely
supported by type checkers (like mypy) and language servers (reference search).
That's why we decided not to reinvent our own wheel.

We allow classes decorated by `@private`, `@defended` and `@delegated`
decorators inherit from interfaces (`abc.ABC` subclasses) with some additional
restrictions. See below.
We allow classes decorated by `@private` and `@delegated` decorators inherit
from interfaces (`abc.ABC` subclasses) with some additional restrictions. See
below.

```pycon

Expand Down
2 changes: 1 addition & 1 deletion release.config.js
Expand Up @@ -31,7 +31,7 @@ module.exports = {
[
"@semantic-release/git",
{
assets: ["docs/changelog.md", "pyproject.toml"],
assets: ["docs/changelog.md", "pyproject.toml", "package.json"],
},
],
[
Expand Down
3 changes: 0 additions & 3 deletions src/_generics/defended.py

This file was deleted.

3 changes: 1 addition & 2 deletions src/generics/__init__.py
@@ -1,7 +1,6 @@
"""A classy toolkit designed with OOP in mind."""
from _generics.defended import defended
from _generics.delegated import delegated
from _generics.private import private


__all__ = ["private", "defended", "delegated"]
__all__ = ["private", "delegated"]
Empty file removed testing/helpers.py
Empty file.
4 changes: 0 additions & 4 deletions tests/test_defended.py

This file was deleted.

3 changes: 1 addition & 2 deletions tests/test_subtyping.py
Expand Up @@ -3,12 +3,11 @@

import pytest

from generics import defended
from generics import delegated
from generics import private


pytestmark = pytest.mark.parametrize("f", [private, delegated, defended])
pytestmark = pytest.mark.parametrize("f", [private, delegated])


def test_allow_inheritance_from_interface(f, s):
Expand Down

0 comments on commit 503c0b3

Please sign in to comment.