Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

codespell: config, workflow + typos fixed #541

Merged
merged 6 commits into from
Aug 16, 2023
Merged
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
5 changes: 5 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[codespell]
skip = .git,*.pdf,*.svg,*.ts,*.tsx,package-lock.json,data-*vocabulary.txt
# regexes
ignore-regex = r"\(\?i\).*\\\\1
ignore-words-list = te,fwe,connexion,zoon,covert,rime
22 changes: 22 additions & 0 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Codespell

on:
push:
branches: [master]
pull_request:
branches: [master]

permissions:
contents: read

jobs:
codespell:
name: Check for spelling errors
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Codespell
uses: codespell-project/actions-codespell@v2
2 changes: 1 addition & 1 deletion compose/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ First, set up the main environment variables in `.env` (see: `.env.example`).

Edit the `.env` template to set the correct variables

## Initalizing backend
## Initializing backend
Create the network, build the containers, and start services using the development configuration:

docker network create nginx-proxy # if this does not already exist
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
"default": 10000
},
"xyz": {
"description": "Tab-delimited file of coordinates from database or numpy array with XYZ coordinates. Voxels are rows and x, y, z (meaning coordinates) values are the three columnns.",
"description": "Tab-delimited file of coordinates from database or numpy array with XYZ coordinates. Voxels are rows and x, y, z (meaning coordinates) values are the three columns.",
"type": "str",
"default": null
},
Expand Down
2 changes: 1 addition & 1 deletion compose/neurosynth_compose/schemas/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ class MetaAnalysisResultSchema(BaseSchema):

@post_load
def process_data(self, data, **kwargs):
# propogate meta-analysis id to the neurovault collection
# propagate meta-analysis id to the neurovault collection
if data.get("neurovault_collection", None):
data["neurovault_collection"]["meta_analysis_id"] = data["meta_analysis_id"]

Expand Down
2 changes: 1 addition & 1 deletion compose/neurosynth_compose/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def mock_ns(monkeysession):


"""
Session / db managment tools
Session / db management tools
"""


Expand Down
2 changes: 1 addition & 1 deletion docs/taxonomy.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ The study is connected to the original journal it was published in.

### Functions

Studies can be created, cloned, and edited to accomodate your needs for your meta-analysis
Studies can be created, cloned, and edited to accommodate your needs for your meta-analysis

## Analysis

Expand Down
2 changes: 1 addition & 1 deletion docs/typical-workflows.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ If the study does indeed use a finger tapping task, she wants to keep track of t
To the left of the study there is a plus button.
She clicks on the plus button and sees she can add the study to a "study-set".
She names the studyset "finger tapping" and adds the selected study.
When she is done reading and adding all relevent studies, she notices
When she is done reading and adding all relevant studies, she notices
that the finger tapping task typically falls under three categories:
1) right handed index finger,
2) right handed multiple fingers, and
Expand Down
2 changes: 1 addition & 1 deletion store/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ First, set up the main environment variables in `.env` (see: `.env.example`).

Edit the `.env` template to set the correct variables

## Initalizing backend
## Initializing backend
Create the network, build the containers, and start services using the development configuration:

docker network create nginx-proxy
Expand Down
2 changes: 1 addition & 1 deletion store/neurostore/ingest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def ingest_neurosynth(max_rows=None):
base_study = base_studies[0]
elif len(base_studies) > 1:
source_base_study = base_studies[0]
# do not overwrite the verions column
# do not overwrite the versions column
# we want to append to this column
columns = [
c
Expand Down
2 changes: 1 addition & 1 deletion store/neurostore/tests/api/test_conditions.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def test_get_conditions(auth_client, ingest_neurovault):


def test_post_conditions(auth_client, ingest_neurovault):
my_condition = {"name": "ice cream", "description": "suprise, it's rocky road!"}
my_condition = {"name": "ice cream", "description": "surprise, it's rocky road!"}
post_resp = auth_client.post("/api/conditions/", data=my_condition)
assert post_resp.status_code == 200
post_data = post_resp.json
Expand Down
2 changes: 1 addition & 1 deletion store/neurostore/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def mock_auth(monkeysession):


"""
Session / db managment tools
Session / db management tools
"""


Expand Down
2 changes: 1 addition & 1 deletion store/neurostore/tests/test_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def test_StudySchema(auth_client, ingest_neurosynth):
StudySchema().validate(payload)


@pytest.mark.skip(reason="website convienence parameters and exported object diverged")
@pytest.mark.skip(reason="website convenience parameters and exported object diverged")
def test_compare_dataset_with_snapshot(ingest_neurosynth):
studyset = Studyset.query.first()
marshmallow_ss = StudysetSchema(context={"nested": True, "copy": True}).dump(
Expand Down
2 changes: 1 addition & 1 deletion store/scripts/load_testing/concepts.json

Large diffs are not rendered by default.

Loading