Skip to content

Add codespell: configuration, workflow (to alert on new added) and some typos fixed #69

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
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
4 changes: 4 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[codespell]
skip = .git,*.pdf,*.svg,*.min.js,yarn.lock,vendor_modules
#
# ignore-words-list =
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 client/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ webpackConfig.module.loaders.push({
// css-loader not to duplicate minimization.
const BASE_CSS_LOADER = 'css?sourceMap&-minimize';

// Add any packge names here whose styles need to be treated as CSS modules.
// Add any package names here whose styles need to be treated as CSS modules.
// These paths will be combined into a single regex.
const PATHS_TO_TREAT_AS_CSS_MODULES = [
// 'react-toolbox', (example)
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/EditColumnModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default class EditColumnModal extends React.Component {
ref={c => this._editableGrid = c}
/>
</div>
{/* A div below fixes Handsontable issue with Copy & Paste in a Boostrap modal dialog */}
{/* A div below fixes Handsontable issue with Copy & Paste in a Bootstrap modal dialog */}
<div id="CopyPasteDiv" style={{position: 'fixed', top: -10000, left: -10000}}>
<textarea
className="copyPaste"
Expand Down
2 changes: 1 addition & 1 deletion client/src/store/createStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default (initialState = {}, history) => {
// ======================================================
const enhancers = [];
if (__DEBUG__) {
// Disbale devtools
// Disable devtools
// const devToolsExtension = window.devToolsExtension;
// if (typeof devToolsExtension === 'function') {
// enhancers.push(devToolsExtension());
Expand Down
2 changes: 1 addition & 1 deletion server/nlweb/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import tempfile

import matplotlib
# Force matplotlib to not use an Xwindows backend.
# Force matplotlib to not use an X backend.
# Otherwise you'll get this error:
# _tkinter.TclError: no display name and no $DISPLAY environment variable
matplotlib.use('Agg')
Expand Down
2 changes: 1 addition & 1 deletion server/nlweb/views/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def create_test():

model_id = data.get('modelId')
if model_id:
# Check existance
# Check existence
MLModel.query.get_or_404(int(model_id))

model_test = ModelTest(state=ModelTest.STATE_QUEUED,
Expand Down