Skip to content

Commit 8def57a

Browse files
authored
Merge branch 'master' into huggingface-transformers
2 parents af098cb + cfa3804 commit 8def57a

File tree

1,378 files changed

+159315
-20273
lines changed

Some content is hidden

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

1,378 files changed

+159315
-20273
lines changed

.github/workflows/dircheck.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Linter to ensure standard folder structure
33
"""
4+
45
import pathlib
56
import re
67
import sys
@@ -45,7 +46,7 @@
4546
f"{f}: ensure folder name only uses "
4647
f"lowercase letters, numbers, and hyphens"
4748
)
48-
has_error = True
49+
has_errors = True
4950

5051
files = sorted(_.name for _ in f.glob("*"))
5152
if "README.md" not in files:

.github/workflows/linters.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
include:
21-
- {name: Linux311, python: '3.11.5', os: ubuntu-latest}
21+
- {name: Linux312, python: '3.12.3', os: ubuntu-latest}
2222
steps:
2323
- name: Check out repository
2424
uses: actions/checkout@v2
@@ -48,7 +48,7 @@ jobs:
4848
- name: Check code style
4949
run: |
5050
. venv/bin/activate
51-
python -m flake8
51+
python -m ruff check .
5252
python -m black --check .
5353
5454
- name: Check directory layout

README.md

Lines changed: 2 additions & 2 deletions

arcade-a-primer/arcade_game.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
#
33

44
# Imports
5-
import arcade
65
import random
76

7+
import arcade
8+
89
# Constants
910
SCREEN_WIDTH = 800
1011
SCREEN_HEIGHT = 600

arcade-platformer/arcade_platformer/02_open_game_window.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
Game sounds and tile maps by author
99
"""
1010

11-
import arcade
1211
import pathlib
1312

13+
import arcade
14+
1415
# Game constants
1516
# Window dimensions
1617
SCREEN_WIDTH = 1000

arcade-platformer/arcade_platformer/03_read_level_one.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
Game sounds and tile maps by author
99
"""
1010

11-
import arcade
1211
import pathlib
1312

13+
import arcade
14+
1415
# Game constants
1516
# Window dimensions
1617
SCREEN_WIDTH = 1000

arcade-platformer/arcade_platformer/04_define_player.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
Game sounds and tile maps by author
99
"""
1010

11-
import arcade
1211
import pathlib
1312

13+
import arcade
14+
1415
# Game constants
1516
# Window dimensions
1617
SCREEN_WIDTH = 1000

arcade-platformer/arcade_platformer/05_update_and_draw.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
Game sounds and tile maps by author
99
"""
1010

11-
import arcade
1211
import pathlib
1312

13+
import arcade
14+
1415
# Game constants
1516
# Window dimensions
1617
SCREEN_WIDTH = 1000

arcade-platformer/arcade_platformer/06_keyboard_movement.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
Game sounds and tile maps by author
99
"""
1010

11-
import arcade
1211
import pathlib
1312

13+
import arcade
14+
1415
# Game constants
1516
# Window dimensions
1617
SCREEN_WIDTH = 1000

arcade-platformer/arcade_platformer/07_scrolling_view.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
Game sounds and tile maps by author
99
"""
1010

11-
import arcade
1211
import pathlib
1312

13+
import arcade
14+
1415
# Game constants
1516
# Window dimensions
1617
SCREEN_WIDTH = 1000

0 commit comments

Comments
 (0)