nomic-ai / nomic

Interact, analyze and structure massive text, image, embedding, audio and video datasets
https://atlas.nomic.ai
1.27k stars 168 forks source link

More black #299

Closed bmschmidt closed 5 months ago

bmschmidt commented 5 months ago

This does a few things

  1. Moves black and isort to py39 instead of py36 because we identified that as our target version
  2. Creates a pyproject.toml with more opinionated linting standards around string normalization.

    [tool.black]
    line-length = 120
    target-version = ['py39']
    skip-string-normalization = false
    
    [tool.isort]
    profile = "black"
    skip = ["env", "ci_venv"]
    ignore_whitespace = false
    atomic = true
    line_length = 120
  3. Changes the makefile to just use this linting config, rather than having cli flags manually specifying things like '120 lines' all over the place in places where they might get lost.
  4. Actually applies these changes
  5. Adds a git-blame-ignore-revs file to not blame me for all these changes, and edits the make dev script to ensure that local gitconfigs see that file.
AndriyMulyar commented 5 months ago

Wilson should be the reviewer for this and run this locally to verify.