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

[pre-commit.ci] pre-commit autoupdate #59

Merged
merged 3 commits into from
Jun 27, 2023
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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ repos:
args:
- --quiet-level=2
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.272
rev: v0.0.275
hooks:
- id: ruff
args:
- --select=A,B,C,E,F,I,PL,RUF,UP,W
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.3.0
rev: v1.4.1
hooks:
- id: mypy
# By default, mypy will run with mypy --ignore-missing-imports,
Expand Down
16 changes: 10 additions & 6 deletions set_theory.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,20 @@ def set_theory(abc, ac, cde):
print(f"Set difference: abc - cde --> {sorted(abc - cde)}")
print(f"Symmetric difference: abc ^ cde --> {sorted(abc ^ cde)}")
print(
f"Is suubset: ac <= abc, abc <= abc --> {ac <= abc}, {abc <= abc}",
"Is subset: ac <= abc, abc <= abc --> "
f"{ac <= abc}, {abc <= abc}" # noqa: PLR0124
)
print(
f"Is superset: abc >= ac, abc >= abc --> {abc >= ac}, {abc >= abc}",
"Is superset: abc >= ac, abc >= abc --> "
f"{abc >= ac}, {abc >= abc}" # noqa: PLR0124
)
print(
f"Is proper suubset: ac < abc, abc < abc --> {ac < abc}, {abc < abc}",
"Is proper subset: ac < abc, abc < abc --> "
f"{ac < abc}, {abc < abc}" # noqa: PLR0124
)
print(
f"Is proper superset: abc > ac, abc > abc --> {abc > ac}, {abc > abc}",
"Is proper superset: abc > ac, abc > abc --> "
f"{abc > ac}, {abc > abc}", # noqa: PLR0124
)


Expand All @@ -33,8 +37,8 @@ def set_theory(abc, ac, cde):
Intersection: abc & cde --> ['c']
Set difference: abc - cde --> ['a', 'b']
Symmetric difference: abc ^ cde --> ['a', 'b', 'd', 'e']
Is suubset: ac <= abc, abc <= abc --> True, True
Is subset: ac <= abc, abc <= abc --> True, True
Is superset: abc >= ac, abc >= abc --> True, True
Is proper suubset: ac < abc, abc < abc --> True, False
Is proper subset: ac < abc, abc < abc --> True, False
Is proper superset: abc > ac, abc > abc --> True, False
"""