Skip to content

Commit 7cefc61

Browse files
authored
Merge pull request #149 from libtcod/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents c7d71e5 + 396f279 commit 7cefc61

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+60
-28
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repos:
1515
- id: fix-byte-order-marker
1616
- id: detect-private-key
1717
- repo: https://github.com/astral-sh/ruff-pre-commit
18-
rev: v0.2.2
18+
rev: v0.3.2
1919
hooks:
2020
- id: ruff
2121
args: [--fix-only, --exit-non-zero-on-fix]

build_libtcod.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python
22
"""Parse and compile libtcod and SDL sources for CFFI."""
3+
34
from __future__ import annotations
45

56
import contextlib

build_sdl.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python
22
"""Build script to parse SDL headers and generate CFFI bindings."""
3+
34
from __future__ import annotations
45

56
import io

examples/audio_tone.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
44
Opens an audio device using SDL and plays a square wave for 1 second.
55
"""
6+
67
import math
78
import time
89
from typing import Any

examples/cavegen.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
This will print the result to the console, so be sure to run this from the
77
command line.
88
"""
9+
910
from typing import Any
1011

1112
import numpy as np

examples/distribution/PyInstaller/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# example script. This work is published from: United States.
55
# https://creativecommons.org/publicdomain/zero/1.0/
66
"""PyInstaller main script example."""
7+
78
import sys
89
from pathlib import Path
910

examples/distribution/cx_Freeze/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python
22
"""cx_Freeze main script example."""
3+
34
import tcod.console
45
import tcod.context
56
import tcod.event

examples/eventget.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# published from: United States.
55
# https://creativecommons.org/publicdomain/zero/1.0/
66
"""An demonstration of event handling using the tcod.event module."""
7+
78
from typing import List, Set
89

910
import tcod.context

examples/framerate.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# published from: United States.
55
# https://creativecommons.org/publicdomain/zero/1.0/
66
"""A system to control time since the original libtcod tools are deprecated."""
7+
78
import statistics
89
import time
910
from collections import deque

examples/samples_tcod.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python
22
"""This code demonstrates various usages of python-tcod."""
3+
34
# To the extent possible under law, the libtcod maintainers have waived all
45
# copyright and related or neighboring rights to these samples.
56
# https://creativecommons.org/publicdomain/zero/1.0/

0 commit comments

Comments
 (0)