Git Product home page Git Product logo

mdspell's People

Contributors

dalehamel avatar mtuchowski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

mdspell's Issues

Wrong exit code

Hi,

I might just do something wrong, but travis doesn't fail on translation errors.

https://travis-ci.org/codingjoe/django-cc/jobs/122596051

The funny thing is, when I run the same command locally it works:

mdspell --en-us -ran "**/*.md"; echo $?
    howto/travis-ci.md
        4 | with Github. 
        9 | Travis-CI is free for OpenSource projects. We encourage you to 
       11 | OpenSource packages you rely on every da 
       20 | Next head over to [travis-ci.org](https://travis-ci.org/)  
       23 | If you have the [travis command line tool] installed  
       28 | ## Automatic PyPi deployment 
       31 | [PyPi deployment](https://docs.trav 
       34 | [travis command line tool] 
       43 | Type in your PyPi username and password and ans 
       46 | ew deployment section in your travis 
       47 | config. Similar to this: 
       65 | Github. 
       71 | Travis-CI will now do the PyPi deployment for you! 

    README.md
      114 | ### pydocstyle 
      116 | [pydocstyle][pydocstyle] checks doc strin 

>> 15 spelling errors found in 3 files
1

Ignore List

How do i ignore some word / whitelist word? So that for a particular word it won't be interpreted as typo.

Be able to invoke as library

Right now the implementation is highly coupled to calling via the command line interface.

This is a bit awkward if you want to invoke it from another library / gem (which I do).

I think it's simply a matter of adding a new class method to MdSpell that's an alternat entry point to 'run', ie:

  • Accept the configuration options as kwargs
  • Make spellchecker work on arbitrary strings instead of files (seems to be a leaky abstraction, it should only be concerned with checking strings)
  • Refactor check_file to load file contents into a string
  • Create check_string analog to check_file
  • Be able to invoke check_file or check_string as public methods

I can create this PR if you agree with the approach @mtuchowski

Command Line Can't Be Found

Hi, i try to run mdspell but seems like the CLI is not working

vmuser@vm1:~/repo $ gem install mdspell
Successfully installed mdspell-0.1.2
Parsing documentation for mdspell-0.1.2
Done installing documentation for mdspell after 0 seconds
1 gem installed
vmuser@vm1:~/repo $ mdspell
mdspell: command not found

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.