Giter Site home page Giter Site logo

pre-commit about ott HOT 3 CLOSED

michalk8 avatar michalk8 commented on June 3, 2024 1
pre-commit

from ott.

Comments (3)

marcocuturi avatar marcocuturi commented on June 3, 2024 1

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.

giovp avatar giovp commented on June 3, 2024

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.

marcocuturi avatar marcocuturi commented on June 3, 2024

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)

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.