Skip to content

Commit 0392b80

Browse files
authored
Merge pull request #1093 from yarikoptic/enh-codespell
codespell: workflow, config + typos fixed
2 parents e2bfe7a + 2ce579d commit 0392b80

19 files changed

+48
-21
lines changed

.codespellrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[codespell]
2+
skip = .git,*.pdf,*.svg,*.csv,*.ipynb,*.drawio
3+
# Rever -- nobody knows
4+
# numer -- numerator variable
5+
ignore-words-list = rever,numer

.github/workflows/codespell.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Codespell
3+
4+
on:
5+
push:
6+
branches: [master]
7+
pull_request:
8+
branches: [master]
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
codespell:
15+
name: Check for spelling errors
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v3
21+
- name: Codespell
22+
uses: codespell-project/actions-codespell@v2

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
- Fixed - Fix queries with backslashes ([#999](https://github.com/datajoint/datajoint-python/issues/999)) PR [#1052](https://github.com/datajoint/datajoint-python/pull/1052)
3232

3333
### 0.13.7 -- Jul 13, 2022
34-
- Fixed - Fix networkx incompatable change by version pinning to 2.6.3 (#1035) PR #1036
34+
- Fixed - Fix networkx incompatible change by version pinning to 2.6.3 (#1035) PR #1036
3535
- Added - Support for serializing numpy datetime64 types (#1022) PR #1036
3636
- Changed - Add traceback to default logging PR #1036
3737

@@ -83,7 +83,7 @@
8383
- Fixed - `schema.list_tables()` is not topologically sorted (#838) PR #893
8484
- Fixed - Diagram part tables do not show proper class name (#882) PR #893
8585
- Fixed - Error in complex restrictions (#892) PR #893
86-
- Fixed - WHERE and GROUP BY clases are dropped on joins with aggregation (#898, #899) PR #893
86+
- Fixed - WHERE and GROUP BY classes are dropped on joins with aggregation (#898, #899) PR #893
8787

8888
### 0.13.0 -- Mar 24, 2021
8989
- Re-implement query transpilation into SQL, fixing issues (#386, #449, #450, #484, #558). PR #754

LNX-docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ services:
4444
interval: 15s
4545
fakeservices.datajoint.io:
4646
<<: *net
47-
image: datajoint/nginx:v0.2.5
47+
image: datajoint/nginx:v0.2.6
4848
environment:
4949
- ADD_db_TYPE=DATABASE
5050
- ADD_db_ENDPOINT=db:3306

datajoint/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
DataJoint for Python is a framework for building data piplines using MySQL databases
2+
DataJoint for Python is a framework for building data pipelines using MySQL databases
33
to represent pipeline structure and bulk storage systems for large objects.
44
DataJoint is built on the foundation of the relational data model and prescribes a
55
consistent method for organizing, populating, and querying data.

datajoint/autopopulate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def _job_key(self, key):
118118

119119
def _jobs_to_do(self, restrictions):
120120
"""
121-
:return: the query yeilding the keys to be computed (derived from self.key_source)
121+
:return: the query yielding the keys to be computed (derived from self.key_source)
122122
"""
123123
if self.restriction:
124124
raise DataJointError(

datajoint/blob.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ def pack_dict(self, d):
449449
)
450450

451451
def read_struct(self):
452-
"""deserialize matlab stuct"""
452+
"""deserialize matlab struct"""
453453
n_dims = self.read_value()
454454
shape = self.read_value(count=n_dims)
455455
n_elem = np.prod(shape, dtype=int)

datajoint/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def conn(
113113
:param init_fun: initialization function
114114
:param reset: whether the connection should be reset or not
115115
:param use_tls: TLS encryption option. Valid options are: True (required), False
116-
(required no TLS), None (TLS prefered, default), dict (Manually specify values per
116+
(required no TLS), None (TLS preferred, default), dict (Manually specify values per
117117
https://dev.mysql.com/doc/refman/5.7/en/connection-options.html#encrypted-connection-options).
118118
"""
119119
if not hasattr(conn, "connection") or reset:

datajoint/schemas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
def ordered_dir(class_):
2323
"""
24-
List (most) attributes of the class including inherited ones, similar to `dir` build-in function,
24+
List (most) attributes of the class including inherited ones, similar to `dir` built-in function,
2525
but respects order of attribute declaration as much as possible.
2626
2727
:param class_: class to list members for

datajoint/table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def ancestors(self, as_objects=False):
230230

231231
def parts(self, as_objects=False):
232232
"""
233-
return part tables either as entries in a dict with foreign key informaiton or a list of objects
233+
return part tables either as entries in a dict with foreign key information or a list of objects
234234
235235
:param as_objects: if False (default), the output is a dict describing the foreign keys. If True, return table objects.
236236
"""

0 commit comments

Comments
 (0)