Comments (2)
Sure - I've recently added these CI tests, which are documented a bit here
If you scroll up in the error log a bit, you'll see this:
Reorder python imports...................................................Failed
- hook id: reorder-python-imports
- exit code: 1
- files were modified by this hook
Reordering imports in augraphy/augmentations/__init__.py
Reordering imports in augraphy/augmentations/strikethrough.py
Add trailing commas......................................................Failed
- hook id: add-trailing-comma
- exit code: 1
- files were modified by this hook
Rewriting augraphy/utilities/figsharedownloader.py
Rewriting augraphy/augmentations/strikethrough.py
black....................................................................Failed
- hook id: black
- files were modified by this hook
reformatted augraphy/augmentations/dirtydrum.py
reformatted augraphy/augmentations/badphotocopy.py
reformatted augraphy/augmentations/lib.py
reformatted augraphy/augmentations/folding.py
reformatted augraphy/augmentations/lowinkline.py
reformatted augraphy/augmentations/pencilscribbles.py
reformatted augraphy/augmentations/strikethrough.py
reformatted augraphy/base/paperfactory.py
reformatted augraphy/utilities/figsharedownloader.py
reformatted augraphy/utilities/imageoverlay.py
reformatted augraphy/utilities/overlaybuilder.py
All done! ✨ 🍰 ✨
11 files reformatted, 35 files left unchanged.
What this means is, the code checkers we run in GitHub Actions thought there were incorrect parts of those files, so they changed them to the correct format. These tools can't automatically fix the files you commit or push, but if you use pre-commit
(documented in https://github.com/sparkfish/augraphy/blob/dev/doc/contributing.md) locally, they can fix those files, prevent you from committing incorrectly-formatted code, and then when you commit again, the files you commit will be correctly formatted.
Try installing pre-commit
with pip install pre-commit
, and then in your project directory run pre-commit run --all-files
to make the code checkers reformat everything.
Let me know if you need more help
from augraphy.
Looks like you got it
from augraphy.
Related Issues (20)
- Callable pipeline HOT 2
- Develop Augmentations that Simulate Images Taken by Camera Phone HOT 1
- Add Pattern-based Distortion Generator HOT 6
- Add `InkShifter` Augmentation to Shift Ink Pixels Randomly and Follow Background Shadows
- Add Wrinkled, Crumpled Paper Augmentation HOT 1
- Create Utility Function for Exposing Underlying Pixel Colors
- Empty Pipeline lowers image quality HOT 12
- Add Augmentation for Shadows Cast onto Camera-Sourced Document Images HOT 1
- Create Baseline Performance Benchmark; Apply Initial Optimizations Using Numba HOT 2
- Create Example Using Dataloader for PyTorch and TensorFlow HOT 1
- Add Python 3.11 Support, Drop Python 3.7 HOT 2
- Images Broken in PyPI Listing HOT 2
- Reflected Light from Camera Flash or other Bright Sources HOT 1
- Add Color Shifting / 3D Blur Effect HOT 4
- Improve PageBorder effect HOT 1
- Add support for bounding box, keypoints and mask. HOT 1
- Add `InkColorSwap` to Replace the Color Used for Lettering in a Document HOT 1
- Add `InkMottling` Augmentation to Ensure Ink is Non-Uniform HOT 1
- Add support for image with alpha layer. HOT 1
- Color range in InkBleed is not working 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 augraphy.