Comments (18)
bump
from codespell.
@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.
@lucasdemarchi any insight ?
from codespell.
if the documentation exists on how to do this.. please direct me to it.. thanks!
from codespell.
It's likely a bug in the glob match.
from codespell.
Anyone able to fix this?
from codespell.
@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.
@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.
The workaround is not working for me either. Same scenario.
from codespell.
Have you tried from master? There's a recent PR that went in to address that.
from codespell.
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.
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.
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.
[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.
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.
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.
you probably need to add ~/.local/bin
to PATH
from codespell.
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)
- Splitting multiple 'skip' paths onto indented config file lines behaves differently than when on a single line HOT 4
- Are inline ignores restricted to hash-style comments? HOT 1
- Is it possible to combine a custom dictionary with a builtin dictionary? HOT 1
- pre-commit to remove `Used config files:` noisy output HOT 1
- Python API support HOT 7
- Better control over decoding problems reporting HOT 2
- Codespell inline ignores don't appear to work in Markdown files HOT 3
- assertIn false positivies HOT 9
- Better project description HOT 3
- Tests fail if not 'codespell' installed HOT 5
- I need to ignore "image/png" the contents of the ipynb(python) file / .pre-commit-config.yaml HOT 3
- false positive: unparseable HOT 6
- Unable to Ignore Files Completely Using .codespell.toml Configuration HOT 1
- --ignore-words is not working in pre-commit HOT 2
- Still cannot specify custom + default dictionary in codespellrc file HOT 8
- The README creates confusion about the '--interactive' flag HOT 1
- README: '--quiet-level' is mentioned but not explained HOT 3
- README: unclarity to do with 'pyproject.toml' HOT 5
- Inline word skipping does not work - at least within SublimeText HOT 8
- "blueish" correction in wrong dictionary HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codespell.