Skip to content

Commit d35ff7c

Browse files
authored
Cruft ruff update (ScreenPyHQ#148)
* cruft udpate - ruff version and makefile shortcuts * updated deps * ruff rules updated * updated copyright dates
1 parent b5be493 commit d35ff7c

13 files changed

Lines changed: 825 additions & 686 deletions

File tree

.cruft.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"template": "https://github.com/ScreenPyHQ/cookiecutter_screenpy/",
3-
"commit": "4ad86820b5729801d7c765e04cfda2e953671164",
3+
"commit": "96416427ba79a718959084081e3b5d6a8860336a",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {
@@ -11,7 +11,8 @@
1111
"author": "Perry Goy",
1212
"author_email": "perry.goy@gmail.com",
1313
"github_username": "ScreenPyHQ",
14-
"_template": "https://github.com/ScreenPyHQ/cookiecutter_screenpy/"
14+
"_template": "https://github.com/ScreenPyHQ/cookiecutter_screenpy/",
15+
"_commit": "96416427ba79a718959084081e3b5d6a8860336a"
1516
}
1617
},
1718
"directory": null

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repos:
88
language_version: python3.12
99
- repo: https://github.com/astral-sh/ruff-pre-commit
1010
# Ruff version.
11-
rev: v0.5.5
11+
rev: v0.9.2
1212
hooks:
1313
- id: ruff
1414
- repo: https://github.com/pre-commit/mirrors-mypy

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019-2024 Perry Goy
3+
Copyright (c) 2019-2025 Perry Goy
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,8 @@ requirements:
4141
poetry export --without-hashes --extras dev -f requirements.txt > requirements.txt
4242

4343
.PHONY: requirements
44+
45+
cruft-update:
46+
cruft update --allow-untracked-files
47+
48+
.PHONY: cruft-update

poetry.lock

Lines changed: 781 additions & 647 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ ignore = [
8787
"D107", # missing __init__ docstring, we do that in the class docstring.
8888
"D203", # one blank line before class docstring, no thanks!
8989
"D212", # multi line summary first line, we want a one line summary.
90-
"ANN101", # missing self annotation, we only annotate self when we return it.
91-
"ANN102", # missing cls annotation, we only annotate cls when we return it.
9290
]
9391

9492
extend-safe-fixes = [
@@ -123,6 +121,7 @@ split-on-trailing-comma = false
123121
"D", # we don't need public-API-polished docstrings in tests.
124122
"FBT", # using a boolean as a test object is useful!
125123
"PLR", # likewise using specific numbers and strings in tests.
124+
"A", # import __doc__ is shadowing python builtin
126125
]
127126
"__version__.py" = ["D"]
128127

screenpy/__init__.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
ScreenPy is a composition-based test framework. It is inspired by the
1616
SerenityBDD library for Java.
1717
18-
:copyright: (c) 2019-2024 by Perry Goy.
18+
:copyright: (c) 2019-2025 by Perry Goy.
1919
:license: MIT, see LICENSE for more details.
2020
"""
2121

@@ -60,41 +60,41 @@
6060

6161
__all__ = [
6262
"AbilityError",
63-
"act",
6463
"ActionError",
6564
"Actor",
6665
"Adapter",
6766
"AnActor",
68-
"and_",
6967
"Answerable",
70-
"aside",
71-
"beat",
7268
"DeliveryError",
7369
"Describable",
7470
"Director",
7571
"ErrorKeeper",
7672
"Forgettable",
77-
"given",
78-
"given_that",
7973
"NotAnswerable",
80-
"noted",
81-
"noted_under",
8274
"NotPerformable",
8375
"NotResolvable",
8476
"Performable",
8577
"QuestionError",
8678
"Resolvable",
87-
"scene",
8879
"ScreenPyError",
89-
"settings",
90-
"the_narrator",
91-
"the_noted",
92-
"then",
9380
"UnableToAct",
9481
"UnableToAnswer",
9582
"UnableToDirect",
9683
"UnableToNarrate",
9784
"UnableToPerform",
85+
"act",
86+
"and_",
87+
"aside",
88+
"beat",
89+
"given",
90+
"given_that",
91+
"noted",
92+
"noted_under",
93+
"scene",
94+
"settings",
95+
"the_narrator",
96+
"the_noted",
97+
"then",
9898
"when",
9999
]
100100
__all__ += actions.__all__ + resolutions.__all__ + narration.__all__

screenpy/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
__author__ = metadata["Author"]
1919
__author_email__ = metadata["Author-email"]
2020
__license__ = metadata["License"]
21-
__copyright__ = f"2019-2024 {__author__}"
21+
__copyright__ = f"2019-2025 {__author__}"

screenpy/actions/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@
4040
"AssertsAllOf",
4141
"AssertsAnyOf",
4242
"AttachAFile",
43+
"AttachFile",
44+
"AttachTheFile",
4345
"AttachesAFile",
4446
"AttachesFile",
4547
"AttachesTheFile",
46-
"AttachFile",
47-
"AttachTheFile",
4848
"Attempt",
49+
"AttemptTo",
4950
"Attempts",
5051
"AttemptsTo",
51-
"AttemptTo",
5252
"Confirm",
5353
"ConfirmAllOf",
5454
"ConfirmAnyOf",
@@ -58,8 +58,8 @@
5858
"Debug",
5959
"Either",
6060
"Eventually",
61-
"GoesFor",
6261
"GoFor",
62+
"GoesFor",
6363
"Log",
6464
"MakeNote",
6565
"MakesNote",

screenpy/narration/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
"EXTREME",
1010
"HEAVY",
1111
"LIGHT",
12+
"NORMAL",
1213
"LoggingAdapter",
1314
"Narrator",
14-
"NORMAL",
1515
"StdOutAdapter",
1616
"StdOutManager",
1717
]

0 commit comments

Comments
 (0)