Skip to content
Open
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
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v6.0.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-toml
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.6
rev: v0.15.20
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/psf/black
rev: 23.11.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.5.1
hooks:
- id: black
args:
- --safe
- --target-version=py37
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.7.1
rev: v2.1.0
hooks:
- id: mypy
additional_dependencies:
Expand Down
1 change: 1 addition & 0 deletions klaus/ctagscache.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
this could be optimized in the future.
(**) "most likely": currently implemented as "most recently used"
"""

import atexit
import gzip
import os
Expand Down
10 changes: 5 additions & 5 deletions klaus/diff.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
"""
lodgeit.lib.diff
~~~~~~~~~~~~~~~~
lodgeit.lib.diff
~~~~~~~~~~~~~~~~

Render a nice diff between two things.
Render a nice diff between two things.

:copyright: 2007 by Armin Ronacher.
:license: BSD
:copyright: 2007 by Armin Ronacher.
:license: BSD
"""

from difflib import SequenceMatcher
Expand Down
2 changes: 1 addition & 1 deletion klaus/repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def blame(self, commit, path):
def get_blob_or_tree(self, commit, path):
"""Return the Git tree or blob object for `path` at `commit`."""
try:
(mode, oid) = tree_lookup_path(
mode, oid = tree_lookup_path(
self.dulwich_repo.__getitem__, commit.tree, encode_for_git(path)
)
except NotTreeError:
Expand Down
4 changes: 2 additions & 2 deletions klaus/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def _get_readme(self):

def get_readme_context(self):
try:
(readme_filename, readme_data) = self._get_readme()
readme_filename, readme_data = self._get_readme()
except KeyError:
return {
"is_markup": None,
Expand Down Expand Up @@ -385,7 +385,7 @@ def make_template_context(self, repo, namespace, rev, path):
raise NotFound("Parent path for submodule missing")

try:
(submodule_url, submodule_path) = _get_submodule(
submodule_url, submodule_path = _get_submodule(
repo, commit, encode_for_git(path)
)
except KeyError:
Expand Down
3 changes: 2 additions & 1 deletion tools/dumbtest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Very dumb testing tool: Ensures all sites respond with HTTP 2xx/3xx """
"""Very dumb testing tool: Ensures all sites respond with HTTP 2xx/3xx"""

import atexit
import re
import sys
Expand Down
Loading