Comments (3)
Hi Michal
black: for formatting (also would switch to 4 spaces instead of 2)
I think the 4 spaces makes life more difficult when sticking to the 80 characters / line rule. Since the entire codebase is written with 2 spaces, I think I'd rather stick to 2 :)
Example file I like using is here, though there are other checks, such as for typing and documentation: https://github.com/theislab/squidpy/blob/master/.pre-commit-config.yaml
black/isort are configured here: https://github.com/theislab/squidpy/blob/master/pyproject.toml#L5-L58
This sounds good! So we only need to add your .pre-commit-config.yaml
to the repo, right? please go ahead with a PR, I am happy to validate it.
from ott.
on a related note, I'd add this additional flags to .gitignore
# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
from ott.
That sounds like a good idea! I am not sure it is customary to add the .gitignore in the github folder, but it does indeed make life a bit easier for people that fork and want to send a PR for the first time. If you think it's usual I am happy to add it too if you send a PR!
from ott.
Related Issues (20)
- `rank2` lr initializer not reproducible between 0.4.3 and 0.4.4 HOT 2
- Implement the principled initialisation HOT 4
- AttributeError -> with: sinkhorn_divergence - when: passing in sinkhorn_kwargs={''rank"=#someInteger} HOT 2
- AttributeError: module 'jax.random' has no attribute 'PRNGKeyArray' HOT 2
- how to compute the (bures) wasserstein distance between gaussians of different dimensions HOT 10
- Remove legacy `bool` option when scaling the cost matrix
- Add CITATION.cff HOT 1
- `converged` flag compatibility with `min_iterations` logic HOT 3
- Sinkhorn iteration is not converging in A100 GPU HOT 5
- bug in documentation
- Effects not supported in `custom_vjp` error when using GromovWasserstein HOT 14
- Increased GPU memory usage when using a cost_fn different from costs.SqEuclidean() HOT 10
- `compute_sparse_laplacian` gives int32 vs int64 index mismatch when input is from scipy csr
- Modify neural methods's `__call__` to do just one step
- Misnumbered equation
- linear and quadratic part get mixed up in genot HOT 4
- Unbalanced FGW doesn't converge when margins are provided HOT 2
- Add new geometry class for triangulated meshes
- Potential bug in ott.geometry.segment._segment_interface HOT 1
- Role of `fused_penalty`
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 ott.