[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-1159":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":35,"readmeContent":36,"aiSummary":37,"trendingCount":16,"starSnapshotCount":16,"syncStatus":38,"lastSyncTime":39,"discoverSource":40},1159,"black","psf\u002Fblack","psf","The uncompromising Python code formatter","https:\u002F\u002Fblack.readthedocs.io\u002Fen\u002Fstable\u002F",null,"Python",41562,2773,226,272,0,13,83,4,45,"MIT License",false,"main",true,[26,27,28,29,30,31,32,33,34],"autopep8","code","codeformatter","formatter","gofmt","hacktoberfest","pre-commit-hook","python","yapf","2026-06-12 02:00:24","[![Black Logo](https:\u002F\u002Fraw.githubusercontent.com\u002Fpsf\u002Fblack\u002Fmain\u002Fdocs\u002F_static\u002Flogo2-readme.png)](https:\u002F\u002Fblack.readthedocs.io\u002Fen\u002Fstable\u002F)\n\n\u003Ch2 align=\"center\">The Uncompromising Code Formatter\u003C\u002Fh2>\n\n\u003Cp align=\"center\">\n\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpsf\u002Fblack\u002Factions\">\u003Cimg alt=\"Actions Status\" src=\"https:\u002F\u002Fgithub.com\u002Fpsf\u002Fblack\u002Fworkflows\u002FTest\u002Fbadge.svg\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fblack.readthedocs.io\u002Fen\u002Fstable\u002F?badge=stable\">\u003Cimg alt=\"Documentation Status\" src=\"https:\u002F\u002Freadthedocs.org\u002Fprojects\u002Fblack\u002Fbadge\u002F?version=stable\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fcoveralls.io\u002Fgithub\u002Fpsf\u002Fblack?branch=main\">\u003Cimg alt=\"Coverage Status\" src=\"https:\u002F\u002Fcoveralls.io\u002Frepos\u002Fgithub\u002Fpsf\u002Fblack\u002Fbadge.svg?branch=main\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpsf\u002Fblack\u002Fblob\u002Fmain\u002FLICENSE\">\u003Cimg alt=\"License: MIT\" src=\"https:\u002F\u002Fblack.readthedocs.io\u002Fen\u002Fstable\u002F_static\u002Flicense.svg\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fpypi.org\u002Fproject\u002Fblack\u002F\">\u003Cimg alt=\"PyPI\" src=\"https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fv\u002Fblack\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fpypi.org\u002Fproject\u002Fblack\">\u003Cimg alt=\"Supported Python Versions\" src=\"https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fpyversions\u002Fblack?color=brightgreen\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fpepy.tech\u002Fproject\u002Fblack\">\u003Cimg alt=\"Downloads\" src=\"https:\u002F\u002Fstatic.pepy.tech\u002Fbadge\u002Fblack\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fanaconda.org\u002Fconda-forge\u002Fblack\u002F\">\u003Cimg alt=\"conda-forge\" src=\"https:\u002F\u002Fimg.shields.io\u002Fconda\u002Fdn\u002Fconda-forge\u002Fblack.svg?label=conda-forge\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpsf\u002Fblack\">\u003Cimg alt=\"Code style: black\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fcode%20style-black-000000.svg\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n> “Any color you like.”\n\n_Black_ is the uncompromising Python code formatter. By using it, you agree to cede\ncontrol over minutiae of hand-formatting. In return, _Black_ gives you speed,\ndeterminism, and freedom from `pycodestyle` nagging about formatting. You will save time\nand mental energy for more important matters.\n\nBlackened code looks the same regardless of the project you're reading. Formatting\nbecomes transparent after a while and you can focus on the content instead.\n\n_Black_ makes code review faster by producing the smallest diffs possible.\n\nWatch the [PyCon 2019 talk](https:\u002F\u002Fyoutu.be\u002FesZLCuWs_2Y) to learn more.\n\n---\n\n**[Read the documentation on ReadTheDocs!](https:\u002F\u002Fblack.readthedocs.io\u002Fen\u002Fstable)**\n\n---\n\n## Installation and usage\n\n### Installation\n\n_Black_ can be installed by running `pip install black`. It requires Python 3.10+ to\nrun. If you want to format Jupyter Notebooks, install with\n`pip install \"black[jupyter]\"`.\n\n### Usage\n\nTo get started right away with sensible defaults:\n\n```sh\nblack {source_file_or_directory}\n```\n\nYou can run _Black_ as a package if running it as a script doesn't work:\n\n```sh\npython -m black {source_file_or_directory}\n```\n\nFurther information can be found in our docs:\n\n- [Usage and Configuration](https:\u002F\u002Fblack.readthedocs.io\u002Fen\u002Fstable\u002Fusage_and_configuration\u002Findex.html)\n\n_Black_ is already [successfully used](https:\u002F\u002Fgithub.com\u002Fpsf\u002Fblack#used-by) by many\nprojects, small and big. _Black_ has a comprehensive test suite, with efficient parallel\ntests, and our own auto formatting and parallel Continuous Integration runner. Now that\nwe have become stable, you should not expect large formatting changes in the future.\nStylistic changes will mostly be responses to bug reports and support for new Python\nsyntax. For more information please refer to\n[The Black Code Style](https:\u002F\u002Fblack.readthedocs.io\u002Fen\u002Fstable\u002Fthe_black_code_style\u002Findex.html).\n\nAlso, as a safety measure which slows down processing, _Black_ will check that the\nreformatted code still produces a valid AST that is effectively equivalent to the\noriginal (see the\n[Pragmatism](https:\u002F\u002Fblack.readthedocs.io\u002Fen\u002Fstable\u002Fthe_black_code_style\u002Fcurrent_style.html#ast-before-and-after-formatting)\nsection for details). If you're feeling confident, use `--fast`.\n\n## The _Black_ code style\n\n_Black_ is a PEP 8 compliant opinionated formatter. _Black_ reformats entire files in\nplace. Style configuration options are deliberately limited and rarely added. It doesn't\ntake previous formatting into account (see\n[Pragmatism](https:\u002F\u002Fblack.readthedocs.io\u002Fen\u002Fstable\u002Fthe_black_code_style\u002Fcurrent_style.html#pragmatism)\nfor exceptions).\n\nOur documentation covers the current _Black_ code style, but planned changes to it are\nalso documented. They're both worth taking a look at:\n\n- [The _Black_ Code Style: Current style](https:\u002F\u002Fblack.readthedocs.io\u002Fen\u002Fstable\u002Fthe_black_code_style\u002Fcurrent_style.html)\n- [The _Black_ Code Style: Future style](https:\u002F\u002Fblack.readthedocs.io\u002Fen\u002Fstable\u002Fthe_black_code_style\u002Ffuture_style.html)\n\nChanges to the _Black_ code style are bound by the Stability Policy:\n\n- [The _Black_ Code Style: Stability Policy](https:\u002F\u002Fblack.readthedocs.io\u002Fen\u002Fstable\u002Fthe_black_code_style\u002Findex.html#stability-policy)\n\nPlease refer to this document before submitting an issue. What seems like a bug might be\nintended behaviour.\n\n### Pragmatism\n\nEarly versions of _Black_ used to be absolutist in some respects. They took after its\ninitial author. This was fine at the time as it made the implementation simpler and\nthere were not many users anyway. Not many edge cases were reported. As a mature tool,\n_Black_ does make some exceptions to rules it otherwise holds.\n\n- [The _Black_ code style: Pragmatism](https:\u002F\u002Fblack.readthedocs.io\u002Fen\u002Fstable\u002Fthe_black_code_style\u002Fcurrent_style.html#pragmatism)\n\nPlease refer to this document before submitting an issue just like with the document\nabove. What seems like a bug might be intended behaviour.\n\n## Configuration\n\n_Black_ is able to read project-specific default values for its command line options\nfrom a `pyproject.toml` file. This is especially useful for specifying custom\n`--include` and `--exclude`\u002F`--force-exclude`\u002F`--extend-exclude` patterns for your\nproject.\n\nYou can find more details in our documentation:\n\n- [The basics: Configuration via a file](https:\u002F\u002Fblack.readthedocs.io\u002Fen\u002Fstable\u002Fusage_and_configuration\u002Fthe_basics.html#configuration-via-a-file)\n\nAnd if you're looking for more general configuration documentation:\n\n- [Usage and Configuration](https:\u002F\u002Fblack.readthedocs.io\u002Fen\u002Fstable\u002Fusage_and_configuration\u002Findex.html)\n\n**Pro-tip**: If you're asking yourself \"Do I need to configure anything?\" the answer is\n\"No\". _Black_ is all about sensible defaults. Applying those defaults will have your\ncode in compliance with many other _Black_ formatted projects.\n\n## Used by\n\nThe following notable open-source projects trust _Black_ with enforcing a consistent\ncode style: pytest, tox, Pyramid, Django, Django Channels, Hypothesis, attrs,\nSQLAlchemy, Poetry, PyPA applications (Warehouse, Bandersnatch, Pipenv, virtualenv),\npandas, Pillow, Twisted, LocalStack, every Datadog Agent Integration, Home Assistant,\nZulip, Kedro, OpenOA, FLORIS, ORBIT, WOMBAT, and many more.\n\nThe following organizations use _Black_: Dropbox, KeepTruckin, Lyft, Mozilla, Quora,\nDuolingo, QuantumBlack, Tesla, Archer Aviation.\n\nAre we missing anyone? Let us know.\n\n## Testimonials\n\n**Mike Bayer**, [author of `SQLAlchemy`](https:\u002F\u002Fwww.sqlalchemy.org\u002F):\n\n> I can't think of any single tool in my entire programming career that has given me a\n> bigger productivity increase by its introduction. I can now do refactorings in about\n> 1% of the keystrokes that it would have taken me previously when we had no way for\n> code to format itself.\n\n**Dusty Phillips**,\n[writer](https:\u002F\u002Fsmile.amazon.com\u002Fs\u002Fref=nb_sb_noss?url=search-alias%3Daps&field-keywords=dusty+phillips):\n\n> _Black_ is opinionated so you don't have to be.\n\n**Hynek Schlawack**, [creator of `attrs`](https:\u002F\u002Fwww.attrs.org\u002F), core developer of\nTwisted and CPython:\n\n> An auto-formatter that doesn't suck is all I want for Xmas!\n\n**Carl Meyer**, [Django](https:\u002F\u002Fwww.djangoproject.com\u002F) core developer:\n\n> At least the name is good.\n\n**Kenneth Reitz**, creator of [`requests`](https:\u002F\u002Frequests.readthedocs.io\u002Fen\u002Flatest\u002F)\nand [`pipenv`](https:\u002F\u002Freadthedocs.org\u002Fprojects\u002Fpipenv\u002F):\n\n> This vastly improves the formatting of our code. Thanks a ton!\n\n## Show your style\n\nUse the badge in your project's README.md:\n\n```md\n[![Code style: black](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fcode%20style-black-000000.svg)](https:\u002F\u002Fgithub.com\u002Fpsf\u002Fblack)\n```\n\nUsing the badge in README.rst:\n\n```rst\n.. image:: https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fcode%20style-black-000000.svg\n    :target: https:\u002F\u002Fgithub.com\u002Fpsf\u002Fblack\n```\n\nLooks like this:\n[![Code style: black](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fcode%20style-black-000000.svg)](https:\u002F\u002Fgithub.com\u002Fpsf\u002Fblack)\n\n## License\n\nMIT\n\n## Contributing\n\nWelcome! Happy to see you willing to make the project better. You can get started by\nreading this:\n\n- [Contributing: The basics](https:\u002F\u002Fblack.readthedocs.io\u002Fen\u002Flatest\u002Fcontributing\u002Fthe_basics.html)\n\nYou can also take a look at the rest of the contributing docs or talk with the\ndevelopers:\n\n- [Contributing documentation](https:\u002F\u002Fblack.readthedocs.io\u002Fen\u002Flatest\u002Fcontributing\u002Findex.html)\n- [Chat on Discord](https:\u002F\u002Fdiscord.gg\u002FRtVdv86PrH)\n\n## Change log\n\nThe log has become rather long. It moved to its own file.\n\nSee [CHANGES](https:\u002F\u002Fblack.readthedocs.io\u002Fen\u002Flatest\u002Fchange_log.html).\n\n## Authors\n\nThe author list is quite long nowadays, so it lives in its own file.\n\nSee [AUTHORS.md](.\u002FAUTHORS.md)\n\n## Code of Conduct\n\nEveryone participating in the _Black_ project, and in particular in the issue tracker,\npull requests, and social media activity, is expected to treat other people with respect\nand more generally to follow the guidelines articulated in the\n[Python Community Code of Conduct](https:\u002F\u002Fwww.python.org\u002Fpsf\u002Fcodeofconduct\u002F).\n\nAt the same time, humor is encouraged. In fact, basic familiarity with Monty Python's\nFlying Circus is expected. We are not savages.\n\nAnd if you _really_ need to slap somebody, do it with a fish while dancing.\n","Black 是一个严格的 Python 代码格式化工具。它通过自动调整代码格式，使开发者能够专注于更核心的编程任务，而无需担心代码风格的一致性问题。Black 的主要特点是其无妥协的格式化策略，即一旦使用，用户需接受其对所有细节的控制，从而获得一致、美观且符合 PEP 8 标准的代码风格。此外，Black 能够生成最小差异的代码变更，有助于提高代码审查效率。适合于任何需要标准化 Python 代码格式的场景，无论是个人项目还是大型团队协作开发。",2,"2026-06-11 02:41:59","top_all"]