Giter Club home page Giter Club logo

Comments (18)

luzpaz avatar luzpaz commented on July 22, 2024 2

bump

from codespell.

lucasdemarchi avatar lucasdemarchi commented on July 22, 2024 2

@luzpaz there's a bug in the glob matching right now. I tried here and it seems you can work it around by providing --skip=./src/3rdParty. Not the missing /* in the end.

from codespell.

luzpaz avatar luzpaz commented on July 22, 2024

@lucasdemarchi any insight ?

from codespell.

luzpaz avatar luzpaz commented on July 22, 2024

if the documentation exists on how to do this.. please direct me to it.. thanks!

from codespell.

lucasdemarchi avatar lucasdemarchi commented on July 22, 2024

It's likely a bug in the glob match.

from codespell.

luzpaz avatar luzpaz commented on July 22, 2024

Anyone able to fix this?

from codespell.

luzpaz avatar luzpaz commented on July 22, 2024

@lucasdemarchi I ask because I want to use codespell as part of a travis-ci test that runs codespell on commits for spelling mistakes.

from codespell.

luzpaz avatar luzpaz commented on July 22, 2024

@lucasdemarchi i can't reproduce this workaround.
Tested on https://github.com/FreeCAD/FreeCAD with
codespell -d -q 3 --skip="*.po,*.ts,./src/3rdParty"

from codespell.

bartlibert avatar bartlibert commented on July 22, 2024

The workaround is not working for me either. Same scenario.

from codespell.

lucasdemarchi avatar lucasdemarchi commented on July 22, 2024

Have you tried from master? There's a recent PR that went in to address that.

from codespell.

luzpaz avatar luzpaz commented on July 22, 2024

Please release new minor version so I can test it 🙏
I have 3 directories I want to skip:

src/CXX 
src/zipios++ 
src/3rdParty 

from codespell.

larsoner avatar larsoner commented on July 22, 2024

I want to get #136 in before release.

BTW you can always install latest master just by pip with pip install --upgrade git+https://github.com/lucasdemarchi/codespell.git

from codespell.

luzpaz avatar luzpaz commented on July 22, 2024

BTW you can always install latest master just by pip with pip install --upgrade git+https://github.com/lucasdemarchi/codespell.git

So if I opt for that, should I first uninstall codespell using my package manager (pacman) and then install via pip3? (since this is python3 based, correct?)
Also, this is good to know about --upgrade git+. perhaps this tidbit of info could be added to the README.md file?

from codespell.

luzpaz avatar luzpaz commented on July 22, 2024
[beast@beast FreeCAD]$ pip3 install --upgrade git+https://github.com/lucasdemarchi/codespell.git
Collecting git+https://github.com/lucasdemarchi/codespell.git
  Cloning https://github.com/lucasdemarchi/codespell.git to /tmp/pip-ouuu_jie-build
Installing collected packages: codespell
  Running setup.py install for codespell ... error
    Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-ouuu_jie-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-3l4lajda-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build/lib
    creating build/lib/codespell_lib
    copying codespell_lib/_codespell.py -> build/lib/codespell_lib
    copying codespell_lib/__init__.py -> build/lib/codespell_lib
    creating build/lib/codespell_lib/tests
    copying codespell_lib/tests/test_basic.py -> build/lib/codespell_lib/tests
    copying codespell_lib/tests/__init__.py -> build/lib/codespell_lib/tests
    creating build/lib/codespell_lib/data
    copying codespell_lib/data/__init__.py -> build/lib/codespell_lib/data
    running egg_info
    creating codespell.egg-info
    writing codespell.egg-info/PKG-INFO
    writing dependency_links to codespell.egg-info/dependency_links.txt
    writing top-level names to codespell.egg-info/top_level.txt
    writing manifest file 'codespell.egg-info/SOURCES.txt'
    reading manifest file 'codespell.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'codespell.egg-info/SOURCES.txt'
    copying codespell_lib/data/dictionary.txt -> build/lib/codespell_lib/data
    copying codespell_lib/data/linux-kernel.exclude -> build/lib/codespell_lib/data
    running build_scripts
    creating build/scripts-3.6
    copying and adjusting bin/codespell -> build/scripts-3.6
    changing mode of build/scripts-3.6/codespell from 644 to 755
    running install_lib
    creating /usr/lib/python3.6/site-packages/codespell_lib
    error: could not create '/usr/lib/python3.6/site-packages/codespell_lib': Permission denied
    
    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-ouuu_jie-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-3l4lajda-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-ouuu_jie-build/

do i need to use sudo ?

from codespell.

larsoner avatar larsoner commented on July 22, 2024

sudo or pip3 install --user

Also, this is good to know about --upgrade git+. perhaps this tidbit of info could be added to the README.md file?

I guess we could, but it's a bit of an advanced option.

from codespell.

luzpaz avatar luzpaz commented on July 22, 2024

installed with pip3 install --user --upgrade git+https://github.com/lucasdemarchi/codespell.git
Output:

Collecting git+https://github.com/lucasdemarchi/codespell.git
  Cloning https://github.com/lucasdemarchi/codespell.git to /tmp/pip-scknrxde-build
Installing collected packages: codespell
  Running setup.py install for codespell ... done
Successfully installed codespell-1.11.0.dev0

How to I invoke codespell now? It doesn't seem to be in my path

from codespell.

larsoner avatar larsoner commented on July 22, 2024

you probably need to add ~/.local/bin to PATH

from codespell.

luzpaz avatar luzpaz commented on July 22, 2024

Sweet. It works now. Thanks @larsoner
FYI:
codespell -d -q 3 --skip="*.po,*.ts,./src/3rdParty,./src/zipios++,./src/CXX" works!
So we can close this ticket and document it in the README

from codespell.

Related Issues (20)

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.