Skip to content

Commit 125faed

Browse files
committed
Create and apply spell-checking configuration.
Fixed bad variable names where possible. Docs script has been auto-formatted by Black. Remove mentions of libomp as a required dependency.
1 parent 3cd26ff commit 125faed

23 files changed

Lines changed: 483 additions & 221 deletions

.vscode/extensions.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"ms-python.vscode-pylance",
1010
"ms-vscode.cpptools",
1111
"redhat.vscode-yaml",
12+
"streetsidesoftware.code-spell-checker",
1213
"tamasfe.even-better-toml",
1314
"xaver.clang-format",
1415
],

.vscode/settings.json

Lines changed: 268 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,272 @@
1717
"python.formatting.provider": "black",
1818
"files.associations": {
1919
"*.spec": "python",
20-
}
20+
},
21+
"cSpell.words": [
22+
"ADDA",
23+
"addressof",
24+
"addsub",
25+
"addx",
26+
"addy",
27+
"algo",
28+
"ALPH",
29+
"arange",
30+
"asarray",
31+
"ascontiguousarray",
32+
"astar",
33+
"astype",
34+
"atexit",
35+
"AUDIOCVT",
36+
"AUDIOPREV",
37+
"autoclass",
38+
"autofunction",
39+
"autogenerated",
40+
"automodule",
41+
"backlinks",
42+
"Benesch",
43+
"bezier",
44+
"bfade",
45+
"bgcolor",
46+
"BKGND",
47+
"Blit",
48+
"blits",
49+
"blitting",
50+
"bresenham",
51+
"Bresenham",
52+
"BRIGHTNESSUP",
53+
"bysource",
54+
"caeldera",
55+
"ccoef",
56+
"cdef",
57+
"cffi",
58+
"cflags",
59+
"CFLAGS",
60+
"CHARMAP",
61+
"Chebyshev",
62+
"CMWC",
63+
"Codacy",
64+
"Codecov",
65+
"codepoint",
66+
"codepoints",
67+
"coef",
68+
"Coef",
69+
"COLCTRL",
70+
"consolas",
71+
"cplusplus",
72+
"CPLUSPLUS",
73+
"CRSEL",
74+
"ctypes",
75+
"currentmodule",
76+
"datas",
77+
"dcost",
78+
"DCROSS",
79+
"dejavu",
80+
"deque",
81+
"desaturated",
82+
"DESATURATED",
83+
"devel",
84+
"DHLINE",
85+
"dlopen",
86+
"DTEEE",
87+
"DTEEN",
88+
"DTEES",
89+
"DTEEW",
90+
"dtype",
91+
"dtypes",
92+
"DVLINE",
93+
"endianness",
94+
"epub",
95+
"EQUALSAS",
96+
"errorvf",
97+
"EXSEL",
98+
"favicon",
99+
"ffade",
100+
"fgcolor",
101+
"fheight",
102+
"flto",
103+
"fmean",
104+
"fontx",
105+
"fonty",
106+
"fullscreen",
107+
"fwidth",
108+
"genindex",
109+
"GFORCE",
110+
"GLES",
111+
"globaltoc",
112+
"GLSL",
113+
"greyscale",
114+
"guass",
115+
"heapify",
116+
"heightmap",
117+
"hflip",
118+
"hillclimb",
119+
"hline",
120+
"horiz",
121+
"howto",
122+
"htbp",
123+
"htmlzip",
124+
"ifdef",
125+
"ifndef",
126+
"iinfo",
127+
"IJKL",
128+
"imageio",
129+
"INCOL",
130+
"INROW",
131+
"itleref",
132+
"ivar",
133+
"jice",
134+
"jieba",
135+
"Kaczor",
136+
"KBDILLUMDOWN",
137+
"KBDILLUMTOGGLE",
138+
"KBDILLUMUP",
139+
"keychar",
140+
"keyname",
141+
"keypress",
142+
"KEYUP",
143+
"KMOD",
144+
"KPADD",
145+
"KPDEC",
146+
"KPDIV",
147+
"KPENTER",
148+
"KPMUL",
149+
"KPSUB",
150+
"LACUNARITY",
151+
"LALT",
152+
"lbutton",
153+
"LCTRL",
154+
"LDFLAGS",
155+
"LEFTPAREN",
156+
"lerp",
157+
"LGUI",
158+
"libsdl",
159+
"libtcod",
160+
"libtcodpy",
161+
"LMASK",
162+
"lmeta",
163+
"lodepng",
164+
"LTCG",
165+
"lucida",
166+
"LWIN",
167+
"maxarray",
168+
"maxdepth",
169+
"mbutton",
170+
"MEIPASS",
171+
"mersenne",
172+
"mgrid",
173+
"milli",
174+
"minmax",
175+
"mipmap",
176+
"mipmaps",
177+
"MMASK",
178+
"modindex",
179+
"MOUSEBUTTONUP",
180+
"msilib",
181+
"MSVC",
182+
"msvcr",
183+
"mulx",
184+
"muly",
185+
"namegen",
186+
"ndarray",
187+
"ndim",
188+
"newh",
189+
"neww",
190+
"noarchive",
191+
"NODISCARD",
192+
"Nonrepresentable",
193+
"NONUSBACKSLASH",
194+
"NONUSHASH",
195+
"nullptr",
196+
"NUMLOCK",
197+
"NUMLOCKCLEAR",
198+
"Numpad",
199+
"numpy",
200+
"ogrid",
201+
"ogrids",
202+
"onefile",
203+
"OPENGL",
204+
"OPER",
205+
"PAGEUP",
206+
"pathfinding",
207+
"pathlib",
208+
"PILCROW",
209+
"PRINTF",
210+
"printn",
211+
"pycall",
212+
"pycparser",
213+
"pyinstaller",
214+
"pypiwin",
215+
"PYTHONOPTIMIZE",
216+
"Pyup",
217+
"quickstart",
218+
"RALT",
219+
"randomizer",
220+
"rbutton",
221+
"RCTRL",
222+
"redist",
223+
"Redistributable",
224+
"redistributables",
225+
"repr",
226+
"rgba",
227+
"RGUI",
228+
"RIGHTPAREN",
229+
"RMASK",
230+
"rmeta",
231+
"roguelike",
232+
"rpath",
233+
"RRGGBB",
234+
"rtype",
235+
"RWIN",
236+
"scalex",
237+
"scaley",
238+
"Scancode",
239+
"scipy",
240+
"scoef",
241+
"sdist",
242+
"SDL's",
243+
"SDLCALL",
244+
"sdlevent",
245+
"SDLK",
246+
"setuptools",
247+
"SHADOWCAST",
248+
"SMILIE",
249+
"stdeb",
250+
"struct",
251+
"structs",
252+
"SUBP",
253+
"SYSREQ",
254+
"tablefmt",
255+
"tcod",
256+
"tcoddoc",
257+
"TCODK",
258+
"TCODLIB",
259+
"TEEE",
260+
"TEEW",
261+
"Tileset",
262+
"tilesets",
263+
"tilesheet",
264+
"timeit",
265+
"toctree",
266+
"todos",
267+
"tolist",
268+
"tris",
269+
"truetype",
270+
"undoc",
271+
"Unifont",
272+
"upscaling",
273+
"VAFUNC",
274+
"vcoef",
275+
"venv",
276+
"vertic",
277+
"vflip",
278+
"vline",
279+
"VOLUMEUP",
280+
"voronoi",
281+
"vsync",
282+
"WASD",
283+
"xdst",
284+
"xrel",
285+
"ydst",
286+
"yrel"
287+
]
21288
}

CHANGELOG.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,7 @@ Changed
10971097
- tcod.console: `Console.blit` parameters have been rearranged.
10981098
Most of the parameters are now optional.
10991099
- tcod.noise: `Noise.__init__` parameter `rand` is now named `seed`.
1100-
- tdl: Changed `set_fps` paramter name to `fps`.
1100+
- tdl: Changed `set_fps` parameter name to `fps`.
11011101
Fixed
11021102
- tcod.bsp: Corrected spelling of max_vertical_ratio.
11031103

@@ -1140,7 +1140,7 @@ Fixed
11401140
Changed
11411141
- `KeyEvent`'s with `text` now have all their modifier keys set to False.
11421142
Fixed
1143-
- Undefined behaviour in text events caused crashes on 32-bit builds.
1143+
- Undefined behavior in text events caused crashes on 32-bit builds.
11441144

11451145
3.0.0 - 2017-03-21
11461146
------------------
@@ -1166,7 +1166,7 @@ Fixed
11661166
------------------
11671167
Changed
11681168
- Dependencies updated, tdl now requires libtcod-cffi 2.x.x
1169-
- Some event behaviours have changed with SDL2, event keys might be different
1169+
- Some event behaviors have changed with SDL2, event keys might be different
11701170
than what you expect.
11711171
Removed
11721172
- Key repeat functions were removed from SDL2.
@@ -1203,7 +1203,7 @@ Removed
12031203
https://github.com/HexDecimal/libtcod-cffi
12041204
You can use this library to have some raw access to libtcod if you want.
12051205
Plus it can be used alongside TDL.
1206-
- The libtocd console objects in Console instances have been made public.
1206+
- The libtcod console objects in Console instances have been made public.
12071207
- Added tdl.event.wait function. This function can called with a timeout and
12081208
can automatically call tdl.flush.
12091209

@@ -1262,7 +1262,7 @@ Removed
12621262
------------------
12631263
- Some of the setFont parameters were incorrectly labeled and documented.
12641264
- setFont can auto-detect tilesets if the font sizes are in the filenames.
1265-
- Added some X11 unicode tilesets, including unifont.
1265+
- Added some X11 unicode tilesets, including Unifont.
12661266

12671267
1.1.2 - 2012-12-13
12681268
------------------

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ use with pycparser.
3636

3737
- Open a command prompt in the cloned git directory.
3838
- Assuming a Debian based distribution of Linux.
39-
Install tcod's dependancies with this command:
40-
`sudo apt install gcc python-dev libsdl2-dev libffi-dev libomp-dev`
39+
Install tcod's dependencies with this command:
40+
`sudo apt install gcc python-dev libsdl2-dev libffi-dev`
4141
- Make sure the libtcod submodule is downloaded with this command:
4242
`git submodule update --init`
4343
- Install an editable version of tdl with this command:

build_libtcod.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ def __init__(self, path: str) -> None:
6262
header = f.read()
6363
header = RE_COMMENT.sub("", header)
6464
header = RE_CPLUSPLUS.sub("", header)
65-
for dependancy in RE_INCLUDE.findall(header):
66-
depends.add(os.path.normpath(os.path.join(directory, dependancy)))
65+
for dependency in RE_INCLUDE.findall(header):
66+
depends.add(os.path.normpath(os.path.join(directory, dependency)))
6767
header = RE_PREPROCESSOR.sub("", header)
6868
header = RE_TAGS.sub("", header)
6969
header = RE_VAFUNC.sub("", header)

debian/changelog

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ tdl (4.3.2-1) unstable; urgency=low
22

33
* source package automatically created by stdeb 0.8.5
44

5-
-- Kyle Stewart <4b796c65+tdl@gmail.com> Mon, 02 Apr 2018 16:36:32 -0700
5+
-- Kyle Benesch <4b796c65+tdl@gmail.com> Mon, 02 Apr 2018 16:36:32 -0700

debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Source: tdl
2-
Maintainer: Kyle Stewart <4b796c65+tdl@gmail.com>
2+
Maintainer: Kyle Benesch <4b796c65+tdl@gmail.com>
33
Section: python
44
Priority: optional
55
Build-Depends: dh-python, python-setuptools (>= 0.6b3), python3-setuptools, python-all-dev (>= 2.6.6-3), python3-all-dev, debhelper (>= 9), libsdl2-dev, python-pycparser, python3-pycparser, python-cffi, python3-cffi, python-numpy, python3-numpy

debian/copyright

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
Copyright (c) 2017, Kyle Stewart
1+
Copyright (c) 2017, Kyle Benesch
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without
5-
modification, are permitted provided that the following conditions are met:
5+
modification, are permitted provided that the following conditions are met:
66

77
1. Redistributions of source code must retain the above copyright notice, this
8-
list of conditions and the following disclaimer.
8+
list of conditions and the following disclaimer.
99
2. Redistributions in binary form must reproduce the above copyright notice,
1010
this list of conditions and the following disclaimer in the documentation
11-
and/or other materials provided with the distribution.
11+
and/or other materials provided with the distribution.
1212

1313
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
1414
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
@@ -22,5 +22,5 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2222
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2323

2424
The views and conclusions contained in the software and documentation are those
25-
of the authors and should not be interpreted as representing official policies,
26-
either expressed or implied, of the FreeBSD Project.
25+
of the authors and should not be interpreted as representing official policies,
26+
either expressed or implied, of the FreeBSD Project.

0 commit comments

Comments
 (0)