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 autoupdate #3421

Merged
merged 1 commit into from
Nov 3, 2024
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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See https://pre-commit.com/hooks.html for info on hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-ast
Expand All @@ -16,14 +16,14 @@ repos:

- repo: https://github.com/astral-sh/ruff-pre-commit
# ruff version should match the one in pyproject.toml
rev: v0.4.10
rev: v0.7.2
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format

- repo: https://github.com/rtts/djhtml
rev: '3.0.6'
rev: '3.0.7'
hooks:
- id: djhtml
- id: djcss
Expand Down
6 changes: 3 additions & 3 deletions pelican/tools/pelican_quickstart.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class _DEFAULT_PATH_TYPE(str): # noqa: SLOT000


def ask(question, answer=str, default=None, length=None):
if answer == str:
if answer is str:
r = ""
while True:
if default:
Expand All @@ -110,7 +110,7 @@ def ask(question, answer=str, default=None, length=None):

return r

elif answer == bool:
elif answer is bool:
r = None
while True:
if default is True:
Expand All @@ -134,7 +134,7 @@ def ask(question, answer=str, default=None, length=None):
else:
print("You must answer 'yes' or 'no'")
return r
elif answer == int:
elif answer is int:
r = None
while True:
if default:
Expand Down
1 change: 0 additions & 1 deletion pelican/tools/pelican_themes.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ def err(msg, die=None):
)


global _THEMES_PATH
_THEMES_PATH = os.path.join(
os.path.dirname(os.path.abspath(pelican.__file__)), "themes"
)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ dev = [
"tox>=4.11.3",
"invoke>=2.2.0",
# ruff version should match the one in .pre-commit-config.yaml
"ruff==0.4.10",
"ruff==0.7.2",
"tomli>=2.0.1; python_version < \"3.11\"",
]

Expand Down