diff --git a/.schemas/blender_manifest_v1.schema.json b/.schemas/blender_manifest_v1.schema.json new file mode 100644 index 0000000..0799978 --- /dev/null +++ b/.schemas/blender_manifest_v1.schema.json @@ -0,0 +1,857 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "properties": { + "schema_version": { + "type": "string", + "description": "The schema version of the manifest file for a Blender extension", + "default": "1.0.0" + }, + "id": { + "type": "string", + "description": "The identifier of your extension. Must be unique." + }, + "version": { + "type": "string", + "description": "The version of your addon. Must follow the semantic versioning scheme.", + "default": "1.0.0" + }, + "name": { + "type": "string", + "description": "The name of your extension" + }, + "tagline": { + "type": "string", + "description": "A short description of your extension", + "maxLength": 64 + }, + "maintainer": { + "type": "string", + "description": "The name/pseudonym of the person who maintains this extension" + }, + "type": { + "type": "string", + "description": "What kind of extension you're contributing", + "default": "add-on", + "enum": ["add-on", "theme"] + }, + "website": { + "type": "string", + "description": "Optional link to documentation, support, source files, etc" + }, + "tags": { + "type": "array", + "description": "A list of tags for your extension", + "items": { + "type": "string", + "enum": [ + "3D View", + "Add Curve", + "Add Mesh", + "Animation", + "Bake", + "Camera", + "Compositing", + "Development", + "Game Engine", + "Geometry Nodes", + "Grease Pencil", + "Import-Export", + "Lighting", + "Material", + "Modeling", + "Mesh", + "Node", + "Object", + "Paint", + "Pipeline", + "Physics", + "Render", + "Rigging", + "Scene", + "Sculpt", + "Sequencer", + "System", + "Text Editor", + "Tracking", + "User Interface", + "UV", + "Dark", + "Light", + "Colorful", + "Inspired By", + "Print", + "Accessibility", + "High Contrast" + ] + }, + "minItems": 1, + "uniqueItems": true + }, + "blender_version_min": { + "type": "string", + "description": "The oldest Blender version your extension is compatible with", + "pattern": "\\d+\\.\\d+\\.\\d+" + }, + "blender_version_max": { + "type": "string", + "description": "The newest Blender version your extension is compatible with (in case your extension doesn't work in newer Blender versions)", + "pattern": "\\d+\\.\\d+\\.\\d+" + }, + "license": { + "type": "array", + "description": "A list of licenses that apply for your extension. Must conform to https://spdx.org/licenses/ (use \"SPDX:\" prefix)", + "items": { + "type": "string", + "enum": [ + "SPDX:0BSD", + "SPDX:3D-Slicer-1.0", + "SPDX:AAL", + "SPDX:Abstyles", + "SPDX:AdaCore-doc", + "SPDX:Adobe-2006", + "SPDX:Adobe-Display-PostScript", + "SPDX:Adobe-Glyph", + "SPDX:Adobe-Utopia", + "SPDX:ADSL", + "SPDX:AFL-1.1", + "SPDX:AFL-1.2", + "SPDX:AFL-2.0", + "SPDX:AFL-2.1", + "SPDX:AFL-3.0", + "SPDX:Afmparse", + "SPDX:AGPL-1.0", + "SPDX:AGPL-1.0-only", + "SPDX:AGPL-1.0-or-later", + "SPDX:AGPL-3.0", + "SPDX:AGPL-3.0-only", + "SPDX:AGPL-3.0-or-later", + "SPDX:Aladdin", + "SPDX:AMD-newlib", + "SPDX:AMDPLPA", + "SPDX:AML", + "SPDX:AML-glslang", + "SPDX:AMPAS", + "SPDX:ANTLR-PD", + "SPDX:ANTLR-PD-fallback", + "SPDX:any-OSI", + "SPDX:Apache-1.0", + "SPDX:Apache-1.1", + "SPDX:Apache-2.0", + "SPDX:APAFML", + "SPDX:APL-1.0", + "SPDX:App-s2p", + "SPDX:APSL-1.0", + "SPDX:APSL-1.1", + "SPDX:APSL-1.2", + "SPDX:APSL-2.0", + "SPDX:Arphic-1999", + "SPDX:Artistic-1.0", + "SPDX:Artistic-1.0-cl8", + "SPDX:Artistic-1.0-Perl", + "SPDX:Artistic-2.0", + "SPDX:ASWF-Digital-Assets-1.0", + "SPDX:ASWF-Digital-Assets-1.1", + "SPDX:Baekmuk", + "SPDX:Bahyph", + "SPDX:Barr", + "SPDX:bcrypt-Solar-Designer", + "SPDX:Beerware", + "SPDX:Bitstream-Charter", + "SPDX:Bitstream-Vera", + "SPDX:BitTorrent-1.0", + "SPDX:BitTorrent-1.1", + "SPDX:blessing", + "SPDX:BlueOak-1.0.0", + "SPDX:Boehm-GC", + "SPDX:Borceux", + "SPDX:Brian-Gladman-2-Clause", + "SPDX:Brian-Gladman-3-Clause", + "SPDX:BSD-1-Clause", + "SPDX:BSD-2-Clause", + "SPDX:BSD-2-Clause-Darwin", + "SPDX:BSD-2-Clause-first-lines", + "SPDX:BSD-2-Clause-FreeBSD", + "SPDX:BSD-2-Clause-NetBSD", + "SPDX:BSD-2-Clause-Patent", + "SPDX:BSD-2-Clause-Views", + "SPDX:BSD-3-Clause", + "SPDX:BSD-3-Clause-acpica", + "SPDX:BSD-3-Clause-Attribution", + "SPDX:BSD-3-Clause-Clear", + "SPDX:BSD-3-Clause-flex", + "SPDX:BSD-3-Clause-HP", + "SPDX:BSD-3-Clause-LBNL", + "SPDX:BSD-3-Clause-Modification", + "SPDX:BSD-3-Clause-No-Military-License", + "SPDX:BSD-3-Clause-No-Nuclear-License", + "SPDX:BSD-3-Clause-No-Nuclear-License-2014", + "SPDX:BSD-3-Clause-No-Nuclear-Warranty", + "SPDX:BSD-3-Clause-Open-MPI", + "SPDX:BSD-3-Clause-Sun", + "SPDX:BSD-4-Clause", + "SPDX:BSD-4-Clause-Shortened", + "SPDX:BSD-4-Clause-UC", + "SPDX:BSD-4.3RENO", + "SPDX:BSD-4.3TAHOE", + "SPDX:BSD-Advertising-Acknowledgement", + "SPDX:BSD-Attribution-HPND-disclaimer", + "SPDX:BSD-Inferno-Nettverk", + "SPDX:BSD-Protection", + "SPDX:BSD-Source-beginning-file", + "SPDX:BSD-Source-Code", + "SPDX:BSD-Systemics", + "SPDX:BSD-Systemics-W3Works", + "SPDX:BSL-1.0", + "SPDX:BUSL-1.1", + "SPDX:bzip2-1.0.5", + "SPDX:bzip2-1.0.6", + "SPDX:C-UDA-1.0", + "SPDX:CAL-1.0", + "SPDX:CAL-1.0-Combined-Work-Exception", + "SPDX:Caldera", + "SPDX:Caldera-no-preamble", + "SPDX:Catharon", + "SPDX:CATOSL-1.1", + "SPDX:CC-BY-1.0", + "SPDX:CC-BY-2.0", + "SPDX:CC-BY-2.5", + "SPDX:CC-BY-2.5-AU", + "SPDX:CC-BY-3.0", + "SPDX:CC-BY-3.0-AT", + "SPDX:CC-BY-3.0-AU", + "SPDX:CC-BY-3.0-DE", + "SPDX:CC-BY-3.0-IGO", + "SPDX:CC-BY-3.0-NL", + "SPDX:CC-BY-3.0-US", + "SPDX:CC-BY-4.0", + "SPDX:CC-BY-NC-1.0", + "SPDX:CC-BY-NC-2.0", + "SPDX:CC-BY-NC-2.5", + "SPDX:CC-BY-NC-3.0", + "SPDX:CC-BY-NC-3.0-DE", + "SPDX:CC-BY-NC-4.0", + "SPDX:CC-BY-NC-ND-1.0", + "SPDX:CC-BY-NC-ND-2.0", + "SPDX:CC-BY-NC-ND-2.5", + "SPDX:CC-BY-NC-ND-3.0", + "SPDX:CC-BY-NC-ND-3.0-DE", + "SPDX:CC-BY-NC-ND-3.0-IGO", + "SPDX:CC-BY-NC-ND-4.0", + "SPDX:CC-BY-NC-SA-1.0", + "SPDX:CC-BY-NC-SA-2.0", + "SPDX:CC-BY-NC-SA-2.0-DE", + "SPDX:CC-BY-NC-SA-2.0-FR", + "SPDX:CC-BY-NC-SA-2.0-UK", + "SPDX:CC-BY-NC-SA-2.5", + "SPDX:CC-BY-NC-SA-3.0", + "SPDX:CC-BY-NC-SA-3.0-DE", + "SPDX:CC-BY-NC-SA-3.0-IGO", + "SPDX:CC-BY-NC-SA-4.0", + "SPDX:CC-BY-ND-1.0", + "SPDX:CC-BY-ND-2.0", + "SPDX:CC-BY-ND-2.5", + "SPDX:CC-BY-ND-3.0", + "SPDX:CC-BY-ND-3.0-DE", + "SPDX:CC-BY-ND-4.0", + "SPDX:CC-BY-SA-1.0", + "SPDX:CC-BY-SA-2.0", + "SPDX:CC-BY-SA-2.0-UK", + "SPDX:CC-BY-SA-2.1-JP", + "SPDX:CC-BY-SA-2.5", + "SPDX:CC-BY-SA-3.0", + "SPDX:CC-BY-SA-3.0-AT", + "SPDX:CC-BY-SA-3.0-DE", + "SPDX:CC-BY-SA-3.0-IGO", + "SPDX:CC-BY-SA-4.0", + "SPDX:CC-PDDC", + "SPDX:CC0-1.0", + "SPDX:CDDL-1.0", + "SPDX:CDDL-1.1", + "SPDX:CDL-1.0", + "SPDX:CDLA-Permissive-1.0", + "SPDX:CDLA-Permissive-2.0", + "SPDX:CDLA-Sharing-1.0", + "SPDX:CECILL-1.0", + "SPDX:CECILL-1.1", + "SPDX:CECILL-2.0", + "SPDX:CECILL-2.1", + "SPDX:CECILL-B", + "SPDX:CECILL-C", + "SPDX:CERN-OHL-1.1", + "SPDX:CERN-OHL-1.2", + "SPDX:CERN-OHL-P-2.0", + "SPDX:CERN-OHL-S-2.0", + "SPDX:CERN-OHL-W-2.0", + "SPDX:CFITSIO", + "SPDX:check-cvs", + "SPDX:checkmk", + "SPDX:ClArtistic", + "SPDX:Clips", + "SPDX:CMU-Mach", + "SPDX:CMU-Mach-nodoc", + "SPDX:CNRI-Jython", + "SPDX:CNRI-Python", + "SPDX:CNRI-Python-GPL-Compatible", + "SPDX:COIL-1.0", + "SPDX:Community-Spec-1.0", + "SPDX:Condor-1.1", + "SPDX:copyleft-next-0.3.0", + "SPDX:copyleft-next-0.3.1", + "SPDX:Cornell-Lossless-JPEG", + "SPDX:CPAL-1.0", + "SPDX:CPL-1.0", + "SPDX:CPOL-1.02", + "SPDX:Cronyx", + "SPDX:Crossword", + "SPDX:CrystalStacker", + "SPDX:CUA-OPL-1.0", + "SPDX:Cube", + "SPDX:curl", + "SPDX:cve-tou", + "SPDX:D-FSL-1.0", + "SPDX:DEC-3-Clause", + "SPDX:diffmark", + "SPDX:DL-DE-BY-2.0", + "SPDX:DL-DE-ZERO-2.0", + "SPDX:DOC", + "SPDX:Dotseqn", + "SPDX:DRL-1.0", + "SPDX:DRL-1.1", + "SPDX:DSDP", + "SPDX:dtoa", + "SPDX:dvipdfm", + "SPDX:ECL-1.0", + "SPDX:ECL-2.0", + "SPDX:eCos-2.0", + "SPDX:EFL-1.0", + "SPDX:EFL-2.0", + "SPDX:eGenix", + "SPDX:Elastic-2.0", + "SPDX:Entessa", + "SPDX:EPICS", + "SPDX:EPL-1.0", + "SPDX:EPL-2.0", + "SPDX:ErlPL-1.1", + "SPDX:etalab-2.0", + "SPDX:EUDatagrid", + "SPDX:EUPL-1.0", + "SPDX:EUPL-1.1", + "SPDX:EUPL-1.2", + "SPDX:Eurosym", + "SPDX:Fair", + "SPDX:FBM", + "SPDX:FDK-AAC", + "SPDX:Ferguson-Twofish", + "SPDX:Frameworx-1.0", + "SPDX:FreeBSD-DOC", + "SPDX:FreeImage", + "SPDX:FSFAP", + "SPDX:FSFAP-no-warranty-disclaimer", + "SPDX:FSFUL", + "SPDX:FSFULLR", + "SPDX:FSFULLRWD", + "SPDX:FTL", + "SPDX:Furuseth", + "SPDX:fwlw", + "SPDX:GCR-docs", + "SPDX:GD", + "SPDX:GFDL-1.1", + "SPDX:GFDL-1.1-invariants-only", + "SPDX:GFDL-1.1-invariants-or-later", + "SPDX:GFDL-1.1-no-invariants-only", + "SPDX:GFDL-1.1-no-invariants-or-later", + "SPDX:GFDL-1.1-only", + "SPDX:GFDL-1.1-or-later", + "SPDX:GFDL-1.2", + "SPDX:GFDL-1.2-invariants-only", + "SPDX:GFDL-1.2-invariants-or-later", + "SPDX:GFDL-1.2-no-invariants-only", + "SPDX:GFDL-1.2-no-invariants-or-later", + "SPDX:GFDL-1.2-only", + "SPDX:GFDL-1.2-or-later", + "SPDX:GFDL-1.3", + "SPDX:GFDL-1.3-invariants-only", + "SPDX:GFDL-1.3-invariants-or-later", + "SPDX:GFDL-1.3-no-invariants-only", + "SPDX:GFDL-1.3-no-invariants-or-later", + "SPDX:GFDL-1.3-only", + "SPDX:GFDL-1.3-or-later", + "SPDX:Giftware", + "SPDX:GL2PS", + "SPDX:Glide", + "SPDX:Glulxe", + "SPDX:GLWTPL", + "SPDX:gnuplot", + "SPDX:GPL-1.0", + "SPDX:GPL-1.0+", + "SPDX:GPL-1.0-only", + "SPDX:GPL-1.0-or-later", + "SPDX:GPL-2.0", + "SPDX:GPL-2.0+", + "SPDX:GPL-2.0-only", + "SPDX:GPL-2.0-or-later", + "SPDX:GPL-2.0-with-autoconf-exception", + "SPDX:GPL-2.0-with-bison-exception", + "SPDX:GPL-2.0-with-classpath-exception", + "SPDX:GPL-2.0-with-font-exception", + "SPDX:GPL-2.0-with-GCC-exception", + "SPDX:GPL-3.0", + "SPDX:GPL-3.0+", + "SPDX:GPL-3.0-only", + "SPDX:GPL-3.0-or-later", + "SPDX:GPL-3.0-with-autoconf-exception", + "SPDX:GPL-3.0-with-GCC-exception", + "SPDX:Graphics-Gems", + "SPDX:gSOAP-1.3b", + "SPDX:gtkbook", + "SPDX:Gutmann", + "SPDX:HaskellReport", + "SPDX:hdparm", + "SPDX:Hippocratic-2.1", + "SPDX:HP-1986", + "SPDX:HP-1989", + "SPDX:HPND", + "SPDX:HPND-DEC", + "SPDX:HPND-doc", + "SPDX:HPND-doc-sell", + "SPDX:HPND-export-US", + "SPDX:HPND-export-US-acknowledgement", + "SPDX:HPND-export-US-modify", + "SPDX:HPND-export2-US", + "SPDX:HPND-Fenneberg-Livingston", + "SPDX:HPND-INRIA-IMAG", + "SPDX:HPND-Intel", + "SPDX:HPND-Kevlin-Henney", + "SPDX:HPND-Markus-Kuhn", + "SPDX:HPND-merchantability-variant", + "SPDX:HPND-MIT-disclaimer", + "SPDX:HPND-Pbmplus", + "SPDX:HPND-sell-MIT-disclaimer-xserver", + "SPDX:HPND-sell-regexpr", + "SPDX:HPND-sell-variant", + "SPDX:HPND-sell-variant-MIT-disclaimer", + "SPDX:HPND-sell-variant-MIT-disclaimer-rev", + "SPDX:HPND-UC", + "SPDX:HPND-UC-export-US", + "SPDX:HTMLTIDY", + "SPDX:IBM-pibs", + "SPDX:ICU", + "SPDX:IEC-Code-Components-EULA", + "SPDX:IJG", + "SPDX:IJG-short", + "SPDX:ImageMagick", + "SPDX:iMatix", + "SPDX:Imlib2", + "SPDX:Info-ZIP", + "SPDX:Inner-Net-2.0", + "SPDX:Intel", + "SPDX:Intel-ACPI", + "SPDX:Interbase-1.0", + "SPDX:IPA", + "SPDX:IPL-1.0", + "SPDX:ISC", + "SPDX:ISC-Veillard", + "SPDX:Jam", + "SPDX:JasPer-2.0", + "SPDX:JPL-image", + "SPDX:JPNIC", + "SPDX:JSON", + "SPDX:Kastrup", + "SPDX:Kazlib", + "SPDX:Knuth-CTAN", + "SPDX:LAL-1.2", + "SPDX:LAL-1.3", + "SPDX:Latex2e", + "SPDX:Latex2e-translated-notice", + "SPDX:Leptonica", + "SPDX:LGPL-2.0", + "SPDX:LGPL-2.0+", + "SPDX:LGPL-2.0-only", + "SPDX:LGPL-2.0-or-later", + "SPDX:LGPL-2.1", + "SPDX:LGPL-2.1+", + "SPDX:LGPL-2.1-only", + "SPDX:LGPL-2.1-or-later", + "SPDX:LGPL-3.0", + "SPDX:LGPL-3.0+", + "SPDX:LGPL-3.0-only", + "SPDX:LGPL-3.0-or-later", + "SPDX:LGPLLR", + "SPDX:Libpng", + "SPDX:libpng-2.0", + "SPDX:libselinux-1.0", + "SPDX:libtiff", + "SPDX:libutil-David-Nugent", + "SPDX:LiLiQ-P-1.1", + "SPDX:LiLiQ-R-1.1", + "SPDX:LiLiQ-Rplus-1.1", + "SPDX:Linux-man-pages-1-para", + "SPDX:Linux-man-pages-copyleft", + "SPDX:Linux-man-pages-copyleft-2-para", + "SPDX:Linux-man-pages-copyleft-var", + "SPDX:Linux-OpenIB", + "SPDX:LOOP", + "SPDX:LPD-document", + "SPDX:LPL-1.0", + "SPDX:LPL-1.02", + "SPDX:LPPL-1.0", + "SPDX:LPPL-1.1", + "SPDX:LPPL-1.2", + "SPDX:LPPL-1.3a", + "SPDX:LPPL-1.3c", + "SPDX:lsof", + "SPDX:Lucida-Bitmap-Fonts", + "SPDX:LZMA-SDK-9.11-to-9.20", + "SPDX:LZMA-SDK-9.22", + "SPDX:Mackerras-3-Clause", + "SPDX:Mackerras-3-Clause-acknowledgment", + "SPDX:magaz", + "SPDX:mailprio", + "SPDX:MakeIndex", + "SPDX:Martin-Birgmeier", + "SPDX:McPhee-slideshow", + "SPDX:metamail", + "SPDX:Minpack", + "SPDX:MirOS", + "SPDX:MIT", + "SPDX:MIT-0", + "SPDX:MIT-advertising", + "SPDX:MIT-CMU", + "SPDX:MIT-enna", + "SPDX:MIT-feh", + "SPDX:MIT-Festival", + "SPDX:MIT-Khronos-old", + "SPDX:MIT-Modern-Variant", + "SPDX:MIT-open-group", + "SPDX:MIT-testregex", + "SPDX:MIT-Wu", + "SPDX:MITNFA", + "SPDX:MMIXware", + "SPDX:Motosoto", + "SPDX:MPEG-SSG", + "SPDX:mpi-permissive", + "SPDX:mpich2", + "SPDX:MPL-1.0", + "SPDX:MPL-1.1", + "SPDX:MPL-2.0", + "SPDX:MPL-2.0-no-copyleft-exception", + "SPDX:mplus", + "SPDX:MS-LPL", + "SPDX:MS-PL", + "SPDX:MS-RL", + "SPDX:MTLL", + "SPDX:MulanPSL-1.0", + "SPDX:MulanPSL-2.0", + "SPDX:Multics", + "SPDX:Mup", + "SPDX:NAIST-2003", + "SPDX:NASA-1.3", + "SPDX:Naumen", + "SPDX:NBPL-1.0", + "SPDX:NCBI-PD", + "SPDX:NCGL-UK-2.0", + "SPDX:NCL", + "SPDX:NCSA", + "SPDX:Net-SNMP", + "SPDX:NetCDF", + "SPDX:Newsletr", + "SPDX:NGPL", + "SPDX:NICTA-1.0", + "SPDX:NIST-PD", + "SPDX:NIST-PD-fallback", + "SPDX:NIST-Software", + "SPDX:NLOD-1.0", + "SPDX:NLOD-2.0", + "SPDX:NLPL", + "SPDX:Nokia", + "SPDX:NOSL", + "SPDX:Noweb", + "SPDX:NPL-1.0", + "SPDX:NPL-1.1", + "SPDX:NPOSL-3.0", + "SPDX:NRL", + "SPDX:NTP", + "SPDX:NTP-0", + "SPDX:Nunit", + "SPDX:O-UDA-1.0", + "SPDX:OAR", + "SPDX:OCCT-PL", + "SPDX:OCLC-2.0", + "SPDX:ODbL-1.0", + "SPDX:ODC-By-1.0", + "SPDX:OFFIS", + "SPDX:OFL-1.0", + "SPDX:OFL-1.0-no-RFN", + "SPDX:OFL-1.0-RFN", + "SPDX:OFL-1.1", + "SPDX:OFL-1.1-no-RFN", + "SPDX:OFL-1.1-RFN", + "SPDX:OGC-1.0", + "SPDX:OGDL-Taiwan-1.0", + "SPDX:OGL-Canada-2.0", + "SPDX:OGL-UK-1.0", + "SPDX:OGL-UK-2.0", + "SPDX:OGL-UK-3.0", + "SPDX:OGTSL", + "SPDX:OLDAP-1.1", + "SPDX:OLDAP-1.2", + "SPDX:OLDAP-1.3", + "SPDX:OLDAP-1.4", + "SPDX:OLDAP-2.0", + "SPDX:OLDAP-2.0.1", + "SPDX:OLDAP-2.1", + "SPDX:OLDAP-2.2", + "SPDX:OLDAP-2.2.1", + "SPDX:OLDAP-2.2.2", + "SPDX:OLDAP-2.3", + "SPDX:OLDAP-2.4", + "SPDX:OLDAP-2.5", + "SPDX:OLDAP-2.6", + "SPDX:OLDAP-2.7", + "SPDX:OLDAP-2.8", + "SPDX:OLFL-1.3", + "SPDX:OML", + "SPDX:OpenPBS-2.3", + "SPDX:OpenSSL", + "SPDX:OpenSSL-standalone", + "SPDX:OpenVision", + "SPDX:OPL-1.0", + "SPDX:OPL-UK-3.0", + "SPDX:OPUBL-1.0", + "SPDX:OSET-PL-2.1", + "SPDX:OSL-1.0", + "SPDX:OSL-1.1", + "SPDX:OSL-2.0", + "SPDX:OSL-2.1", + "SPDX:OSL-3.0", + "SPDX:PADL", + "SPDX:Parity-6.0.0", + "SPDX:Parity-7.0.0", + "SPDX:PDDL-1.0", + "SPDX:PHP-3.0", + "SPDX:PHP-3.01", + "SPDX:Pixar", + "SPDX:pkgconf", + "SPDX:Plexus", + "SPDX:pnmstitch", + "SPDX:PolyForm-Noncommercial-1.0.0", + "SPDX:PolyForm-Small-Business-1.0.0", + "SPDX:PostgreSQL", + "SPDX:PPL", + "SPDX:PSF-2.0", + "SPDX:psfrag", + "SPDX:psutils", + "SPDX:Python-2.0", + "SPDX:Python-2.0.1", + "SPDX:python-ldap", + "SPDX:Qhull", + "SPDX:QPL-1.0", + "SPDX:QPL-1.0-INRIA-2004", + "SPDX:radvd", + "SPDX:Rdisc", + "SPDX:RHeCos-1.1", + "SPDX:RPL-1.1", + "SPDX:RPL-1.5", + "SPDX:RPSL-1.0", + "SPDX:RSA-MD", + "SPDX:RSCPL", + "SPDX:Ruby", + "SPDX:SAX-PD", + "SPDX:SAX-PD-2.0", + "SPDX:Saxpath", + "SPDX:SCEA", + "SPDX:SchemeReport", + "SPDX:Sendmail", + "SPDX:Sendmail-8.23", + "SPDX:SGI-B-1.0", + "SPDX:SGI-B-1.1", + "SPDX:SGI-B-2.0", + "SPDX:SGI-OpenGL", + "SPDX:SGP4", + "SPDX:SHL-0.5", + "SPDX:SHL-0.51", + "SPDX:SimPL-2.0", + "SPDX:SISSL", + "SPDX:SISSL-1.2", + "SPDX:SL", + "SPDX:Sleepycat", + "SPDX:SMLNJ", + "SPDX:SMPPL", + "SPDX:SNIA", + "SPDX:snprintf", + "SPDX:softSurfer", + "SPDX:Soundex", + "SPDX:Spencer-86", + "SPDX:Spencer-94", + "SPDX:Spencer-99", + "SPDX:SPL-1.0", + "SPDX:ssh-keyscan", + "SPDX:SSH-OpenSSH", + "SPDX:SSH-short", + "SPDX:SSLeay-standalone", + "SPDX:SSPL-1.0", + "SPDX:StandardML-NJ", + "SPDX:SugarCRM-1.1.3", + "SPDX:Sun-PPP", + "SPDX:Sun-PPP-2000", + "SPDX:SunPro", + "SPDX:SWL", + "SPDX:swrule", + "SPDX:Symlinks", + "SPDX:TAPR-OHL-1.0", + "SPDX:TCL", + "SPDX:TCP-wrappers", + "SPDX:TermReadKey", + "SPDX:TGPPL-1.0", + "SPDX:threeparttable", + "SPDX:TMate", + "SPDX:TORQUE-1.1", + "SPDX:TOSL", + "SPDX:TPDL", + "SPDX:TPL-1.0", + "SPDX:TTWL", + "SPDX:TTYP0", + "SPDX:TU-Berlin-1.0", + "SPDX:TU-Berlin-2.0", + "SPDX:UCAR", + "SPDX:UCL-1.0", + "SPDX:ulem", + "SPDX:UMich-Merit", + "SPDX:Unicode-3.0", + "SPDX:Unicode-DFS-2015", + "SPDX:Unicode-DFS-2016", + "SPDX:Unicode-TOU", + "SPDX:UnixCrypt", + "SPDX:Unlicense", + "SPDX:UPL-1.0", + "SPDX:URT-RLE", + "SPDX:Vim", + "SPDX:VOSTROM", + "SPDX:VSL-1.0", + "SPDX:W3C", + "SPDX:W3C-19980720", + "SPDX:W3C-20150513", + "SPDX:w3m", + "SPDX:Watcom-1.0", + "SPDX:Widget-Workshop", + "SPDX:Wsuipa", + "SPDX:WTFPL", + "SPDX:wxWindows", + "SPDX:X11", + "SPDX:X11-distribute-modifications-variant", + "SPDX:Xdebug-1.03", + "SPDX:Xerox", + "SPDX:Xfig", + "SPDX:XFree86-1.1", + "SPDX:xinetd", + "SPDX:xkeyboard-config-Zinoviev", + "SPDX:xlock", + "SPDX:Xnet", + "SPDX:xpp", + "SPDX:XSkat", + "SPDX:xzoom", + "SPDX:YPL-1.0", + "SPDX:YPL-1.1", + "SPDX:Zed", + "SPDX:Zeeff", + "SPDX:Zend-2.0", + "SPDX:Zimbra-1.3", + "SPDX:Zimbra-1.4", + "SPDX:Zlib", + "SPDX:zlib-acknowledgement", + "SPDX:ZPL-1.1", + "SPDX:ZPL-2.0", + "SPDX:ZPL-2.1" + ] + }, + "minItems": 1, + "uniqueItems": true + }, + "copyright": { + "type": "array", + "description": "A list of copyright holders, required by some licenses", + "items": { + "type": "string" + }, + "minItems": 1, + "uniqueItems": true + }, + "platforms": { + "type": "array", + "description": "Optional list of supported platforms. If omitted, the extension will be available in all operating systems", + "items": { + "type": "string", + "enum": [ + "windows-x64", + "windows-arm64", + "linux-x64", + "macos-arm64", + "macos-x64" + ] + }, + "minItems": 1, + "uniqueItems": true + }, + "wheels": { + "type": "array", + "description": "Optional: bundle 3rd party Python modules", + "items": { + "type": "string" + }, + "minItems": 1, + "uniqueItems": true + }, + "permissions": { + "type": "object", + "description": "Optional: A list of resources an addon will require", + "properties": { + "network": { + "type": "string", + "description": "Describe, why your extension needs network access." + }, + "files": { + "type": "string", + "description": "Describe, why your extension needs file system access." + }, + "clipboard": { + "type": "string", + "description": "Describe, why your extension needs clipboard access." + }, + "camera": { + "type": "string", + "description": "Describe, why your extension needs access to the camera." + }, + "microphone": { + "type": "string", + "description": "Describe, why your extension needs access to the microphone." + } + } + }, + "build": { + "type": "object", + "description": "Optional: Build settings", + "properties": { + "paths_exclude_pattern": { + "type": "array", + "items": { "type": "string" }, + "minItems": 1, + "uniqueItems": true + } + } + } + }, + "required": [ + "schema_version", + "id", + "version", + "name", + "tagline", + "maintainer", + "type", + "blender_version_min", + "license" + ], + "additionalProperties": false, + "title": "Blender extensions manifest" +} diff --git a/.schemas/pyproject.json b/.schemas/pyproject.json new file mode 100644 index 0000000..eb86382 --- /dev/null +++ b/.schemas/pyproject.json @@ -0,0 +1,937 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/pyproject.json", + "$comment": "there are multiple resources describing `pyproject.toml`. The canonical reference is at https://packaging.python.org/en/latest/specifications/declaring-project-metadata/, which refers to multiple proposals such as PEP 517, PEP 518 and PEP 621", + "x-tombi-toml-version": "v1.0.0", + "x-tombi-table-keys-order": "schema", + "x-tombi-string-formats": ["email", "uri"], + "additionalProperties": false, + "definitions": { + "importNames": { + "type": "array", + "items": { + "type": "string", + "pattern": "^[A-Za-z_][A-Za-z_0-9]*(?:\\.[A-Za-z_][A-Za-z_0-9]*)*(?:\\s*;\\s*private)?$" + }, + "x-tombi-array-values-order": "version-sort" + }, + "projectAuthor": { + "type": "object", + "additionalProperties": false, + "anyOf": [ + { + "required": ["name"], + "properties": { + "name": true + } + }, + { + "required": ["email"], + "properties": { + "email": true + } + } + ], + "properties": { + "name": { + "type": "string" + }, + "email": { + "type": "string", + "format": "email" + } + }, + "x-tombi-table-keys-order": "schema" + }, + "BuildSystem": { + "type": "object", + "additionalProperties": false, + "required": ["requires"], + "title": "Project build system configuration", + "description": "Declares any Python level dependencies that must be installed in order to run the project’s build system successfully.", + "markdownDescription": "Declares any Python level dependencies that must be installed in order to run the project’s build system successfully.", + "x-intellij-html-description": "

Declares any Python level dependencies that must be installed in order to run the project’s build system successfully.

", + "x-taplo": { + "links": { + "key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#declaring-build-system-dependencies-the-build-system-table" + } + }, + "x-tombi-table-keys-order": "schema", + "properties": { + "requires": { + "type": "array", + "items": { + "type": "string" + }, + "uniqueItems": true, + "title": "Build system dependencies", + "description": "List of strings following the version specifier specification, representing dependencies required to execute the build system.", + "markdownDescription": "List of strings following the [version specifier specification](https://packaging.python.org/en/latest/specifications/version-specifiers/#version-specifiers), representing dependencies required to execute the build system.", + "x-intellij-html-description": "

List of strings following the version specifier specification, representing dependencies required to execute the build system.

", + "x-taplo": { + "links": { + "key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#declaring-build-system-dependencies-the-build-system-table" + } + }, + "x-tombi-array-values-order": "version-sort", + "examples": ["setuptools >= 64.0"] + }, + "build-backend": { + "type": "string", + "title": "Name of Python object used to perform the build", + "description": "String is formatted following the same `module:object` syntax as a `setuptools` entry point. It’s also legal to leave out the `:object` part.", + "markdownDescription": "String is formatted following the same `module:object` syntax as a `setuptools` entry point. It’s also legal to leave out the `:object` part.", + "x-intellij-html-description": "

String is formatted following the same module:object syntax as a setuptools entry point. It’s also legal to leave out the :object part.

", + "x-taplo": { + "links": { + "key": "https://peps.python.org/pep-0517/#source-trees" + } + }, + "examples": ["setuptools.build_meta", "my_build_backend:backend"] + }, + "backend-path": { + "type": "array", + "items": { + "type": "string" + }, + "title": "Build backend directories", + "description": "list of directories to prepend to `sys.path` when loading the build backend, relative to project root", + "markdownDescription": "list of directoriesrepend to `sys.path` when loading the build backend, relative to project root", + "x-intellij-html-description": "

list of directories to prepend to sys.path when loading the build backend, relative to project root

", + "x-taplo": { + "links": { + "key": "https://peps.python.org/pep-0517/#in-tree-build-backends" + } + }, + "x-tombi-table-keys-order": "version-sort" + } + } + }, + "DependencyGroup": { + "type": "array", + "title": "Dependency specifiers or include groups", + "description": "Each list item should be either:\n- [dependency specifiers](https://packaging.python.org/en/latest/specifications/dependency-specifiers/), or\n- table with a single key `include-group` which specifies another group name to include into this one", + "markdownDescription": "Each list item should be either:\n- [dependency specifiers](https://packaging.python.org/en/latest/specifications/dependency-specifiers/), or\n- table with a single key `include-group` which specifies another group name to include into this one", + "x-intellij-html-description": "

Each list item should be either:

", + "x-tombi-array-values-order": { + "oneOf": ["version-sort", "ascending"] + }, + "uniqueItems": true, + "items": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "object", + "additionalProperties": false, + "properties": { + "include-group": { + "type": "string", + "pattern": "^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9._-]*[a-zA-Z0-9])$" + } + }, + "x-tombi-array-values-order-by": "include-group" + } + ] + } + } + }, + "properties": { + "project": { + "type": "object", + "additionalProperties": false, + "required": ["name"], + "title": "Project core metadata", + "description": "There are three kinds of metadata: _static_, _dynamic_, and _partially dynamic_.\n- Static metadata is listed in the `[project]` table directly and cannot be specified or changed by a tool.\n- Dynamic metadata key names are listed inside the `dynamic` key and represents metadata that a tool will later provide.\n- Partially dynamic metadata is specified in the `[project]` table as a list or table, and also listed in `dynamic`, allowing the build backend to add entries but not modify or remove existing ones.", + "markdownDescription": "There are three kinds of metadata: _static_, _dynamic_, and _partially dynamic_.\n- Static metadata is listed in the `[project]` table directly and cannot be specified or changed by a tool.\n- Dynamic metadata key names are listed inside the `dynamic` key and represents metadata that a tool will later provide.\n- Partially dynamic metadata is specified in the `[project]` table as a list or table, and also listed in `dynamic`, allowing the build backend to add entries but not modify or remove existing ones.", + "x-intellij-html-description": "

There are three kinds of metadata: static, dynamic, and partially dynamic.

", + "x-taplo": { + "links": { + "key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#declaring-project-metadata-the-project-table", + "initKeys": [ + "name", + "version", + "description", + "readme", + "license", + "authors", + "classifiers", + "urls", + "dependencies" + ] + } + }, + "x-tombi-table-keys-order": "schema", + "properties": { + "name": { + "title": "Project name", + "description": "Valid name consists only of ASCII letters and numbers, period, underscore and hyphen. It must start and end with a letter or number.", + "markdownDescription": "Valid name consists only of ASCII letters and numbers, period, underscore and hyphen. It must start and end with a letter or number.", + "x-intellij-html-description": "

Valid name consists only of ASCII letters and numbers, period, underscore and hyphen. It must start and end with a letter or number.

", + "x-taplo": { + "links": { + "key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#name" + } + }, + "type": "string", + "pattern": "^([a-zA-Z\\d]|[a-zA-Z\\d][\\w.-]*[a-zA-Z\\d])$" + }, + "version": { + "type": "string", + "pattern": "^v?((([0-9]+)!)?([0-9]+(\\.[0-9]+)*)([-_\\.]?(alpha|a|beta|b|preview|pre|c|rc)[-_\\.]?([0-9]+)?)?((-([0-9]+))|([-_\\.]?(post|rev|r)[-_\\.]?([0-9]+)?))?([-_\\.]?(dev)[-_\\.]?([0-9]+)?)?)(\\+([a-zA-Z0-9]+([-_\\.][a-zA-Z0-9]+)*))?$", + "title": "Project version", + "description": "Version of the project, as defined in the [Version specifier specification](https://packaging.python.org/en/latest/specifications/version-specifiers/), and preferably [already normalized](https://packaging.python.org/en/latest/specifications/version-specifiers/#normalization).", + "markdownDescription": "Version of the project, as defined in the [Version specifier specification](https://packaging.python.org/en/latest/specifications/version-specifiers/), and preferably [already normalized](https://packaging.python.org/en/latest/specifications/version-specifiers/#normalization).", + "x-intellij-html-description": "

Version of the project, as defined in the Version specifier specification, and preferably already normalized.

", + "x-taplo": { + "links": { + "key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#version" + } + }, + "examples": ["42.0.1", "0.3.9rc7.post0.dev5"] + }, + "description": { + "type": "string", + "title": "Project summary description", + "description": "Summary description of the project in one line. Tools may not accept multiple lines.", + "markdownDescription": "Summary description of the project in one line. Tools may not accept multiple lines.", + "x-intellij-html-description": "

Summary description of the project in one line. Tools may not accept multiple lines.

", + "x-taplo": { + "links": { + "key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#description" + } + } + }, + "readme": { + "title": "Project full description", + "description": "Value can be a relative path to text / markdown (`.md` suffix) / reStructuredText (`.rst` suffix) readme file, or a table with either:\n- `file` key containing path of aforementioned readme file, or\n- `text` key containing the full readme text embedded inside `pyproject.toml`.", + "markdownDescription": "Value can be a relative path to text / markdown (`.md` suffix) / reStructuredText (`.rst` suffix) readme file, or a table with either:\n- `file` key containing path of aforementioned readme file, or\n- `text` key containing the full readme text embedded inside `pyproject.toml`.", + "x-intellij-html-description": "

Value can be a relative path to text / markdown (.md suffix) / reStructuredText (.rst suffix) readme file, or a table with either:

", + "x-taplo": { + "links": { + "key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#readme" + } + }, + "oneOf": [ + { + "title": "README file path", + "type": "string" + }, + { + "additionalProperties": false, + "type": "object", + "required": ["file"], + "properties": { + "file": { + "title": "README file path", + "type": "string" + }, + "content-type": { + "title": "README content-type", + "description": "RFC 1341 compliant content-type (with optional charset, defaulting to UTF-8)", + "type": "string" + } + }, + "x-tombi-table-keys-order": "schema" + }, + { + "additionalProperties": false, + "type": "object", + "required": ["text"], + "properties": { + "text": { + "title": "README text", + "type": "string" + }, + "content-type": { + "title": "README content-type", + "description": "RFC 1341 compliant content-type (with optional charset, defaulting to UTF-8)", + "type": "string" + } + }, + "x-tombi-table-keys-order": "schema" + }, + { + "additionalProperties": false, + "type": "object", + "required": ["content-type"], + "properties": { + "content-type": { + "title": "README content-type", + "description": "RFC 1341 compliant content-type (with optional charset, defaulting to UTF-8)", + "type": "string" + } + }, + "x-tombi-table-keys-order": "schema" + } + ], + "examples": [ + "README.md", + { + "file": "README.txt", + "content-type": "text/plain" + }, + { + "text": "# Example project\n\nSome readme content", + "content-type": "text/markdown" + } + ] + }, + "requires-python": { + "type": "string", + "title": "Python version compatibility", + "description": "Specifies the Python version(s) that the distribution is compatible with. Must be in the format specified in [Version specifiers](https://packaging.python.org/en/latest/specifications/version-specifiers/).", + "markdownDescription": "Specifies the Python version(s) that the distribution is compatible with. Must be in the format specified in [Version specifiers](https://packaging.python.org/en/latest/specifications/version-specifiers/).", + "x-intellij-html-description": "

Specifies the Python version(s) that the distribution is compatible with. Must be in the format specified in Version specifiers.

", + "x-taplo": { + "links": { + "key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#requires-python" + } + }, + "examples": [">= 3.7"] + }, + "license": { + "$comment": "PEP 639: Table format (text/file subkey) is deprecated. SPDX license expression string is recommended.", + "title": "Project license", + "description": "A string containing a valid [SPDX license expression](https://spdx.github.io/spdx-spec/v2.2.2/SPDX-license-expressions/) (recommended), or a table with either:\n- `file` key specifying a relative path to a license file (deprecated per PEP 639), or\n- `text` key containing full license content (deprecated per PEP 639)", + "markdownDescription": "A string containing a valid [SPDX license expression](https://spdx.github.io/spdx-spec/v2.2.2/SPDX-license-expressions/) (recommended), or a table with either:\n- `file` key specifying a relative path to a license file (deprecated per PEP 639), or\n- `text` key containing full license content (deprecated per PEP 639)", + "x-intellij-html-description": "

A string containing a valid SPDX license expression (recommended), or a table with either:

", + "x-taplo": { + "links": { + "key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#license" + } + }, + "oneOf": [ + { + "type": "object", + "additionalProperties": false, + "required": ["file"], + "deprecated": true, + "properties": { + "file": { + "title": "License file path", + "description": "Deprecated per [PEP 639](https://peps.python.org/pep-0639/#add-license-file-key). Instead, list license file paths in the top-level `license-files` field and specify the license using an SPDX expression string in the `license` field.", + "type": "string" + } + } + }, + { + "type": "object", + "additionalProperties": false, + "required": ["text"], + "deprecated": true, + "properties": { + "text": { + "title": "License text", + "type": "string" + } + } + }, + { + "$comment": "SPDX license expression (recommended per PEP 639)", + "type": "string" + } + ], + "examples": [ + "MIT", + "BSD-2-Clause OR Apache-2.0", + "LicenseRef-Proprietary" + ] + }, + "license-files": { + "$comment": "Still provisional under PEP 639", + "type": "array", + "items": { + "type": "string" + }, + "title": "License files", + "description": "Relative paths or globs to paths of license files. Can be an empty list.", + "markdownDescription": "Relative paths or globs to paths of license files. Can be an empty list.", + "x-intellij-html-description": "

Relative paths or globs to paths of license files. Can be an empty list.

", + "x-taplo": { + "links": { + "key": "https://peps.python.org/pep-0639/#add-license-files-key" + } + }, + "x-tombi-array-values-order": "version-sort" + }, + "authors": { + "type": "array", + "items": { + "$ref": "#/definitions/projectAuthor" + }, + "title": "Project authors", + "description": "People or organizations considered as 'authors' of the project. Each author is a table with `name` key, `email` key, or both.", + "markdownDescription": "People or organizations considered as 'authors' of the project. Each author is a table with `name` key, `email` key, or both.", + "x-intellij-html-description": "

People or organizations considered as 'authors' of the project. Each author is a table with name key, email key, or both.

", + "x-taplo": { + "links": { + "key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#authors-maintainers" + } + } + }, + "maintainers": { + "type": "array", + "items": { + "$ref": "#/definitions/projectAuthor" + }, + "title": "Project maintainers", + "description": "People or organizations considered as 'maintainers' of the project. Each maintainer is a table with `name` key, `email` key, or both.", + "markdownDescription": "People or organizations considered as 'maintainers' of the project. Each maintainer is a table with `name` key, `email` key, or both.", + "x-intellij-html-description": "

People or organizations considered as 'maintainers' of the project. Each maintainer is a table with name key, email key, or both.

", + "x-taplo": { + "links": { + "key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#authors-maintainers" + } + } + }, + "keywords": { + "type": "array", + "items": { + "type": "string" + }, + "uniqueItems": true, + "title": "Project keywords", + "description": "List of keywords or tags that describe the project. They could be used by search engines to categorize the project.", + "markdownDescription": "List of keywords or tags that describe the project. They could be used by search engines to categorize the project.", + "x-intellij-html-description": "

List of keywords or tags that describe the project. They could be used by search engines to categorize the project.

", + "x-taplo": { + "links": { + "key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#keywords" + } + }, + "x-tombi-array-values-order": "version-sort" + }, + "classifiers": { + "type": "array", + "items": { + "type": "string" + }, + "uniqueItems": true, + "title": "Applicable Trove classifiers", + "description": "List of [Trove classifiers](https://pypi.org/classifiers/) that describe the project. PyPI use the classifiers to categorize projects.", + "markdownDescription": "List of [Trove classifiers](https://pypi.org/classifiers/) that describe the project. PyPI use the classifiers to categorize projects.", + "x-intellij-html-description": "

List of Trove classifiers that describe the project. PyPI use the classifiers to categorize projects.

", + "x-taplo": { + "links": { + "key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#classifiers" + } + }, + "x-tombi-array-values-order": "version-sort" + }, + "urls": { + "type": "object", + "additionalProperties": { + "type": "string", + "format": "uri" + }, + "title": "Project URLs", + "description": "Table consisting one or multiple `label: URL` pairs. Common indexes like PyPI uses [well-known Project URLs](https://packaging.python.org/en/latest/specifications/well-known-project-urls/#well-known-labels) when presenting project pages.", + "markdownDescription": "Table consisting one or multiple `label: URL` pairs. Common indexes like PyPI uses [well-known Project URLs](https://packaging.python.org/en/latest/specifications/well-known-project-urls/#well-known-labels) when presenting project pages.", + "x-intellij-html-description": "

Table consisting one or multiple label: URL pairs. Common indexes like PyPI uses well-known Project URLs when presenting project pages.

", + "x-taplo": { + "links": { + "key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#urls" + } + }, + "x-tombi-additional-key-label": "url_label", + "x-tombi-table-keys-order": "version-sort", + "examples": [ + { + "homepage": "https://example.com/example-project" + }, + { + "\"home page\"": "https://example.com/example-project", + "documentation": "https://doc.example.com/example-project/stable", + "repository": "https://git.example.com/some/repo.git" + } + ] + }, + "scripts": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "title": "Console scripts", + "description": "Table of [entry points](https://packaging.python.org/en/latest/specifications/entry-points/) that allows package installers to create a command-line wrapper for. Each key is the name of the script to be created, and each value is the function or object to all, in form of either `importable.module` or `importable.module:object.attr`. Windows platform treats `console_scripts` specially in that they are wrapped in a console executable, so they are attached to a console and can use `sys.stdin`, `sys.stdout` and `sys.stderr` for I/O.", + "markdownDescription": "Table of [entry points](https://packaging.python.org/en/latest/specifications/entry-points/) that allows package installers to create a command-line wrapper for. Each key is the name of the script to be created, and each value is the function or object to all, in form of either `importable.module` or `importable.module:object.attr`. Windows platform treats `console_scripts` specially in that they are wrapped in a console executable, so they are attached to a console and can use `sys.stdin`, `sys.stdout` and `sys.stderr` for I/O.", + "x-intellij-html-description": "

Table of entry points that allows package installers to create a command-line wrapper for. Each key is the name of the script to be created, and each value is the function or object to all, in form of either importable.module or importable.module:object.attr. Windows platform treats console_scripts specially in that they are wrapped in a console executable, so they are attached to a console and can use sys.stdin, sys.stdout and sys.stderr for I/O.

", + "x-taplo": { + "links": { + "key": "https://packaging.python.org/en/latest/specifications/entry-points/#use-for-scripts" + } + }, + "x-tombi-additional-key-label": "script_name", + "x-tombi-table-keys-order": "version-sort", + "examples": [ + { + "mycmd": "package.module:object.function" + } + ] + }, + "gui-scripts": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "title": "GUI scripts", + "description": "Table of [entry points](https://packaging.python.org/en/latest/specifications/entry-points/) that allows package installers to create a GUI wrapper for. Each key is the name of the script to be created, and each value is the function or object to all, in form of either `importable.module` or `importable.module:object.attr`. Windows platform treats `gui_scripts` specially in that they are wrapped in a GUI executable, so they can be started without a console, but cannot use standard streams unless application code redirects them.", + "markdownDescription": "Table of [entry points](https://packaging.python.org/en/latest/specifications/entry-points/) that allows package installers to create a GUI wrapper for. Each key is the name of the script to be created, and each value is the function or object to all, in form of either `importable.module` or `importable.module:object.attr`. Windows platform treats `gui_scripts` specially in that they are wrapped in a GUI executable, so they can be started without a console, but cannot use standard streams unless application code redirects them.", + "x-intellij-html-description": "

Table of entry points that allows package installers to create a GUI wrapper for. Each key is the name of the script to be created, and each value is the function or object to all, in form of either importable.module or importable.module:object.attr. Windows platform treats gui_scripts specially in that they are wrapped in a GUI executable, so they can be started without a console, but cannot use standard streams unless application code redirects them.

", + "x-taplo": { + "links": { + "key": "https://packaging.python.org/en/latest/specifications/entry-points/#use-for-scripts" + } + }, + "x-tombi-additional-key-label": "script_name", + "x-tombi-table-keys-order": "version-sort", + "examples": [ + { + "mycmd": "package.module:object.function" + } + ] + }, + "entry-points": { + "type": "object", + "additionalProperties": false, + "patternProperties": { + "^\\w+(\\.\\w+)*$": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-tombi-additional-key-label": "entry_point_name" + } + }, + "propertyNames": { + "not": { + "anyOf": [ + { + "const": "console_scripts" + }, + { + "const": "gui_scripts" + } + ] + } + }, + "title": "Other entry-point groups", + "description": "Extra [entry point groups](https://packaging.python.org/en/latest/specifications/entry-points/) that allow applications to load plugins. For example, Pygments (a syntax highlighting tool) can use additional styles from separately installed packages through `[project.entry-points.\"pygments.styles\"]`. Each key is the name of the entry-point group, and each value is a table of entry points.", + "markdownDescription": "Extra [entry point groups](https://packaging.python.org/en/latest/specifications/entry-points/) that allow applications to load plugins. For example, Pygments (a syntax highlighting tool) can use additional styles from separately installed packages through `[project.entry-points.\"pygments.styles\"]`. Each key is the name of the entry-point group, and each value is a table of entry points.", + "x-intellij-html-description": "

Extra entry point groups that allow applications to load plugins. For example, Pygments (a syntax highlighting tool) can use additional styles from separately installed packages through [project.entry-points.\"pygments.styles\"]. Each key is the name of the entry-point group, and each value is a table of entry points.

", + "x-taplo": { + "links": { + "key": "https://packaging.python.org/en/latest/specifications/entry-points/#use-for-plugins" + } + }, + "x-tombi-additional-key-label": "entry_point_group_name", + "x-tombi-table-keys-order": "version-sort", + "examples": [ + { + "pygments.styles": { + "monokai": "package.module:object.attribute" + } + } + ] + }, + "dependencies": { + "type": "array", + "items": { + "type": "string" + }, + "uniqueItems": true, + "title": "Project mandatory dependency requirements", + "description": "An array of [dependency specifier](https://packaging.python.org/en/latest/specifications/dependency-specifiers/) strings, each representing a mandatory dependent package of the project.", + "markdownDescription": "An array of [dependency specifier](https://packaging.python.org/en/latest/specifications/dependency-specifiers/) strings, each representing a mandatory dependent package of the project.", + "x-intellij-html-description": "

An array of dependency specifier strings, each representing a mandatory dependent package of the project.

", + "x-taplo": { + "links": { + "key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#dependencies-optional-dependencies" + } + }, + "x-tombi-array-values-order": "version-sort", + "examples": [["attrs", "requests ~= 2.28"]] + }, + "optional-dependencies": { + "type": "object", + "patternProperties": { + "^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9._-]*[a-zA-Z0-9])$": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "title": "Project extra dependency requirements", + "description": "Each entry is a key/value pair, with the key specifying [extra feature name](https://packaging.python.org/en/latest/specifications/core-metadata/#provides-extra-multiple-use) (such as `socks` in `requests[socks]`), and value is an array of [dependency specifier](https://packaging.python.org/en/latest/specifications/dependency-specifiers/) strings.", + "markdownDescription": "Each entry is a key/value pair, with the key specifying [extra feature name](https://packaging.python.org/en/latest/specifications/core-metadata/#provides-extra-multiple-use) (such as `socks` in `requests[socks]`), and value is an array of [dependency specifier](https://packaging.python.org/en/latest/specifications/dependency-specifiers/) strings.", + "x-intellij-html-description": "

Each entry is a key/value pair, with the key specifying extra feature name (such as socks in requests[socks]), and value is an array of dependency specifier strings.

", + "x-taplo": { + "links": { + "key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#dependencies-optional-dependencies" + } + }, + "x-tombi-additional-key-label": "package_name", + "x-tombi-table-keys-order": "version-sort", + "examples": [ + { + "typing": ["boto3-stubs", "typing-extensions ~= 4.1"] + } + ] + }, + "import-names": { + "$ref": "#/definitions/importNames", + "description": "An array of strings specifying the import names that the project exclusively provides when installed.", + "markdownDescription": "An array of strings specifying the import names that the project exclusively provides when installed.", + "x-intellij-html-description": "An array of strings specifying the import names that the project exclusively provides when installed.", + "x-taplo": { + "links": { + "key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#import-names" + } + }, + "examples": [["my_package", "_internal ; private"]] + }, + "import-namespaces": { + "$ref": "#/definitions/importNames", + "description": "An array of strings specifying the import names that the project provides when installed, but not exclusively.", + "markdownDescription": "An array of strings specifying the import names that the project provides when installed, but not exclusively.", + "x-intellij-html-description": "An array of strings specifying the import names that the project provides when installed, but not exclusively.", + "x-taplo": { + "links": { + "key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#import-namespaces" + } + }, + "examples": [["my_package", "_internal ; private"]] + }, + "dynamic": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "description", + "readme", + "requires-python", + "license", + "license-files", + "authors", + "maintainers", + "keywords", + "classifiers", + "urls", + "scripts", + "gui-scripts", + "entry-points", + "dependencies", + "optional-dependencies", + "import-names", + "import-namespaces" + ] + }, + "uniqueItems": true, + "title": "Dynamic metadata values", + "description": "Specifies which keys are intentionally unspecified under `[project]` table so build backend can/will provide such metadata dynamically. Each key must be listed only once. It is an error to both list a key in `dynamic` and use the key directly in `[project]` unless the key is a list or table with arbitrary entries (PEP 808), in which case the build backend may extend it.\nOne of the most common usage is `version`, which allows build backend to retrieve project version from source code or version control system instead of hardcoding it in `pyproject.toml`.", + "markdownDescription": "Specifies which keys are intentionally unspecified under `[project]` table so build backend can/will provide such metadata dynamically. Each key must be listed only once. It is an error to both list a key in `dynamic` and use the key directly in `[project]` unless the key is a list or table with arbitrary entries (PEP 808), in which case the build backend may extend it.\nOne of the most common usage is `version`, which allows build backend to retrieve project version from source code or version control system instead of hardcoding it in `pyproject.toml`.", + "x-tombi-array-values-order": "version-sort", + "x-intellij-html-description": "

Specifies which keys are intentionally unspecified under [project] table so build backend can/will provide such metadata dynamically. Each key must be listed only once. It is an error to both list a key in dynamic and use the key directly in [project] unless the key is a list or table with arbitrary entries (PEP 808), in which case the build backend may extend it.

One of the most common usage is version, which allows build backend to retrieve project version from source code or version control system instead of hardcoding it in pyproject.toml.

", + "x-taplo": { + "links": { + "key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#dynamic" + } + }, + "examples": [["version"]] + } + }, + "oneOf": [ + { + "required": ["dynamic"], + "properties": { + "dynamic": { + "type": "array", + "contains": { + "const": "version" + } + } + } + }, + { + "required": ["version"], + "properties": { + "version": true + } + } + ], + "dependencies": { + "version": { + "not": { + "required": ["dynamic"], + "properties": { + "dynamic": { + "type": "array", + "contains": { + "const": "version" + } + } + } + } + }, + "description": { + "not": { + "required": ["dynamic"], + "properties": { + "dynamic": { + "type": "array", + "contains": { + "const": "description" + } + } + } + } + }, + "readme": { + "not": { + "required": ["dynamic"], + "properties": { + "dynamic": { + "type": "array", + "contains": { + "const": "readme" + } + } + } + } + }, + "requires-python": { + "not": { + "required": ["dynamic"], + "properties": { + "dynamic": { + "type": "array", + "contains": { + "const": "requires-python" + } + } + } + } + }, + "license": { + "not": { + "required": ["dynamic"], + "properties": { + "dynamic": { + "type": "array", + "contains": { + "const": "license" + } + } + } + } + }, + "license-files": { + "properties": { + "license": { + "type": "string" + } + } + } + } + }, + "dependency-groups": { + "title": "PEP 735 dependency groups", + "description": "Named groups of dependencies, similar to `requirements.txt` files, which launchers, IDEs, and other tools can find and identify by name. Each item in `[dependency-groups]` is defined as mapping of group name to list of [dependency specifiers](https://packaging.python.org/en/latest/specifications/dependency-specifiers/).", + "markdownDescription": "Named groups of dependencies, similar to `requirements.txt` files, which launchers, IDEs, and other tools can find and identify by name. Each item in `[dependency-groups]` is defined as mapping of group name to list of [dependency specifiers](https://packaging.python.org/en/latest/specifications/dependency-specifiers/).", + "type": "object", + "properties": { + "dev": { + "$ref": "#/definitions/DependencyGroup" + } + }, + "patternProperties": { + "^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9._-]*[a-zA-Z0-9])$": { + "$ref": "#/definitions/DependencyGroup" + } + }, + "additionalProperties": false, + "x-intellij-html-description": "

Named groups of dependencies, similar to requirements.txt files, which launchers, IDEs, and other tools can find and identify by name. Each item in [dependency-groups] is defined as mapping of group name to list of dependency specifiers.

", + "x-tombi-additional-key-label": "group_name", + "x-tombi-table-keys-order": { + "properties": "version-sort", + "patternProperties": "version-sort" + }, + "x-taplo": { + "links": { + "key": "https://peps.python.org/pep-0735/" + } + } + }, + "build-system": { + "$ref": "#/definitions/BuildSystem" + }, + "tool": { + "type": "object", + "additionalProperties": { + "type": "object", + "additionalProperties": true + }, + "title": "Tool-specific configuration", + "description": "Every tool that is used by the project can have users specify configuration data as long as they use a sub-table within `[tool]`. Generally a project can use the subtable `tool.$NAME` if, and only if, they own the entry for `$NAME` in the Cheeseshop/PyPI.", + "markdownDescription": "Every tool that is used by the project can have users specify configuration data as long as they use a sub-table within `[tool]`. Generally a project can use the subtable `tool.$NAME` if, and only if, they own the entry for `$NAME` in the Cheeseshop/PyPI.", + "x-intellij-html-description": "

Every tool that is used by the project can have users specify configuration data as long as they use a sub-table within [tool]. Generally a project can use the subtable tool.$NAME if, and only if, they own the entry for $NAME in the Cheeseshop/PyPI.

", + "x-taplo": { + "links": { + "key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#arbitrary-tool-configuration-the-tool-table" + } + }, + "x-tombi-additional-key-label": "tool_name", + "x-tombi-table-keys-order": "version-sort", + "properties": { + "black": { + "$ref": "partial-black.json", + "title": "Code Formatter", + "description": "The uncompromising Python code formatter." + }, + "cibuildwheel": { + "$ref": "partial-cibuildwheel.json", + "title": "Wheel Builder", + "description": "Build Python wheels for all platforms." + }, + "fastapi": { + "$ref": "partial-fastapi.json", + "title": "Web Framework", + "description": "FastAPI web framework configuration." + }, + "scheduled": { + "$ref": "partial-scheduled.json", + "title": "Scheduled Jobs", + "description": "Scheduled jobs in Python's `pyproject.toml`.\n\nThis is a specification for declaring recurring scheduled jobs in Python projects, in `pyproject.toml`.\n\nIt defines how jobs are declared and how providers would run them.\n\nIt does not provide a specific implementation for running scheduled jobs, because that is provider specific.\n\nFor example, a file at `app/jobs.py` could define:\n\n```python\ndef clean_files():\n print(\"Running cleanup...\")\n```\n\nYou could define a scheduled job to run that function once per day with:\n\n```toml\n[tool.scheduled.clean-files]\nevery = \"day\"\nentrypoint = \"app.jobs:clean_files\"\n```" + }, + "mypy": { + "$ref": "partial-mypy.json", + "title": "Static Type Checker", + "description": "Optional static typing for Python." + }, + "ruff": { + "$ref": "ruff.json", + "title": "Linter and Formatter", + "description": "An extremely fast Python linter and formatter, written in Rust." + }, + "ty": { + "$ref": "ty.json", + "title": "Type checker", + "description": "An extremely fast Python type checker, written in Rust." + }, + "hatch": { + "$ref": "hatch.json", + "title": "Project Manager", + "description": "Modern, extensible Python project management." + }, + "maturin": { + "$ref": "maturin.json", + "title": "Rust-Python Package Builder", + "description": "Build and publish crates with pyo3, cffi and uniffi bindings as well as rust binaries as python packages" + }, + "scikit-build": { + "$ref": "partial-scikit-build.json", + "title": "Build System Generator", + "description": "Improved build system generator for Python C/C++/Fortran extensions" + }, + "setuptools": { + "$ref": "partial-setuptools.json", + "title": "Package Manager", + "description": "Easily download, build, install, upgrade, and uninstall Python packages." + }, + "setuptools_scm": { + "$ref": "partial-setuptools-scm.json", + "title": "Version Manager", + "description": "Manage Python package versions using SCM (e.g. Git)." + }, + "pixi": { + "$ref": "partial-pixi.json", + "title": "Package Manager and Task Runner", + "description": "A package manager and task runner." + }, + "poe": { + "$ref": "partial-poe.json", + "title": "Task Runner", + "description": "A task runner that works well with `pyproject.toml` files." + }, + "poetry": { + "$ref": "partial-poetry.json", + "title": "Package Manager", + "description": "Python dependency management and packaging made easy." + }, + "pdm": { + "$ref": "partial-pdm.json", + "title": "Package Manager", + "description": "A modern Python package manager with PEP 621 support." + }, + "pyright": { + "$ref": "partial-pyright.json", + "title": "Static Type Checker", + "description": "Static type checker for Python." + }, + "pytest": { + "$ref": "partial-pytest.json", + "title": "Testing Framework", + "description": "Standardized automated testing of Python packages" + }, + "repo-review": { + "$ref": "partial-repo-review.json", + "title": "Repository Reviewer", + "description": "Review a repository for best practices." + }, + "taskipy": { + "$ref": "partial-taskipy.json", + "title": "Task Runner", + "description": "The complementary task runner for python." + }, + "tombi": { + "$ref": "https://www.schemastore.org/tombi.json", + "title": "TOML Toolkit", + "description": "Tombi is a toolkit for TOML; providing a formatter/linter and language server" + }, + "tox": { + "$ref": "tox.json", + "title": "Testing Framework", + "description": "Standardized automated testing of Python packages" + }, + "uv": { + "$ref": "uv.json", + "title": "Package Manager", + "description": "An extremely fast Python package installer and resolver, written in Rust." + }, + "dfc": { + "$ref": "partial-dfc.json", + "title": "docstring-format-checker", + "description": "A CLI tool to check and validate Python docstring formatting and completeness" + }, + "docstring-format-checker": { + "$ref": "partial-dfc.json", + "title": "docstring-format-checker", + "description": "A CLI tool to check and validate Python docstring formatting and completeness" + }, + "quikrun": { + "$ref": "https://www.schemastore.org/quikrun.json", + "title": "quikrun", + "description": "A CLI tool to run code files instantly without typing complex commands in terminal." + } + }, + "examples": [ + { + "tool": { + "isort": { + "profile": "black" + } + } + } + ] + } + }, + "title": "JSON schema for Python project metadata and configuration", + "type": "object", + "x-taplo-info": { + "authors": ["zevisert (https://github.com/zevisert)"], + "pattern": ["^(.*(/|\\\\)pyproject\\.toml|pyproject\\.toml)$"] + } +} diff --git a/.schemas/ruff.json b/.schemas/ruff.json new file mode 100644 index 0000000..a154345 --- /dev/null +++ b/.schemas/ruff.json @@ -0,0 +1,4969 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/ruff.json", + "title": "Options", + "type": "object", + "properties": { + "allowed-confusables": { + "description": "A list of allowed \"confusable\" Unicode characters to ignore when\nenforcing `RUF001`, `RUF002`, and `RUF003`.", + "type": ["array", "null"], + "deprecated": true, + "items": { + "type": "string", + "maxLength": 1, + "minLength": 1 + } + }, + "analyze": { + "description": "Options to configure import map generation.", + "anyOf": [ + { + "$ref": "#/definitions/AnalyzeOptions" + }, + { + "type": "null" + } + ] + }, + "builtins": { + "description": "A list of builtins to treat as defined references, in addition to the\nsystem builtins.", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "cache-dir": { + "description": "A path to the cache directory.\n\nBy default, Ruff stores cache results in a `.ruff_cache` directory in\nthe current project root.\n\nHowever, Ruff will also respect the `RUFF_CACHE_DIR` environment\nvariable, which takes precedence over that default.\n\nThis setting will override even the `RUFF_CACHE_DIR` environment\nvariable, if set.", + "type": ["string", "null"] + }, + "dummy-variable-rgx": { + "description": "A regular expression used to identify \"dummy\" variables, or those which\nshould be ignored when enforcing (e.g.) unused-variable rules. The\ndefault expression matches `_`, `__`, and `_var`, but not `_var_`.", + "type": ["string", "null"], + "deprecated": true + }, + "exclude": { + "description": "A list of file patterns to exclude from formatting and linting.\n\nExclusions are based on globs, and can be either:\n\n- Single-path patterns, like `.mypy_cache` (to exclude any directory\n named `.mypy_cache` in the tree), `foo.py` (to exclude any file named\n `foo.py`), or `foo_*.py` (to exclude any file matching `foo_*.py` ).\n- Relative patterns, like `directory/foo.py` (to exclude that specific\n file) or `directory/*.py` (to exclude any Python files in\n `directory`). Note that these paths are relative to the project root\n (e.g., the directory containing your `pyproject.toml`).\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).\n\nNote that you'll typically want to use\n[`extend-exclude`](#extend-exclude) to modify the excluded paths.", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "explicit-preview-rules": { + "description": "Whether to require exact codes to select preview rules. When enabled,\npreview rules will not be selected by prefixes — the full code of each\npreview rule will be required to enable the rule.", + "type": ["boolean", "null"], + "deprecated": true + }, + "extend": { + "description": "A path to a local `pyproject.toml` or `ruff.toml` file to merge into this\nconfiguration. User home directory and environment variables will be\nexpanded.\n\nTo resolve the current configuration file, Ruff will first load\nthis base configuration file, then merge in properties defined\nin the current configuration file. Most settings follow simple override\nbehavior where the child value replaces the parent value. However,\nrule selection (`lint.select` and `lint.ignore`) has special merging\nbehavior: if the child configuration specifies `lint.select`, it\nestablishes a new baseline rule set and the parent's `lint.ignore`\nrules are discarded; if the child configuration omits `lint.select`,\nthe parent's rule selection is inherited and both parent and child\n`lint.ignore` rules are accumulated together.", + "type": ["string", "null"] + }, + "extend-exclude": { + "description": "A list of file patterns to omit from formatting and linting, in addition to those\nspecified by [`exclude`](#exclude).\n\nExclusions are based on globs, and can be either:\n\n- Single-path patterns, like `.mypy_cache` (to exclude any directory\n named `.mypy_cache` in the tree), `foo.py` (to exclude any file named\n `foo.py`), or `foo_*.py` (to exclude any file matching `foo_*.py` ).\n- Relative patterns, like `directory/foo.py` (to exclude that specific\n file) or `directory/*.py` (to exclude any Python files in\n `directory`). Note that these paths are relative to the project root\n (e.g., the directory containing your `pyproject.toml`).\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "extend-fixable": { + "description": "A list of rule codes or prefixes to consider fixable, in addition to those\nspecified by [`fixable`](#lint_fixable).", + "type": ["array", "null"], + "deprecated": true, + "items": { + "$ref": "#/definitions/RuleSelector" + } + }, + "extend-ignore": { + "description": "A list of rule codes or prefixes to ignore, in addition to those\nspecified by `ignore`.\n\nThis option is deprecated because it is now interchangeable with\n[`ignore`](#lint_ignore). In earlier versions of Ruff, `ignore` would\n_replace_ the set of ignored rules when using configuration inheritance\n(via the top-level [`extend`](https://docs.astral.sh/ruff/settings/#extend)\nsetting), while `extend-ignore` would _add_ to the inherited set. Ruff\nnow merges both `ignore` and `extend-ignore` into a single set, so the\ndistinction no longer applies. Use [`ignore`](#lint_ignore) instead.", + "type": ["array", "null"], + "deprecated": true, + "items": { + "$ref": "#/definitions/RuleSelector" + } + }, + "extend-include": { + "description": "A list of file patterns to include when linting, in addition to those\nspecified by [`include`](#include).\n\nInclusion are based on globs, and should be single-path patterns, like\n`*.pyw`, to include any file with the `.pyw` extension.\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "extend-per-file-ignores": { + "description": "A list of mappings from file pattern to rule codes or prefixes to\nexclude, in addition to any rules excluded by [`per-file-ignores`](#lint_per-file-ignores).", + "type": ["object", "null"], + "additionalProperties": { + "type": "array", + "items": { + "$ref": "#/definitions/RuleSelector" + } + }, + "deprecated": true + }, + "extend-safe-fixes": { + "description": "A list of rule codes or prefixes for which unsafe fixes should be considered\nsafe.", + "type": ["array", "null"], + "deprecated": true, + "items": { + "$ref": "#/definitions/RuleSelector" + } + }, + "extend-select": { + "description": "A list of rule codes or prefixes to enable, in addition to those\nspecified by [`select`](#lint_select).\n\nUnlike [`select`](#lint_select), which _replaces_ the default rule set\nwhen specified, `extend-select` _adds_ to whatever rules are already\nactive. This makes `extend-select` the preferred option when you want\nto enable additional rules on top of the defaults without having to\nenumerate them.\n\nFor example, to enable the defaults plus flake8-bugbear:\n\n```toml\n[tool.ruff.lint]\n# Adds flake8-bugbear on top of the default rules (E4, E7, E9, F).\nextend-select = [\"B\"]\n```\n\nUsing `select = [\"B\"]` instead would _replace_ the defaults, enabling\nonly flake8-bugbear.", + "type": ["array", "null"], + "deprecated": true, + "items": { + "$ref": "#/definitions/RuleSelector" + } + }, + "extend-unfixable": { + "description": "A list of rule codes or prefixes to consider non-auto-fixable, in addition to those\nspecified by [`unfixable`](#lint_unfixable).", + "type": ["array", "null"], + "deprecated": true, + "items": { + "$ref": "#/definitions/RuleSelector" + } + }, + "extend-unsafe-fixes": { + "description": "A list of rule codes or prefixes for which safe fixes should be considered\nunsafe.", + "type": ["array", "null"], + "deprecated": true, + "items": { + "$ref": "#/definitions/RuleSelector" + } + }, + "extension": { + "description": "A mapping of custom file extensions to known file types (overridden\nby the `--extension` command-line flag).\n\nSupported file types include `python`, `pyi`, `ipynb`, and `markdown`.\n\nAny file extensions listed here will be automatically added to the\ndefault `include` list as a `*.{ext}` glob, so that they are linted\nand formatted without needing any additional configuration settings.", + "type": ["object", "null"], + "additionalProperties": { + "$ref": "#/definitions/Language" + } + }, + "external": { + "description": "A list of rule codes or prefixes that are unsupported by Ruff, but should be\npreserved when (e.g.) validating `# noqa` directives. Useful for\nretaining `# noqa` directives that cover plugins not yet implemented\nby Ruff.", + "type": ["array", "null"], + "deprecated": true, + "items": { + "type": "string" + } + }, + "fix": { + "description": "Enable fix behavior by-default when running `ruff` (overridden\nby the `--fix` and `--no-fix` command-line flags).\nOnly includes automatic fixes unless `--unsafe-fixes` is provided.", + "type": ["boolean", "null"] + }, + "fix-only": { + "description": "Like [`fix`](#fix), but disables reporting on leftover violation. Implies [`fix`](#fix).", + "type": ["boolean", "null"] + }, + "fixable": { + "description": "A list of rule codes or prefixes to consider fixable. By default,\nall rules are considered fixable.", + "type": ["array", "null"], + "deprecated": true, + "items": { + "$ref": "#/definitions/RuleSelector" + } + }, + "flake8-annotations": { + "description": "Options for the `flake8-annotations` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/Flake8AnnotationsOptions" + }, + { + "type": "null" + } + ], + "deprecated": true + }, + "flake8-bandit": { + "description": "Options for the `flake8-bandit` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/Flake8BanditOptions" + }, + { + "type": "null" + } + ], + "deprecated": true + }, + "flake8-boolean-trap": { + "description": "Options for the `flake8-boolean-trap` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/Flake8BooleanTrapOptions" + }, + { + "type": "null" + } + ], + "deprecated": true + }, + "flake8-bugbear": { + "description": "Options for the `flake8-bugbear` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/Flake8BugbearOptions" + }, + { + "type": "null" + } + ], + "deprecated": true + }, + "flake8-builtins": { + "description": "Options for the `flake8-builtins` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/Flake8BuiltinsOptions" + }, + { + "type": "null" + } + ], + "deprecated": true + }, + "flake8-comprehensions": { + "description": "Options for the `flake8-comprehensions` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/Flake8ComprehensionsOptions" + }, + { + "type": "null" + } + ], + "deprecated": true + }, + "flake8-copyright": { + "description": "Options for the `flake8-copyright` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/Flake8CopyrightOptions" + }, + { + "type": "null" + } + ], + "deprecated": true + }, + "flake8-errmsg": { + "description": "Options for the `flake8-errmsg` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/Flake8ErrMsgOptions" + }, + { + "type": "null" + } + ], + "deprecated": true + }, + "flake8-gettext": { + "description": "Options for the `flake8-gettext` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/Flake8GetTextOptions" + }, + { + "type": "null" + } + ], + "deprecated": true + }, + "flake8-implicit-str-concat": { + "description": "Options for the `flake8-implicit-str-concat` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/Flake8ImplicitStrConcatOptions" + }, + { + "type": "null" + } + ], + "deprecated": true + }, + "flake8-import-conventions": { + "description": "Options for the `flake8-import-conventions` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/Flake8ImportConventionsOptions" + }, + { + "type": "null" + } + ], + "deprecated": true + }, + "flake8-pytest-style": { + "description": "Options for the `flake8-pytest-style` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/Flake8PytestStyleOptions" + }, + { + "type": "null" + } + ], + "deprecated": true + }, + "flake8-quotes": { + "description": "Options for the `flake8-quotes` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/Flake8QuotesOptions" + }, + { + "type": "null" + } + ], + "deprecated": true + }, + "flake8-self": { + "description": "Options for the `flake8_self` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/Flake8SelfOptions" + }, + { + "type": "null" + } + ], + "deprecated": true + }, + "flake8-tidy-imports": { + "description": "Options for the `flake8-tidy-imports` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/Flake8TidyImportsOptions" + }, + { + "type": "null" + } + ], + "deprecated": true + }, + "flake8-type-checking": { + "description": "Options for the `flake8-type-checking` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/Flake8TypeCheckingOptions" + }, + { + "type": "null" + } + ], + "deprecated": true + }, + "flake8-unused-arguments": { + "description": "Options for the `flake8-unused-arguments` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/Flake8UnusedArgumentsOptions" + }, + { + "type": "null" + } + ], + "deprecated": true + }, + "force-exclude": { + "description": "Whether to enforce [`exclude`](#exclude) and [`extend-exclude`](#extend-exclude) patterns,\neven for paths that are passed to Ruff explicitly. Typically, Ruff will lint\nany paths passed in directly, even if they would typically be\nexcluded. Setting `force-exclude = true` will cause Ruff to\nrespect these exclusions unequivocally.\n\nThis is useful for [`pre-commit`](https://pre-commit.com/), which explicitly passes all\nchanged files to the [`ruff-pre-commit`](https://github.com/astral-sh/ruff-pre-commit)\nplugin, regardless of whether they're marked as excluded by Ruff's own\nsettings.", + "type": ["boolean", "null"] + }, + "format": { + "description": "Options to configure code formatting.", + "anyOf": [ + { + "$ref": "#/definitions/FormatOptions" + }, + { + "type": "null" + } + ] + }, + "ignore": { + "description": "A list of rule codes or prefixes to ignore. Prefixes can specify exact\nrules (like `F841`), entire categories (like `F`), or anything in\nbetween.\n\nWhen breaking ties between enabled and disabled rules (via `select` and\n`ignore`, respectively), more specific prefixes override less\nspecific prefixes. `ignore` takes precedence over `select` if the same\nprefix appears in both.", + "type": ["array", "null"], + "deprecated": true, + "items": { + "$ref": "#/definitions/RuleSelector" + } + }, + "ignore-init-module-imports": { + "description": "Avoid automatically removing unused imports in `__init__.py` files. Such\nimports will still be flagged, but with a dedicated message suggesting\nthat the import is either added to the module's `__all__` symbol, or\nre-exported with a redundant alias (e.g., `import os as os`).\n\nThis option is enabled by default, but you can opt-in to removal of imports\nvia an unsafe fix.", + "type": ["boolean", "null"], + "deprecated": true + }, + "include": { + "description": "A list of file patterns to include when linting.\n\nInclusion are based on globs, and should be single-path patterns, like\n`*.pyw`, to include any file with the `.pyw` extension.\n`pyproject.toml`, `ruff.toml`, and `.ruff.toml` are included here not for\nconfiguration but because we lint whether e.g. the `[project]` matches\nthe schema in `pyproject.toml` or that rule names are used as selectors.\n\nNotebook files (`.ipynb` extension) are included by default on Ruff 0.6.0+.\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "indent-width": { + "description": "The number of spaces per indentation level (tab).\n\nUsed by the formatter and when enforcing long-line violations (like `E501`) to determine the visual\nwidth of a tab.\n\nThis option changes the number of spaces the formatter inserts when\nusing soft-tabs (`indent-style = space`).\n\nPEP 8 recommends using 4 spaces per [indentation level](https://peps.python.org/pep-0008/#indentation).", + "anyOf": [ + { + "$ref": "#/definitions/IndentWidth" + }, + { + "type": "null" + } + ] + }, + "isort": { + "description": "Options for the `isort` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/IsortOptions" + }, + { + "type": "null" + } + ], + "deprecated": true + }, + "line-length": { + "description": "The line length to use when enforcing long-lines violations (like `E501`)\nand at which `isort` and the formatter prefers to wrap lines.\n\nThe length is determined by the number of characters per line, except for lines containing East Asian characters or emojis.\nFor these lines, the [unicode width](https://unicode.org/reports/tr11/) of each character is added up to determine the length.\n\nThe value must be greater than `0`.\n\nNote: While the formatter will attempt to format lines such that they remain\nwithin the `line-length`, it isn't a hard upper bound, and formatted lines may\nexceed the `line-length`.\n\nSee [`pycodestyle.max-line-length`](#lint_pycodestyle_max-line-length) to configure different lengths for `E501` and the formatter.", + "anyOf": [ + { + "$ref": "#/definitions/LineLength" + }, + { + "type": "null" + } + ] + }, + "lint": { + "anyOf": [ + { + "$ref": "#/definitions/LintOptions" + }, + { + "type": "null" + } + ] + }, + "logger-objects": { + "description": "A list of objects that should be treated equivalently to a\n`logging.Logger` object.\n\nThis is useful for ensuring proper diagnostics (e.g., to identify\n`logging` deprecations and other best-practices) for projects that\nre-export a `logging.Logger` object from a common module.\n\nFor example, if you have a module `logging_setup.py` with the following\ncontents:\n```python\nimport logging\n\nlogger = logging.getLogger(__name__)\n```\n\nAdding `\"logging_setup.logger\"` to `logger-objects` will ensure that\n`logging_setup.logger` is treated as a `logging.Logger` object when\nimported from other modules (e.g., `from logging_setup import logger`).", + "type": ["array", "null"], + "deprecated": true, + "items": { + "type": "string" + } + }, + "mccabe": { + "description": "Options for the `mccabe` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/McCabeOptions" + }, + { + "type": "null" + } + ], + "deprecated": true + }, + "namespace-packages": { + "description": "Mark the specified directories as namespace packages. For the purpose of\nmodule resolution, Ruff will treat those directories and all their subdirectories\nas if they contained an `__init__.py` file.", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "output-format": { + "description": "The style in which violation messages should be formatted: `\"full\"` (default)\n(shows source), `\"concise\"`, `\"grouped\"` (group messages by file), `\"json\"`\n(machine-readable), `\"junit\"` (machine-readable XML), `\"github\"` (GitHub\nActions annotations), `\"gitlab\"` (GitLab CI code quality report),\n`\"pylint\"` (Pylint text format) or `\"azure\"` (Azure Pipeline logging commands).", + "anyOf": [ + { + "$ref": "#/definitions/OutputFormat" + }, + { + "type": "null" + } + ] + }, + "pep8-naming": { + "description": "Options for the `pep8-naming` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/Pep8NamingOptions" + }, + { + "type": "null" + } + ], + "deprecated": true + }, + "per-file-ignores": { + "description": "A list of mappings from file pattern to rule codes or prefixes to\nexclude, when considering any matching files. An initial '!' negates\nthe file pattern.", + "type": ["object", "null"], + "additionalProperties": { + "type": "array", + "items": { + "$ref": "#/definitions/RuleSelector" + } + }, + "deprecated": true + }, + "per-file-target-version": { + "description": "A list of mappings from glob-style file pattern to Python version to use when checking the\ncorresponding file(s).\n\nThis may be useful for overriding the global Python version settings in `target-version` or\n`requires-python` for a subset of files. For example, if you have a project with a minimum\nsupported Python version of 3.9 but a subdirectory of developer scripts that want to use a\nnewer feature like the `match` statement from Python 3.10, you can use\n`per-file-target-version` to specify `\"developer_scripts/*.py\" = \"py310\"`.\n\nThis setting is used by the linter to enforce any enabled version-specific lint rules, as\nwell as by the formatter for any version-specific formatting options, such as parenthesizing\ncontext managers on Python 3.10+.", + "type": ["object", "null"], + "additionalProperties": { + "$ref": "#/definitions/PythonVersion" + } + }, + "preview": { + "description": "Whether to enable preview mode. When preview mode is enabled, Ruff will\nuse unstable rules, fixes, and formatting.", + "type": ["boolean", "null"] + }, + "pycodestyle": { + "description": "Options for the `pycodestyle` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/PycodestyleOptions" + }, + { + "type": "null" + } + ], + "deprecated": true + }, + "pydocstyle": { + "description": "Options for the `pydocstyle` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/PydocstyleOptions" + }, + { + "type": "null" + } + ], + "deprecated": true + }, + "pyflakes": { + "description": "Options for the `pyflakes` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/PyflakesOptions" + }, + { + "type": "null" + } + ], + "deprecated": true + }, + "pylint": { + "description": "Options for the `pylint` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/PylintOptions" + }, + { + "type": "null" + } + ], + "deprecated": true + }, + "pyupgrade": { + "description": "Options for the `pyupgrade` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/PyUpgradeOptions" + }, + { + "type": "null" + } + ], + "deprecated": true + }, + "required-version": { + "description": "Enforce a requirement on the version of Ruff, to enforce at runtime.\nIf the version of Ruff does not meet the requirement, Ruff will exit\nwith an error.\n\nUseful for unifying results across many environments, e.g., with a\n`pyproject.toml` file.\n\nAccepts a [PEP 440](https://peps.python.org/pep-0440/) specifier, like `==0.3.1` or `>=0.3.1`.", + "anyOf": [ + { + "$ref": "#/definitions/RequiredVersion" + }, + { + "type": "null" + } + ] + }, + "respect-gitignore": { + "description": "Whether to automatically exclude files that are ignored by `.ignore`,\n`.gitignore`, `.git/info/exclude`, and global `gitignore` files.\nEnabled by default.", + "type": ["boolean", "null"] + }, + "select": { + "description": "A list of rule codes or prefixes to enable. Prefixes can specify exact\nrules (like `F841`), entire categories (like `F`), or anything in\nbetween.\n\nWhen breaking ties between enabled and disabled rules (via `select` and\n`ignore`, respectively), more specific prefixes override less\nspecific prefixes. `ignore` takes precedence over `select` if the\nsame prefix appears in both.", + "type": ["array", "null"], + "deprecated": true, + "items": { + "$ref": "#/definitions/RuleSelector" + } + }, + "show-fixes": { + "description": "Whether to show an enumeration of all fixed lint violations\n(overridden by the `--show-fixes` command-line flag).", + "type": ["boolean", "null"] + }, + "src": { + "description": "The directories to consider when resolving first- vs. third-party\nimports.\n\nWhen omitted, the `src` directory will typically default to including both:\n\n1. The directory containing the nearest `pyproject.toml`, `ruff.toml`, or `.ruff.toml` file (the \"project root\").\n2. The `\"src\"` subdirectory of the project root.\n\nThese defaults ensure that Ruff supports both flat layouts and `src` layouts out-of-the-box.\n(If a configuration file is explicitly provided (e.g., via the `--config` command-line\nflag), the current working directory will be considered the project root.)\n\nAs an example, consider an alternative project structure, like:\n\n```text\nmy_project\n├── pyproject.toml\n└── lib\n └── my_package\n ├── __init__.py\n ├── foo.py\n └── bar.py\n```\n\nIn this case, the `./lib` directory should be included in the `src` option\n(e.g., `src = [\"lib\"]`), such that when resolving imports, `my_package.foo`\nis considered first-party.\n\nThis field supports globs. For example, if you have a series of Python\npackages in a `python_modules` directory, `src = [\"python_modules/*\"]`\nwould expand to incorporate all packages in that directory. User home\ndirectory and environment variables will also be expanded.", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "target-version": { + "description": "The minimum Python version to target, e.g., when considering automatic\ncode upgrades, like rewriting type annotations. Ruff will not propose\nchanges using features that are not available in the given version.\n\nFor example, to represent supporting Python >=3.11 or ==3.11\nspecify `target-version = \"py311\"`.\n\nIf you're already using a `pyproject.toml` file, we recommend\n`project.requires-python` instead, as it's based on Python packaging\nstandards, and will be respected by other tools. For example, Ruff\ntreats the following as identical to `target-version = \"py38\"`:\n\n```toml\n[project]\nrequires-python = \">=3.8\"\n```\n\nIf both are specified, `target-version` takes precedence over\n`requires-python`. See [_Inferring the Python version_](https://docs.astral.sh/ruff/configuration/#inferring-the-python-version)\nfor a complete description of how the `target-version` is determined\nwhen left unspecified.\n\nNote that a stub file can [sometimes make use of a typing feature](https://typing.python.org/en/latest/spec/distributing.html#syntax)\nbefore it is available at runtime, as long as the stub does not make\nuse of new *syntax*. For example, a type checker will understand\n`int | str` in a stub as being a `Union` type annotation, even if the\ntype checker is run using Python 3.9, despite the fact that the `|`\noperator can only be used to create union types at runtime on Python\n3.10+. As such, Ruff will often recommend newer features in a stub\nfile than it would for an equivalent runtime file with the same target\nversion.", + "anyOf": [ + { + "$ref": "#/definitions/PythonVersion" + }, + { + "type": "null" + } + ] + }, + "task-tags": { + "description": "A list of task tags to recognize (e.g., \"TODO\", \"FIXME\", \"XXX\").\n\nComments starting with these tags will be ignored by commented-out code\ndetection (`ERA`), and skipped by line-length rules (`E501`) if\n[`ignore-overlong-task-comments`](#lint_pycodestyle_ignore-overlong-task-comments) is set to `true`.", + "type": ["array", "null"], + "deprecated": true, + "items": { + "type": "string" + } + }, + "typing-modules": { + "description": "A list of modules whose exports should be treated equivalently to\nmembers of the `typing` module.\n\nThis is useful for ensuring proper type annotation inference for\nprojects that re-export `typing` and `typing_extensions` members\nfrom a compatibility module. If omitted, any members imported from\nmodules apart from `typing` and `typing_extensions` will be treated\nas ordinary Python objects.", + "type": ["array", "null"], + "deprecated": true, + "items": { + "type": "string" + } + }, + "unfixable": { + "description": "A list of rule codes or prefixes to consider non-fixable.", + "type": ["array", "null"], + "deprecated": true, + "items": { + "$ref": "#/definitions/RuleSelector" + } + }, + "unsafe-fixes": { + "description": "Enable application of unsafe fixes.\nIf excluded, a hint will be displayed when unsafe fixes are available.\nIf set to false, the hint will be hidden.", + "type": ["boolean", "null"] + } + }, + "additionalProperties": false, + "definitions": { + "Alias": { + "type": "string" + }, + "AllImports": { + "type": "string", + "enum": ["all"] + }, + "AnalyzeOptions": { + "description": "Configures Ruff's `analyze` command.", + "type": "object", + "properties": { + "detect-string-imports": { + "description": "Whether to detect imports from string literals. When enabled, Ruff will search for string\nliterals that \"look like\" import paths, and include them in the import map, if they resolve\nto valid Python modules.", + "type": ["boolean", "null"] + }, + "direction": { + "description": "Whether to generate a map from file to files that it depends on (dependencies) or files that\ndepend on it (dependents).", + "anyOf": [ + { + "$ref": "#/definitions/Direction" + }, + { + "type": "null" + } + ] + }, + "exclude": { + "description": "A list of file patterns to exclude from analysis in addition to the files excluded globally (see [`exclude`](#exclude), and [`extend-exclude`](#extend-exclude)).\n\nExclusions are based on globs, and can be either:\n\n- Single-path patterns, like `.mypy_cache` (to exclude any directory\n named `.mypy_cache` in the tree), `foo.py` (to exclude any file named\n `foo.py`), or `foo_*.py` (to exclude any file matching `foo_*.py` ).\n- Relative patterns, like `directory/foo.py` (to exclude that specific\n file) or `directory/*.py` (to exclude any Python files in\n `directory`). Note that these paths are relative to the project root\n (e.g., the directory containing your `pyproject.toml`).\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "include-dependencies": { + "description": "A map from file path to the list of Python or non-Python file paths or globs that should be\nconsidered dependencies of that file, regardless of whether relevant imports are detected.", + "type": ["object", "null"], + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "preview": { + "description": "Whether to enable preview mode. When preview mode is enabled, Ruff will expose unstable\ncommands.", + "type": ["boolean", "null"] + }, + "string-imports-min-dots": { + "description": "The minimum number of dots in a string to consider it a valid import.\n\nThis setting is only relevant when [`detect-string-imports`](#detect-string-imports) is enabled.\nFor example, if this is set to `2`, then only strings with at least two dots (e.g., `\"path.to.module\"`)\nwould be considered valid imports.", + "type": ["integer", "null"], + "format": "uint", + "minimum": 0 + }, + "type-checking-imports": { + "description": "Whether to include imports that are only used for type checking (i.e., imports within `if TYPE_CHECKING:` blocks).\nWhen enabled (default), type-checking-only imports are included in the import graph.\nWhen disabled, they are excluded.", + "type": ["boolean", "null"] + } + }, + "additionalProperties": false + }, + "ApiBan": { + "type": "object", + "properties": { + "msg": { + "description": "The message to display when the API is used.", + "type": "string" + } + }, + "additionalProperties": false, + "required": ["msg"] + }, + "BannedAliases": { + "type": "array", + "items": { + "type": "string" + } + }, + "ConstantType": { + "type": "string", + "enum": ["bytes", "complex", "float", "int", "str"] + }, + "Convention": { + "oneOf": [ + { + "description": "Use Google-style docstrings.", + "type": "string", + "const": "google" + }, + { + "description": "Use NumPy-style docstrings.", + "type": "string", + "const": "numpy" + }, + { + "description": "Use PEP257-style docstrings.", + "type": "string", + "const": "pep257" + } + ] + }, + "Direction": { + "oneOf": [ + { + "description": "Construct a map from module to its dependencies (i.e., the modules that it imports).", + "type": "string", + "const": "dependencies" + }, + { + "description": "Construct a map from module to its dependents (i.e., the modules that import it).", + "type": "string", + "const": "dependents" + } + ] + }, + "DocstringCodeLineWidth": { + "anyOf": [ + { + "description": "Wrap docstring code examples at a fixed line width.", + "oneOf": [ + { + "$ref": "#/definitions/LineWidth" + } + ] + }, + { + "description": "Respect the line length limit setting for the surrounding Python code.", + "const": "dynamic" + } + ] + }, + "Flake8AnnotationsOptions": { + "description": "Options for the `flake8-annotations` plugin.", + "type": "object", + "properties": { + "allow-star-arg-any": { + "description": "Whether to suppress `ANN401` for dynamically typed `*args` and\n`**kwargs` arguments.", + "type": ["boolean", "null"] + }, + "ignore-fully-untyped": { + "description": "Whether to suppress `ANN*` rules for any declaration\nthat hasn't been typed at all.\nThis makes it easier to gradually add types to a codebase.", + "type": ["boolean", "null"] + }, + "mypy-init-return": { + "description": "Whether to allow the omission of a return type hint for `__init__` if at\nleast one argument is annotated.", + "type": ["boolean", "null"] + }, + "suppress-dummy-args": { + "description": "Whether to suppress `ANN000`-level violations for arguments matching the\n\"dummy\" variable regex (like `_`).", + "type": ["boolean", "null"] + }, + "suppress-none-returning": { + "description": "Whether to suppress `ANN200`-level violations for functions that meet\neither of the following criteria:\n\n- Contain no `return` statement.\n- Explicit `return` statement(s) all return `None` (explicitly or\n implicitly).", + "type": ["boolean", "null"] + } + }, + "additionalProperties": false + }, + "Flake8BanditOptions": { + "description": "Options for the `flake8-bandit` plugin.", + "type": "object", + "properties": { + "allowed-markup-calls": { + "description": "A list of callable names, whose result may be safely passed into\n[`markupsafe.Markup`](https://markupsafe.palletsprojects.com/en/stable/escaping/#markupsafe.Markup).\n\nExpects to receive a list of fully-qualified names (e.g., `bleach.clean`, rather than `clean`).\n\nThis setting helps you avoid false positives in code like:\n\n```python\nfrom bleach import clean\nfrom markupsafe import Markup\n\ncleaned_markup = Markup(clean(some_user_input))\n```\n\nWhere the use of [`bleach.clean`](https://bleach.readthedocs.io/en/latest/clean.html)\nusually ensures that there's no XSS vulnerability.\n\nAlthough it is not recommended, you may also use this setting to whitelist other\nkinds of calls, e.g. calls to i18n translation functions, where how safe that is\nwill depend on the implementation and how well the translations are audited.\n\nAnother common use-case is to wrap the output of functions that generate markup\nlike [`xml.etree.ElementTree.tostring`](https://docs.python.org/3/library/xml.etree.elementtree.html#xml.etree.ElementTree.tostring)\nor template rendering engines where sanitization of potential user input is either\nalready baked in or has to happen before rendering.", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "check-typed-exception": { + "description": "Whether to disallow `try`-`except`-`pass` (`S110`) for specific\nexception types. By default, `try`-`except`-`pass` is only\ndisallowed for `Exception` and `BaseException`.", + "type": ["boolean", "null"] + }, + "extend-markup-names": { + "description": "A list of additional callable names that behave like\n[`markupsafe.Markup`](https://markupsafe.palletsprojects.com/en/stable/escaping/#markupsafe.Markup).\n\nExpects to receive a list of fully-qualified names (e.g., `webhelpers.html.literal`, rather than\n`literal`).", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "hardcoded-tmp-directory": { + "description": "A list of directories to consider temporary (see `S108`).", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "hardcoded-tmp-directory-extend": { + "description": "A list of directories to consider temporary, in addition to those\nspecified by [`hardcoded-tmp-directory`](#lint_flake8-bandit_hardcoded-tmp-directory) (see `S108`).", + "type": ["array", "null"], + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "Flake8BooleanTrapOptions": { + "description": "Options for the `flake8-boolean-trap` plugin", + "type": "object", + "properties": { + "extend-allowed-calls": { + "description": "Additional callable functions with which to allow boolean traps.\n\nExpects to receive a list of fully-qualified names (e.g., `pydantic.Field`, rather than\n`Field`).", + "type": ["array", "null"], + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "Flake8BugbearOptions": { + "description": "Options for the `flake8-bugbear` plugin.", + "type": "object", + "properties": { + "extend-immutable-calls": { + "description": "Additional callable functions to consider \"immutable\" when evaluating, e.g., the\n`function-call-in-default-argument` rule (`B008`) or `function-call-in-dataclass-defaults`\nrule (`RUF009`).\n\nExpects to receive a list of fully-qualified names (e.g., `fastapi.Query`, rather than\n`Query`).", + "type": ["array", "null"], + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "Flake8BuiltinsOptions": { + "description": "Options for the `flake8-builtins` plugin.", + "type": "object", + "properties": { + "allowed-modules": { + "description": "List of builtin module names to allow.", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "builtins-allowed-modules": { + "description": "DEPRECATED: This option has been renamed to `allowed-modules`. Use `allowed-modules` instead.\n\nList of builtin module names to allow.\n\nThis option is ignored if both `allowed-modules` and `builtins-allowed-modules` are set.", + "type": ["array", "null"], + "deprecated": true, + "items": { + "type": "string" + } + }, + "builtins-ignorelist": { + "description": "DEPRECATED: This option has been renamed to `ignorelist`. Use `ignorelist` instead.\n\nIgnore list of builtins.\n\nThis option is ignored if both `ignorelist` and `builtins-ignorelist` are set.", + "type": ["array", "null"], + "deprecated": true, + "items": { + "type": "string" + } + }, + "builtins-strict-checking": { + "description": "DEPRECATED: This option has been renamed to `strict-checking`. Use `strict-checking` instead.\n\nCompare module names instead of full module paths.\n\nThis option is ignored if both `strict-checking` and `builtins-strict-checking` are set.", + "type": ["boolean", "null"], + "deprecated": true + }, + "ignorelist": { + "description": "Ignore list of builtins.", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "strict-checking": { + "description": "Compare module names instead of full module paths.\n\nUsed by [`A005` - `stdlib-module-shadowing`](https://docs.astral.sh/ruff/rules/stdlib-module-shadowing/).", + "type": ["boolean", "null"] + } + }, + "additionalProperties": false + }, + "Flake8ComprehensionsOptions": { + "description": "Options for the `flake8-comprehensions` plugin.", + "type": "object", + "properties": { + "allow-dict-calls-with-keyword-arguments": { + "description": "Allow `dict` calls that make use of keyword arguments (e.g., `dict(a=1, b=2)`).", + "type": ["boolean", "null"] + } + }, + "additionalProperties": false + }, + "Flake8CopyrightOptions": { + "description": "Options for the `flake8-copyright` plugin.", + "type": "object", + "properties": { + "author": { + "description": "Author to enforce within the copyright notice. If provided, the\nauthor must be present immediately following the copyright notice.", + "type": ["string", "null"] + }, + "min-file-size": { + "description": "A minimum file size (in bytes) required for a copyright notice to\nbe enforced. By default, all files are validated.", + "type": ["integer", "null"], + "format": "uint", + "minimum": 0 + }, + "notice-rgx": { + "description": "The regular expression used to match the copyright notice, compiled\nwith the [`regex`](https://docs.rs/regex/latest/regex/) crate.\nDefaults to `(?i)Copyright\\s+((?:\\(C\\)|©)\\s+)?\\d{4}((-|,\\s)\\d{4})*`, which matches\nthe following:\n\n- `Copyright 2023`\n- `Copyright (C) 2023`\n- `Copyright 2021-2023`\n- `Copyright (C) 2021-2023`\n- `Copyright (C) 2021, 2023`", + "type": ["string", "null"] + } + }, + "additionalProperties": false + }, + "Flake8ErrMsgOptions": { + "description": "Options for the `flake8-errmsg` plugin.", + "type": "object", + "properties": { + "max-string-length": { + "description": "Maximum string length for string literals in exception messages.", + "type": ["integer", "null"], + "format": "uint", + "minimum": 0 + } + }, + "additionalProperties": false + }, + "Flake8GetTextOptions": { + "description": "Options for the `flake8-gettext` plugin.", + "type": "object", + "properties": { + "extend-function-names": { + "description": "Additional function names to consider as internationalization calls, in addition to those\nincluded in [`function-names`](#lint_flake8-gettext_function-names).", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "function-names": { + "description": "The function names to consider as internationalization calls.", + "type": ["array", "null"], + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "Flake8ImplicitStrConcatOptions": { + "description": "Options for the `flake8-implicit-str-concat` plugin", + "type": "object", + "properties": { + "allow-multiline": { + "description": "Whether to allow implicit string concatenations for multiline strings.\nBy default, implicit concatenations of multiline strings are\nallowed (but continuation lines, delimited with a backslash, are\nprohibited).\n\nSetting `allow-multiline = false` will automatically disable the\n`explicit-string-concatenation` (`ISC003`) rule. Otherwise, both\nimplicit and explicit multiline string concatenations would be seen\nas violations, making it impossible to write a linter-compliant multiline\nstring.", + "type": ["boolean", "null"] + } + }, + "additionalProperties": false + }, + "Flake8ImportConventionsOptions": { + "description": "Options for the `flake8-import-conventions` plugin", + "type": "object", + "properties": { + "aliases": { + "description": "The conventional aliases for imports. These aliases can be extended by\nthe [`extend-aliases`](#lint_flake8-import-conventions_extend-aliases) option.", + "type": ["object", "null"], + "additionalProperties": { + "$ref": "#/definitions/Alias" + } + }, + "banned-aliases": { + "description": "A mapping from module to its banned import aliases.", + "type": ["object", "null"], + "additionalProperties": { + "$ref": "#/definitions/BannedAliases" + } + }, + "banned-from": { + "description": "A list of modules that should not be imported from using the\n`from ... import ...` syntax.\n\nFor example, given `banned-from = [\"pandas\"]`, `from pandas import DataFrame`\nwould be disallowed, while `import pandas` would be allowed.", + "type": ["array", "null"], + "items": { + "type": "string" + }, + "uniqueItems": true + }, + "extend-aliases": { + "description": "A mapping from module to conventional import alias. These aliases will\nbe added to the [`aliases`](#lint_flake8-import-conventions_aliases) mapping.", + "type": ["object", "null"], + "additionalProperties": { + "$ref": "#/definitions/Alias" + } + } + }, + "additionalProperties": false + }, + "Flake8PytestStyleOptions": { + "description": "Options for the `flake8-pytest-style` plugin", + "type": "object", + "properties": { + "fixture-parentheses": { + "description": "Boolean flag specifying whether `@pytest.fixture()` without parameters\nshould have parentheses. If the option is set to `false` (the default),\n`@pytest.fixture` is valid and `@pytest.fixture()` is invalid. If set\nto `true`, `@pytest.fixture()` is valid and `@pytest.fixture` is\ninvalid.", + "type": ["boolean", "null"] + }, + "mark-parentheses": { + "description": "Boolean flag specifying whether `@pytest.mark.foo()` without parameters\nshould have parentheses. If the option is set to `false` (the\ndefault), `@pytest.mark.foo` is valid and `@pytest.mark.foo()` is\ninvalid. If set to `true`, `@pytest.mark.foo()` is valid and\n`@pytest.mark.foo` is invalid.", + "type": ["boolean", "null"] + }, + "parametrize-names-type": { + "description": "Expected type for multiple argument names in `@pytest.mark.parametrize`.\nThe following values are supported:\n\n- `csv` — a comma-separated list, e.g.\n `@pytest.mark.parametrize(\"name1,name2\", ...)`\n- `tuple` (default) — e.g.\n `@pytest.mark.parametrize((\"name1\", \"name2\"), ...)`\n- `list` — e.g. `@pytest.mark.parametrize([\"name1\", \"name2\"], ...)`", + "anyOf": [ + { + "$ref": "#/definitions/ParametrizeNameType" + }, + { + "type": "null" + } + ] + }, + "parametrize-values-row-type": { + "description": "Expected type for each row of values in `@pytest.mark.parametrize` in\ncase of multiple parameters. The following values are supported:\n\n- `tuple` (default) — e.g.\n `@pytest.mark.parametrize((\"name1\", \"name2\"), [(1, 2), (3, 4)])`\n- `list` — e.g.\n `@pytest.mark.parametrize((\"name1\", \"name2\"), [[1, 2], [3, 4]])`", + "anyOf": [ + { + "$ref": "#/definitions/ParametrizeValuesRowType" + }, + { + "type": "null" + } + ] + }, + "parametrize-values-type": { + "description": "Expected type for the list of values rows in `@pytest.mark.parametrize`.\nThe following values are supported:\n\n- `tuple` — e.g. `@pytest.mark.parametrize(\"name\", (1, 2, 3))`\n- `list` (default) — e.g. `@pytest.mark.parametrize(\"name\", [1, 2, 3])`", + "anyOf": [ + { + "$ref": "#/definitions/ParametrizeValuesType" + }, + { + "type": "null" + } + ] + }, + "raises-extend-require-match-for": { + "description": "List of additional exception names that require a match= parameter in a\n`pytest.raises()` call. This extends the default list of exceptions\nthat require a match= parameter.\nThis option is useful if you want to extend the default list of\nexceptions that require a match= parameter without having to specify\nthe entire list.\nNote that this option does not remove any exceptions from the default\nlist.\n\nSupports glob patterns. For more information on the glob syntax, refer\nto the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "raises-require-match-for": { + "description": "List of exception names that require a match= parameter in a\n`pytest.raises()` call.\n\nSupports glob patterns. For more information on the glob syntax, refer\nto the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "warns-extend-require-match-for": { + "description": "List of additional warning names that require a match= parameter in a\n`pytest.warns()` call. This extends the default list of warnings that\nrequire a match= parameter.\n\nThis option is useful if you want to extend the default list of warnings\nthat require a match= parameter without having to specify the entire\nlist.\n\nNote that this option does not remove any warnings from the default\nlist.\n\nSupports glob patterns. For more information on the glob syntax, refer\nto the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "warns-require-match-for": { + "description": "List of warning names that require a match= parameter in a\n`pytest.warns()` call.\n\nSupports glob patterns. For more information on the glob syntax, refer\nto the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).", + "type": ["array", "null"], + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "Flake8QuotesOptions": { + "description": "Options for the `flake8-quotes` plugin.", + "type": "object", + "properties": { + "avoid-escape": { + "description": "Whether to avoid using single quotes if a string contains single quotes,\nor vice-versa with double quotes, as per [PEP 8](https://peps.python.org/pep-0008/#string-quotes).\nThis minimizes the need to escape quotation marks within strings.", + "type": ["boolean", "null"] + }, + "docstring-quotes": { + "description": "Quote style to prefer for docstrings (either \"single\" or \"double\").\n\nWhen using the formatter, only \"double\" is compatible, as the formatter\nenforces double quotes for docstrings strings.", + "anyOf": [ + { + "$ref": "#/definitions/Quote" + }, + { + "type": "null" + } + ] + }, + "inline-quotes": { + "description": "Quote style to prefer for inline strings (either \"single\" or\n\"double\").\n\nWhen using the formatter, ensure that [`format.quote-style`](#format_quote-style) is set to\nthe same preferred quote style.", + "anyOf": [ + { + "$ref": "#/definitions/Quote" + }, + { + "type": "null" + } + ] + }, + "multiline-quotes": { + "description": "Quote style to prefer for multiline strings (either \"single\" or\n\"double\").\n\nWhen using the formatter, only \"double\" is compatible, as the formatter\nenforces double quotes for multiline strings.", + "anyOf": [ + { + "$ref": "#/definitions/Quote" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false + }, + "Flake8SelfOptions": { + "description": "Options for the `flake8_self` plugin.", + "type": "object", + "properties": { + "extend-ignore-names": { + "description": "Additional names to ignore when considering `flake8-self` violations,\nin addition to those included in [`ignore-names`](#lint_flake8-self_ignore-names).", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "ignore-names": { + "description": "A list of names to ignore when considering `flake8-self` violations.", + "type": ["array", "null"], + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "Flake8TidyImportsOptions": { + "description": "Options for the `flake8-tidy-imports` plugin", + "type": "object", + "properties": { + "ban-lazy": { + "description": "Specific modules that may not be imported lazily, or `\"all\"` to forbid lazy imports except\nfor any modules excluded from the selector. This rule is only enforced when targeting\nPython 3.15 or newer.", + "anyOf": [ + { + "$ref": "#/definitions/ImportSelector" + }, + { + "type": "null" + } + ] + }, + "ban-relative-imports": { + "description": "Whether to ban all relative imports (`\"all\"`), or only those imports\nthat extend into the parent module or beyond (`\"parents\"`).", + "anyOf": [ + { + "$ref": "#/definitions/Strictness" + }, + { + "type": "null" + } + ] + }, + "banned-api": { + "description": "Specific modules or module members that may not be imported or accessed.\nNote that this rule is only meant to flag accidental uses,\nand can be circumvented via `eval` or `importlib`.", + "type": ["object", "null"], + "additionalProperties": { + "$ref": "#/definitions/ApiBan" + } + }, + "banned-module-level-imports": { + "description": "List of specific modules that may not be imported at module level, and should instead be\nimported lazily (e.g., within a function definition, or an `if TYPE_CHECKING:`\nblock, or some other nested context). This also affects the rule `import-outside-top-level`\nif `banned-module-level-imports` is enabled.", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "require-lazy": { + "description": "Specific modules that must be imported lazily in contexts where `lazy import` is legal, or\n`\"all\"` to require every lazily-convertible import to use the `lazy` keyword. Ruff ignores\ncontexts where `lazy import` is invalid, such as functions, classes, `try`/`except`\nblocks, `__future__` imports, and `from ... import *` statements. This rule is only\nenforced when targeting Python 3.15 or newer.", + "anyOf": [ + { + "$ref": "#/definitions/ImportSelector" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false + }, + "Flake8TypeCheckingOptions": { + "description": "Options for the `flake8-type-checking` plugin", + "type": "object", + "properties": { + "exempt-modules": { + "description": "Exempt certain modules from needing to be moved into type-checking\nblocks.", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "quote-annotations": { + "description": "Whether to add quotes around type annotations, if doing so would allow\nthe corresponding import to be moved into a type-checking block.\n\nFor example, in the following, Python requires that `Sequence` be\navailable at runtime, despite the fact that it's only used in a type\nannotation:\n\n```python\nfrom collections.abc import Sequence\n\n\ndef func(value: Sequence[int]) -> None:\n ...\n```\n\nIn other words, moving `from collections.abc import Sequence` into an\n`if TYPE_CHECKING:` block above would cause a runtime error, as the\ntype would no longer be available at runtime.\n\nBy default, Ruff will respect such runtime semantics and avoid moving\nthe import to prevent such runtime errors.\n\nSetting `quote-annotations` to `true` will instruct Ruff to add quotes\naround the annotation (e.g., `\"Sequence[int]\"`), which in turn enables\nRuff to move the import into an `if TYPE_CHECKING:` block, like so:\n\n```python\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from collections.abc import Sequence\n\n\ndef func(value: \"Sequence[int]\") -> None:\n ...\n```\n\nNote that this setting has no effect when `from __future__ import annotations`\nis present, as `__future__` annotations are always treated equivalently\nto quoted annotations. Similarly, this setting has no effect on Python\nversions after 3.14 because these annotations are also deferred.", + "type": ["boolean", "null"] + }, + "runtime-evaluated-base-classes": { + "description": "Exempt classes that list any of the enumerated classes as a base class\nfrom needing to be moved into type-checking blocks.\n\nCommon examples include Pydantic's `pydantic.BaseModel` and SQLAlchemy's\n`sqlalchemy.orm.DeclarativeBase`, but can also support user-defined\nclasses that inherit from those base classes. For example, if you define\na common `DeclarativeBase` subclass that's used throughout your project\n(e.g., `class Base(DeclarativeBase) ...` in `base.py`), you can add it to\nthis list (`runtime-evaluated-base-classes = [\"base.Base\"]`) to exempt\nmodels from being moved into type-checking blocks.", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "runtime-evaluated-decorators": { + "description": "Exempt classes and functions decorated with any of the enumerated\ndecorators from being moved into type-checking blocks.\n\nCommon examples include Pydantic's `@pydantic.validate_call` decorator\n(for functions) and attrs' `@attrs.define` decorator (for classes).\n\nThis also supports framework decorators like FastAPI's `fastapi.FastAPI.get`\nwhich will work across assignments in the same module.\n\nFor example:\n```python\nfrom fastapi import FastAPI\n\napp = FastAPI(\"app\")\n\n@app.get(\"/home\")\ndef home() -> str: ...\n```\n\nHere `app.get` will correctly be identified as `fastapi.FastAPI.get`.", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "strict": { + "description": "Enforce `TC001`, `TC002`, and `TC003` rules even when valid runtime imports\nare present for the same module.\n\nSee flake8-type-checking's [strict](https://github.com/snok/flake8-type-checking#strict) option.", + "type": ["boolean", "null"] + } + }, + "additionalProperties": false + }, + "Flake8UnusedArgumentsOptions": { + "description": "Options for the `flake8-unused-arguments` plugin", + "type": "object", + "properties": { + "ignore-variadic-names": { + "description": "Whether to allow unused variadic arguments, like `*args` and `**kwargs`.", + "type": ["boolean", "null"] + } + }, + "additionalProperties": false + }, + "FormatOptions": { + "description": "Configures the way Ruff formats your code.", + "type": "object", + "properties": { + "docstring-code-format": { + "description": "Whether to format code snippets in docstrings.\n\nWhen this is enabled, Python code examples within docstrings are\nautomatically reformatted.\n\nFor example, when this is enabled, the following code:\n\n```python\ndef f(x):\n \"\"\"\n Something about `f`. And an example in doctest format:\n\n >>> f( x )\n\n Markdown is also supported:\n\n ```py\n f( x )\n ```\n\n As are reStructuredText literal blocks::\n\n f( x )\n\n\n And reStructuredText code blocks:\n\n .. code-block:: python\n\n f( x )\n \"\"\"\n pass\n```\n\n... will be reformatted (assuming the rest of the options are set to\ntheir defaults) as:\n\n```python\ndef f(x):\n \"\"\"\n Something about `f`. And an example in doctest format:\n\n >>> f(x)\n\n Markdown is also supported:\n\n ```py\n f(x)\n ```\n\n As are reStructuredText literal blocks::\n\n f(x)\n\n\n And reStructuredText code blocks:\n\n .. code-block:: python\n\n f(x)\n \"\"\"\n pass\n```\n\nIf a code snippet in a docstring contains invalid Python code or if the\nformatter would otherwise write invalid Python code, then the code\nexample is ignored by the formatter and kept as-is.\n\nCurrently, doctest, Markdown, reStructuredText literal blocks, and\nreStructuredText code blocks are all supported and automatically\nrecognized. In the case of unlabeled fenced code blocks in Markdown and\nreStructuredText literal blocks, the contents are assumed to be Python\nand reformatted. As with any other format, if the contents aren't valid\nPython, then the block is left untouched automatically.", + "type": ["boolean", "null"] + }, + "docstring-code-line-length": { + "description": "Set the line length used when formatting code snippets in docstrings.\n\nThis only has an effect when the `docstring-code-format` setting is\nenabled.\n\nThe default value for this setting is `\"dynamic\"`, which has the effect\nof ensuring that any reformatted code examples in docstrings adhere to\nthe global line length configuration that is used for the surrounding\nPython code. The point of this setting is that it takes the indentation\nof the docstring into account when reformatting code examples.\n\nAlternatively, this can be set to a fixed integer, which will result\nin the same line length limit being applied to all reformatted code\nexamples in docstrings. When set to a fixed integer, the indent of the\ndocstring is not taken into account. That is, this may result in lines\nin the reformatted code example that exceed the globally configured\nline length limit.\n\nFor example, when this is set to `20` and [`docstring-code-format`](#docstring-code-format)\nis enabled, then this code:\n\n```python\ndef f(x):\n '''\n Something about `f`. And an example:\n\n .. code-block:: python\n\n foo, bar, quux = this_is_a_long_line(lion, hippo, lemur, bear)\n '''\n pass\n```\n\n... will be reformatted (assuming the rest of the options are set\nto their defaults) as:\n\n```python\ndef f(x):\n \"\"\"\n Something about `f`. And an example:\n\n .. code-block:: python\n\n (\n foo,\n bar,\n quux,\n ) = this_is_a_long_line(\n lion,\n hippo,\n lemur,\n bear,\n )\n \"\"\"\n pass\n```", + "anyOf": [ + { + "$ref": "#/definitions/DocstringCodeLineWidth" + }, + { + "type": "null" + } + ] + }, + "exclude": { + "description": "A list of file patterns to exclude from formatting in addition to the files excluded globally (see [`exclude`](#exclude), and [`extend-exclude`](#extend-exclude)).\n\nExclusions are based on globs, and can be either:\n\n- Single-path patterns, like `.mypy_cache` (to exclude any directory\n named `.mypy_cache` in the tree), `foo.py` (to exclude any file named\n `foo.py`), or `foo_*.py` (to exclude any file matching `foo_*.py` ).\n- Relative patterns, like `directory/foo.py` (to exclude that specific\n file) or `directory/*.py` (to exclude any Python files in\n `directory`). Note that these paths are relative to the project root\n (e.g., the directory containing your `pyproject.toml`).\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "indent-style": { + "description": "Whether to use spaces or tabs for indentation.\n\n`indent-style = \"space\"` (default):\n\n```python\ndef f():\n print(\"Hello\") # Spaces indent the `print` statement.\n```\n\n`indent-style = \"tab\"`:\n\n```python\ndef f():\n print(\"Hello\") # A tab `\\t` indents the `print` statement.\n```\n\nPEP 8 recommends using spaces for [indentation](https://peps.python.org/pep-0008/#indentation).\nWe care about accessibility; if you do not need tabs for accessibility, we do not recommend you use them.\n\nSee [`indent-width`](#indent-width) to configure the number of spaces per indentation and the tab width.", + "anyOf": [ + { + "$ref": "#/definitions/IndentStyle" + }, + { + "type": "null" + } + ] + }, + "line-ending": { + "description": "The character Ruff uses at the end of a line.\n\n* `auto`: The newline style is detected automatically on a file per file basis. Files with mixed line endings will be converted to the first detected line ending. Defaults to `\\n` for files that contain no line endings.\n* `lf`: Line endings will be converted to `\\n`. The default line ending on Unix.\n* `cr-lf`: Line endings will be converted to `\\r\\n`. The default line ending on Windows.\n* `native`: Line endings will be converted to `\\n` on Unix and `\\r\\n` on Windows.", + "anyOf": [ + { + "$ref": "#/definitions/LineEnding" + }, + { + "type": "null" + } + ] + }, + "nested-string-quote-style": { + "description": "Controls the quote style for nested strings inside interpolated string expressions.\n\n- `alternating` (default): Use alternating quotes.\n- `preferred`: Use the configured [`quote-style`](#format_quote-style).\n\n```python\nf\"{data['key']}\" # alternating (default)\nf\"{data[\"key\"]}\" # preferred\n```\n\nNote: This setting has no effect when targeting Python versions below 3.12.", + "anyOf": [ + { + "$ref": "#/definitions/NestedStringQuoteStyle" + }, + { + "type": "null" + } + ] + }, + "preview": { + "description": "Whether to enable the unstable preview style formatting.", + "type": ["boolean", "null"] + }, + "quote-style": { + "description": "Configures the preferred quote character for strings. The recommended options are\n\n* `double` (default): Use double quotes `\"`\n* `single`: Use single quotes `'`\n\nIn compliance with [PEP 8](https://peps.python.org/pep-0008/) and [PEP 257](https://peps.python.org/pep-0257/),\nRuff prefers double quotes for triple quoted strings and docstrings even when using `quote-style = \"single\"`.\n\nRuff deviates from using the configured quotes if doing so prevents the need for\nescaping quote characters inside the string:\n\n```python\na = \"a string without any quotes\"\nb = \"It's monday morning\"\n```\n\nRuff will change the quotes of the string assigned to `a` to single quotes when using `quote-style = \"single\"`.\nHowever, Ruff uses double quotes for the string assigned to `b` because using single quotes would require escaping the `'`,\nwhich leads to the less readable code: `'It\\'s monday morning'`.\n\nIn addition, Ruff supports the quote style `preserve` for projects that already use\na mixture of single and double quotes and can't migrate to the `double` or `single` style.\nThe quote style `preserve` leaves the quotes of all strings unchanged.", + "anyOf": [ + { + "$ref": "#/definitions/QuoteStyle" + }, + { + "type": "null" + } + ] + }, + "skip-magic-trailing-comma": { + "description": "Ruff uses existing trailing commas as an indication that short lines should be left separate.\nIf this option is set to `true`, the magic trailing comma is ignored.\n\nFor example, Ruff leaves the arguments separate even though\ncollapsing the arguments to a single line doesn't exceed the line length if `skip-magic-trailing-comma = false`:\n\n```python\n# The arguments remain on separate lines because of the trailing comma after `b`\ndef test(\n a,\n b,\n): pass\n```\n\nSetting `skip-magic-trailing-comma = true` changes the formatting to:\n\n```python\n# The arguments are collapsed to a single line because the trailing comma is ignored\ndef test(a, b):\n pass\n```", + "type": ["boolean", "null"] + } + }, + "additionalProperties": false + }, + "ImportSection": { + "anyOf": [ + { + "$ref": "#/definitions/ImportType" + }, + { + "type": "string" + } + ] + }, + "ImportSelection": { + "anyOf": [ + { + "$ref": "#/definitions/AllImports" + }, + { + "type": "array", + "items": { + "type": "string" + } + } + ] + }, + "ImportSelector": { + "anyOf": [ + { + "$ref": "#/definitions/ImportSelection" + }, + { + "$ref": "#/definitions/ImportSelectorSettings" + } + ] + }, + "ImportSelectorSettings": { + "type": "object", + "properties": { + "exclude": { + "type": "array", + "default": [], + "items": { + "type": "string" + } + }, + "include": { + "$ref": "#/definitions/ImportSelection" + } + }, + "additionalProperties": false, + "required": ["include"] + }, + "ImportType": { + "type": "string", + "enum": [ + "future", + "standard-library", + "third-party", + "first-party", + "local-folder" + ] + }, + "IndentStyle": { + "oneOf": [ + { + "description": "Use tabs to indent code.", + "type": "string", + "const": "tab" + }, + { + "description": "Use [`IndentWidth`] spaces to indent code.", + "type": "string", + "const": "space" + } + ] + }, + "IndentWidth": { + "description": "The size of a tab.", + "type": "integer", + "format": "uint8", + "maximum": 255, + "minimum": 1 + }, + "IsortOptions": { + "description": "Options for the `isort` plugin.", + "type": "object", + "properties": { + "case-sensitive": { + "description": "Sort imports taking into account case sensitivity.\n\nNote that the [`order-by-type`](#lint_isort_order-by-type) setting will\ntake precedence over this one when enabled.", + "type": ["boolean", "null"] + }, + "classes": { + "description": "An override list of tokens to always recognize as a Class for\n[`order-by-type`](#lint_isort_order-by-type) regardless of casing.", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "combine-as-imports": { + "description": "Combines as imports on the same line. See isort's [`combine-as-imports`](https://pycqa.github.io/isort/docs/configuration/options.html#combine-as-imports)\noption.", + "type": ["boolean", "null"] + }, + "constants": { + "description": "An override list of tokens to always recognize as a CONSTANT\nfor [`order-by-type`](#lint_isort_order-by-type) regardless of casing.", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "default-section": { + "description": "Define a default section for any imports that don't fit into the specified [`section-order`](#lint_isort_section-order).", + "anyOf": [ + { + "$ref": "#/definitions/ImportSection" + }, + { + "type": "null" + } + ] + }, + "detect-same-package": { + "description": "Whether to automatically mark imports from within the same package as first-party.\nFor example, when `detect-same-package = true`, then when analyzing files within the\n`foo` package, any imports from within the `foo` package will be considered first-party.\n\nThis heuristic is often unnecessary when `src` is configured to detect all first-party\nsources; however, if `src` is _not_ configured, this heuristic can be useful to detect\nfirst-party imports from _within_ (but not _across_) first-party packages.", + "type": ["boolean", "null"] + }, + "extra-standard-library": { + "description": "A list of modules to consider standard-library, in addition to those\nknown to Ruff in advance.\n\nSupports glob patterns. For more information on the glob syntax, refer\nto the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "force-single-line": { + "description": "Forces all from imports to appear on their own line.", + "type": ["boolean", "null"] + }, + "force-sort-within-sections": { + "description": "Don't sort straight-style imports (like `import sys`) before from-style\nimports (like `from itertools import groupby`). Instead, sort the\nimports by module, independent of import style.", + "type": ["boolean", "null"] + }, + "force-to-top": { + "description": "Force specific imports to the top of their appropriate section.", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "force-wrap-aliases": { + "description": "Force `import from` statements with multiple members and at least one\nalias (e.g., `import A as B`) to wrap such that every line contains\nexactly one member. For example, this formatting would be retained,\nrather than condensing to a single line:\n\n```python\nfrom .utils import (\n test_directory as test_directory,\n test_id as test_id\n)\n```\n\nNote that this setting is only effective when combined with\n`combine-as-imports = true`. When [`combine-as-imports`](#lint_isort_combine-as-imports) isn't\nenabled, every aliased `import from` will be given its own line, in\nwhich case, wrapping is not necessary.\n\nWhen using the formatter, ensure that [`format.skip-magic-trailing-comma`](#format_skip-magic-trailing-comma) is set to `false` (default)\nwhen enabling `force-wrap-aliases` to avoid that the formatter collapses members if they all fit on a single line.", + "type": ["boolean", "null"] + }, + "forced-separate": { + "description": "A list of modules to separate into auxiliary block(s) of imports,\nin the order specified.", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "from-first": { + "description": "Whether to place `import from` imports before straight imports when sorting.\n\nFor example, by default, imports will be sorted such that straight imports appear\nbefore `import from` imports, as in:\n```python\nimport os\nimport sys\nfrom typing import List\n```\n\nSetting `from-first = true` will instead sort such that `import from` imports appear\nbefore straight imports, as in:\n```python\nfrom typing import List\nimport os\nimport sys\n```", + "type": ["boolean", "null"] + }, + "import-heading": { + "description": "A mapping from import section names to their heading comments.\n\nWhen set, a comment with the specified text will be added above imports\nin the corresponding section. If a heading comment already exists, it\nwill be replaced.\n\nCompatible with isort's `import_heading_{section_name}` settings.", + "type": ["object", "null"], + "properties": { + "first-party": { + "type": "string" + }, + "future": { + "type": "string" + }, + "local-folder": { + "type": "string" + }, + "standard-library": { + "type": "string" + }, + "third-party": { + "type": "string" + } + }, + "additionalProperties": { + "type": "string" + } + }, + "known-first-party": { + "description": "A list of modules to consider first-party, regardless of whether they\ncan be identified as such via introspection of the local filesystem.\n\nSupports glob patterns. For more information on the glob syntax, refer\nto the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "known-local-folder": { + "description": "A list of modules to consider being a local folder.\nGenerally, this is reserved for relative imports (`from . import module`).\n\nSupports glob patterns. For more information on the glob syntax, refer\nto the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "known-third-party": { + "description": "A list of modules to consider third-party, regardless of whether they\ncan be identified as such via introspection of the local filesystem.\n\nSupports glob patterns. For more information on the glob syntax, refer\nto the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "length-sort": { + "description": "Sort imports by their string length, such that shorter imports appear\nbefore longer imports. For example, by default, imports will be sorted\nalphabetically, as in:\n```python\nimport collections\nimport os\n```\n\nSetting `length-sort = true` will instead sort such that shorter imports\nappear before longer imports, as in:\n```python\nimport os\nimport collections\n```", + "type": ["boolean", "null"] + }, + "length-sort-straight": { + "description": "Sort straight imports by their string length. Similar to [`length-sort`](#lint_isort_length-sort),\nbut applies only to straight imports and doesn't affect `from` imports.", + "type": ["boolean", "null"] + }, + "lines-after-imports": { + "description": "The number of blank lines to place after imports.\nUse `-1` for automatic determination.\n\nRuff uses at most one blank line after imports in typing stub files (files with `.pyi` extension) in accordance to\nthe typing style recommendations ([source](https://typing.python.org/en/latest/guides/writing_stubs.html#blank-lines)).\n\nWhen using the formatter, only the values `-1`, `1`, and `2` are compatible because\nit enforces at least one empty and at most two empty lines after imports.", + "type": ["integer", "null"], + "format": "int" + }, + "lines-between-types": { + "description": "The number of lines to place between \"direct\" and `import from` imports.\n\nWhen using the formatter, only the values `0` and `1` are compatible because\nit preserves up to one empty line after imports in nested blocks.", + "type": ["integer", "null"], + "format": "uint", + "minimum": 0 + }, + "no-lines-before": { + "description": "A list of sections that should _not_ be delineated from the previous\nsection via empty lines.", + "type": ["array", "null"], + "items": { + "$ref": "#/definitions/ImportSection" + } + }, + "no-sections": { + "description": "Put all imports into the same section bucket.\n\nFor example, rather than separating standard library and third-party imports, as in:\n```python\nimport os\nimport sys\n\nimport numpy\nimport pandas\n```\n\nSetting `no-sections = true` will instead group all imports into a single section:\n```python\nimport numpy\nimport os\nimport pandas\nimport sys\n```", + "type": ["boolean", "null"] + }, + "order-by-type": { + "description": "Order imports by type, which is determined by case, in addition to\nalphabetically.\n\nNote that this option takes precedence over the\n[`case-sensitive`](#lint_isort_case-sensitive) setting when enabled.", + "type": ["boolean", "null"] + }, + "relative-imports-order": { + "description": "Whether to place \"closer\" imports (fewer `.` characters, most local)\nbefore \"further\" imports (more `.` characters, least local), or vice\nversa.\n\nThe default (\"furthest-to-closest\") is equivalent to isort's\n[`reverse-relative`](https://pycqa.github.io/isort/docs/configuration/options.html#reverse-relative) default (`reverse-relative = false`); setting\nthis to \"closest-to-furthest\" is equivalent to isort's\n`reverse-relative = true`.", + "anyOf": [ + { + "$ref": "#/definitions/RelativeImportsOrder" + }, + { + "type": "null" + } + ] + }, + "required-imports": { + "description": "Add the specified import line to all files.", + "type": ["array", "null"], + "items": { + "$ref": "#/definitions/NameImports" + } + }, + "section-order": { + "description": "Override in which order the sections should be output. Can be used to move custom sections.", + "type": ["array", "null"], + "items": { + "$ref": "#/definitions/ImportSection" + } + }, + "sections": { + "description": "A list of mappings from section names to modules.\n\nBy default, imports are categorized according to their type (e.g., `future`, `third-party`,\nand so on). This setting allows you to group modules into custom sections, to augment or\noverride the built-in sections.\n\nFor example, to group all testing utilities, you could create a `testing` section:\n```toml\ntesting = [\"pytest\", \"hypothesis\"]\n```\n\nThe values in the list are treated as glob patterns. For example, to match all packages in\nthe LangChain ecosystem (`langchain-core`, `langchain-openai`, etc.):\n```toml\nlangchain = [\"langchain-*\"]\n```\n\nCustom sections should typically be inserted into the [`section-order`](#lint_isort_section-order) list to ensure that\nthey're displayed as a standalone group and in the intended order, as in:\n```toml\nsection-order = [\n \"future\",\n \"standard-library\",\n \"third-party\",\n \"first-party\",\n \"local-folder\",\n \"testing\"\n]\n```\n\nIf a custom section is omitted from [`section-order`](#lint_isort_section-order), imports in that section will be\nassigned to the [`default-section`](#lint_isort_default-section) (which defaults to `third-party`).", + "type": ["object", "null"], + "properties": { + "first-party": { + "type": "array", + "items": { + "type": "string" + } + }, + "future": { + "type": "array", + "items": { + "type": "string" + } + }, + "local-folder": { + "type": "array", + "items": { + "type": "string" + } + }, + "standard-library": { + "type": "array", + "items": { + "type": "string" + } + }, + "third-party": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "single-line-exclusions": { + "description": "One or more modules to exclude from the single line rule.", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "split-on-trailing-comma": { + "description": "If a comma is placed after the last member in a multi-line import, then\nthe imports will never be folded into one line.\n\nSee isort's [`split-on-trailing-comma`](https://pycqa.github.io/isort/docs/configuration/options.html#split-on-trailing-comma) option.\n\nWhen using the formatter, ensure that [`format.skip-magic-trailing-comma`](#format_skip-magic-trailing-comma) is set to `false` (default) when enabling `split-on-trailing-comma`\nto avoid that the formatter removes the trailing commas.", + "type": ["boolean", "null"] + }, + "variables": { + "description": "An override list of tokens to always recognize as a var\nfor [`order-by-type`](#lint_isort_order-by-type) regardless of casing.", + "type": ["array", "null"], + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "Language": { + "type": "string", + "enum": ["python", "pyi", "ipynb", "markdown"] + }, + "LineEnding": { + "oneOf": [ + { + "description": "The newline style is detected automatically on a file per file basis.\nFiles with mixed line endings will be converted to the first detected line ending.\nDefaults to [`LineEnding::Lf`] for a files that contain no line endings.", + "type": "string", + "const": "auto" + }, + { + "description": "Line endings will be converted to `\\n` as is common on Unix.", + "type": "string", + "const": "lf" + }, + { + "description": "Line endings will be converted to `\\r\\n` as is common on Windows.", + "type": "string", + "const": "cr-lf" + }, + { + "description": "Line endings will be converted to `\\n` on Unix and `\\r\\n` on Windows.", + "type": "string", + "const": "native" + } + ] + }, + "LineLength": { + "description": "The length of a line of text that is considered too long.\n\nThe allowed range of values is 1..=65535", + "type": "integer", + "format": "uint16", + "maximum": 65535, + "minimum": 1 + }, + "LineWidth": { + "description": "The maximum visual width to which the formatter should try to limit a line.", + "type": "integer", + "format": "uint16", + "maximum": 65535, + "minimum": 1 + }, + "LintOptions": { + "description": "Configures how Ruff checks your code.\n\nOptions specified in the `lint` section take precedence over the deprecated top-level settings.", + "type": "object", + "properties": { + "allowed-confusables": { + "description": "A list of allowed \"confusable\" Unicode characters to ignore when\nenforcing `RUF001`, `RUF002`, and `RUF003`.", + "type": ["array", "null"], + "items": { + "type": "string", + "maxLength": 1, + "minLength": 1 + } + }, + "dummy-variable-rgx": { + "description": "A regular expression used to identify \"dummy\" variables, or those which\nshould be ignored when enforcing (e.g.) unused-variable rules. The\ndefault expression matches `_`, `__`, and `_var`, but not `_var_`.", + "type": ["string", "null"] + }, + "exclude": { + "description": "A list of file patterns to exclude from linting in addition to the files excluded globally (see [`exclude`](#exclude), and [`extend-exclude`](#extend-exclude)).\n\nExclusions are based on globs, and can be either:\n\n- Single-path patterns, like `.mypy_cache` (to exclude any directory\n named `.mypy_cache` in the tree), `foo.py` (to exclude any file named\n `foo.py`), or `foo_*.py` (to exclude any file matching `foo_*.py` ).\n- Relative patterns, like `directory/foo.py` (to exclude that specific\n file) or `directory/*.py` (to exclude any Python files in\n `directory`). Note that these paths are relative to the project root\n (e.g., the directory containing your `pyproject.toml`).\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "explicit-preview-rules": { + "description": "Whether to require exact codes to select preview rules. When enabled,\npreview rules will not be selected by prefixes — the full code of each\npreview rule will be required to enable the rule.", + "type": ["boolean", "null"] + }, + "extend-fixable": { + "description": "A list of rule codes or prefixes to consider fixable, in addition to those\nspecified by [`fixable`](#lint_fixable).", + "type": ["array", "null"], + "items": { + "$ref": "#/definitions/RuleSelector" + } + }, + "extend-ignore": { + "description": "A list of rule codes or prefixes to ignore, in addition to those\nspecified by `ignore`.\n\nThis option is deprecated because it is now interchangeable with\n[`ignore`](#lint_ignore). In earlier versions of Ruff, `ignore` would\n_replace_ the set of ignored rules when using configuration inheritance\n(via the top-level [`extend`](https://docs.astral.sh/ruff/settings/#extend)\nsetting), while `extend-ignore` would _add_ to the inherited set. Ruff\nnow merges both `ignore` and `extend-ignore` into a single set, so the\ndistinction no longer applies. Use [`ignore`](#lint_ignore) instead.", + "type": ["array", "null"], + "deprecated": true, + "items": { + "$ref": "#/definitions/RuleSelector" + } + }, + "extend-per-file-ignores": { + "description": "A list of mappings from file pattern to rule codes or prefixes to\nexclude, in addition to any rules excluded by [`per-file-ignores`](#lint_per-file-ignores).", + "type": ["object", "null"], + "additionalProperties": { + "type": "array", + "items": { + "$ref": "#/definitions/RuleSelector" + } + } + }, + "extend-safe-fixes": { + "description": "A list of rule codes or prefixes for which unsafe fixes should be considered\nsafe.", + "type": ["array", "null"], + "items": { + "$ref": "#/definitions/RuleSelector" + } + }, + "extend-select": { + "description": "A list of rule codes or prefixes to enable, in addition to those\nspecified by [`select`](#lint_select).\n\nUnlike [`select`](#lint_select), which _replaces_ the default rule set\nwhen specified, `extend-select` _adds_ to whatever rules are already\nactive. This makes `extend-select` the preferred option when you want\nto enable additional rules on top of the defaults without having to\nenumerate them.\n\nFor example, to enable the defaults plus flake8-bugbear:\n\n```toml\n[tool.ruff.lint]\n# Adds flake8-bugbear on top of the default rules (E4, E7, E9, F).\nextend-select = [\"B\"]\n```\n\nUsing `select = [\"B\"]` instead would _replace_ the defaults, enabling\nonly flake8-bugbear.", + "type": ["array", "null"], + "items": { + "$ref": "#/definitions/RuleSelector" + } + }, + "extend-unfixable": { + "description": "A list of rule codes or prefixes to consider non-auto-fixable, in addition to those\nspecified by [`unfixable`](#lint_unfixable).", + "type": ["array", "null"], + "deprecated": true, + "items": { + "$ref": "#/definitions/RuleSelector" + } + }, + "extend-unsafe-fixes": { + "description": "A list of rule codes or prefixes for which safe fixes should be considered\nunsafe.", + "type": ["array", "null"], + "items": { + "$ref": "#/definitions/RuleSelector" + } + }, + "external": { + "description": "A list of rule codes or prefixes that are unsupported by Ruff, but should be\npreserved when (e.g.) validating `# noqa` directives. Useful for\nretaining `# noqa` directives that cover plugins not yet implemented\nby Ruff.", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "fixable": { + "description": "A list of rule codes or prefixes to consider fixable. By default,\nall rules are considered fixable.", + "type": ["array", "null"], + "items": { + "$ref": "#/definitions/RuleSelector" + } + }, + "flake8-annotations": { + "description": "Options for the `flake8-annotations` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/Flake8AnnotationsOptions" + }, + { + "type": "null" + } + ] + }, + "flake8-bandit": { + "description": "Options for the `flake8-bandit` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/Flake8BanditOptions" + }, + { + "type": "null" + } + ] + }, + "flake8-boolean-trap": { + "description": "Options for the `flake8-boolean-trap` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/Flake8BooleanTrapOptions" + }, + { + "type": "null" + } + ] + }, + "flake8-bugbear": { + "description": "Options for the `flake8-bugbear` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/Flake8BugbearOptions" + }, + { + "type": "null" + } + ] + }, + "flake8-builtins": { + "description": "Options for the `flake8-builtins` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/Flake8BuiltinsOptions" + }, + { + "type": "null" + } + ] + }, + "flake8-comprehensions": { + "description": "Options for the `flake8-comprehensions` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/Flake8ComprehensionsOptions" + }, + { + "type": "null" + } + ] + }, + "flake8-copyright": { + "description": "Options for the `flake8-copyright` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/Flake8CopyrightOptions" + }, + { + "type": "null" + } + ] + }, + "flake8-errmsg": { + "description": "Options for the `flake8-errmsg` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/Flake8ErrMsgOptions" + }, + { + "type": "null" + } + ] + }, + "flake8-gettext": { + "description": "Options for the `flake8-gettext` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/Flake8GetTextOptions" + }, + { + "type": "null" + } + ] + }, + "flake8-implicit-str-concat": { + "description": "Options for the `flake8-implicit-str-concat` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/Flake8ImplicitStrConcatOptions" + }, + { + "type": "null" + } + ] + }, + "flake8-import-conventions": { + "description": "Options for the `flake8-import-conventions` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/Flake8ImportConventionsOptions" + }, + { + "type": "null" + } + ] + }, + "flake8-pytest-style": { + "description": "Options for the `flake8-pytest-style` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/Flake8PytestStyleOptions" + }, + { + "type": "null" + } + ] + }, + "flake8-quotes": { + "description": "Options for the `flake8-quotes` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/Flake8QuotesOptions" + }, + { + "type": "null" + } + ] + }, + "flake8-self": { + "description": "Options for the `flake8_self` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/Flake8SelfOptions" + }, + { + "type": "null" + } + ] + }, + "flake8-tidy-imports": { + "description": "Options for the `flake8-tidy-imports` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/Flake8TidyImportsOptions" + }, + { + "type": "null" + } + ] + }, + "flake8-type-checking": { + "description": "Options for the `flake8-type-checking` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/Flake8TypeCheckingOptions" + }, + { + "type": "null" + } + ] + }, + "flake8-unused-arguments": { + "description": "Options for the `flake8-unused-arguments` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/Flake8UnusedArgumentsOptions" + }, + { + "type": "null" + } + ] + }, + "future-annotations": { + "description": "Whether to allow rules to add `from __future__ import annotations` in cases where this would\nsimplify a fix or enable a new diagnostic.\n\nFor example, `TC001`, `TC002`, and `TC003` can move more imports into `TYPE_CHECKING` blocks\nif `__future__` annotations are enabled.", + "type": ["boolean", "null"] + }, + "ignore": { + "description": "A list of rule codes or prefixes to ignore. Prefixes can specify exact\nrules (like `F841`), entire categories (like `F`), or anything in\nbetween.\n\nWhen breaking ties between enabled and disabled rules (via `select` and\n`ignore`, respectively), more specific prefixes override less\nspecific prefixes. `ignore` takes precedence over `select` if the same\nprefix appears in both.", + "type": ["array", "null"], + "items": { + "$ref": "#/definitions/RuleSelector" + } + }, + "ignore-init-module-imports": { + "description": "Avoid automatically removing unused imports in `__init__.py` files. Such\nimports will still be flagged, but with a dedicated message suggesting\nthat the import is either added to the module's `__all__` symbol, or\nre-exported with a redundant alias (e.g., `import os as os`).\n\nThis option is enabled by default, but you can opt-in to removal of imports\nvia an unsafe fix.", + "type": ["boolean", "null"], + "deprecated": true + }, + "isort": { + "description": "Options for the `isort` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/IsortOptions" + }, + { + "type": "null" + } + ] + }, + "logger-objects": { + "description": "A list of objects that should be treated equivalently to a\n`logging.Logger` object.\n\nThis is useful for ensuring proper diagnostics (e.g., to identify\n`logging` deprecations and other best-practices) for projects that\nre-export a `logging.Logger` object from a common module.\n\nFor example, if you have a module `logging_setup.py` with the following\ncontents:\n```python\nimport logging\n\nlogger = logging.getLogger(__name__)\n```\n\nAdding `\"logging_setup.logger\"` to `logger-objects` will ensure that\n`logging_setup.logger` is treated as a `logging.Logger` object when\nimported from other modules (e.g., `from logging_setup import logger`).", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "mccabe": { + "description": "Options for the `mccabe` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/McCabeOptions" + }, + { + "type": "null" + } + ] + }, + "pep8-naming": { + "description": "Options for the `pep8-naming` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/Pep8NamingOptions" + }, + { + "type": "null" + } + ] + }, + "per-file-ignores": { + "description": "A list of mappings from file pattern to rule codes or prefixes to\nexclude, when considering any matching files. An initial '!' negates\nthe file pattern.", + "type": ["object", "null"], + "additionalProperties": { + "type": "array", + "items": { + "$ref": "#/definitions/RuleSelector" + } + } + }, + "preview": { + "description": "Whether to enable preview mode. When preview mode is enabled, Ruff will\nuse unstable rules and fixes.", + "type": ["boolean", "null"] + }, + "pycodestyle": { + "description": "Options for the `pycodestyle` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/PycodestyleOptions" + }, + { + "type": "null" + } + ] + }, + "pydoclint": { + "description": "Options for the `pydoclint` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/PydoclintOptions" + }, + { + "type": "null" + } + ] + }, + "pydocstyle": { + "description": "Options for the `pydocstyle` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/PydocstyleOptions" + }, + { + "type": "null" + } + ] + }, + "pyflakes": { + "description": "Options for the `pyflakes` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/PyflakesOptions" + }, + { + "type": "null" + } + ] + }, + "pylint": { + "description": "Options for the `pylint` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/PylintOptions" + }, + { + "type": "null" + } + ] + }, + "pyupgrade": { + "description": "Options for the `pyupgrade` plugin.", + "anyOf": [ + { + "$ref": "#/definitions/PyUpgradeOptions" + }, + { + "type": "null" + } + ] + }, + "ruff": { + "description": "Options for the `ruff` plugin", + "anyOf": [ + { + "$ref": "#/definitions/RuffOptions" + }, + { + "type": "null" + } + ] + }, + "select": { + "description": "A list of rule codes or prefixes to enable. Prefixes can specify exact\nrules (like `F841`), entire categories (like `F`), or anything in\nbetween.\n\nWhen breaking ties between enabled and disabled rules (via `select` and\n`ignore`, respectively), more specific prefixes override less\nspecific prefixes. `ignore` takes precedence over `select` if the\nsame prefix appears in both.", + "type": ["array", "null"], + "items": { + "$ref": "#/definitions/RuleSelector" + } + }, + "task-tags": { + "description": "A list of task tags to recognize (e.g., \"TODO\", \"FIXME\", \"XXX\").\n\nComments starting with these tags will be ignored by commented-out code\ndetection (`ERA`), and skipped by line-length rules (`E501`) if\n[`ignore-overlong-task-comments`](#lint_pycodestyle_ignore-overlong-task-comments) is set to `true`.", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "typing-extensions": { + "description": "Whether to allow imports from the third-party `typing_extensions` module for Python versions\nbefore a symbol was added to the first-party `typing` module.\n\nMany rules try to import symbols from the `typing` module but fall back to\n`typing_extensions` for earlier versions of Python. This option can be used to disable this\nfallback behavior in cases where `typing_extensions` is not installed.", + "type": ["boolean", "null"] + }, + "typing-modules": { + "description": "A list of modules whose exports should be treated equivalently to\nmembers of the `typing` module.\n\nThis is useful for ensuring proper type annotation inference for\nprojects that re-export `typing` and `typing_extensions` members\nfrom a compatibility module. If omitted, any members imported from\nmodules apart from `typing` and `typing_extensions` will be treated\nas ordinary Python objects.", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "unfixable": { + "description": "A list of rule codes or prefixes to consider non-fixable.", + "type": ["array", "null"], + "items": { + "$ref": "#/definitions/RuleSelector" + } + } + }, + "additionalProperties": false + }, + "McCabeOptions": { + "description": "Options for the `mccabe` plugin.", + "type": "object", + "properties": { + "max-complexity": { + "description": "The maximum McCabe complexity to allow before triggering `C901` errors.", + "type": ["integer", "null"], + "format": "uint", + "minimum": 0 + } + }, + "additionalProperties": false + }, + "NameImports": { + "type": "string" + }, + "NestedStringQuoteStyle": { + "type": "string", + "enum": ["alternating", "preferred"] + }, + "OutputFormat": { + "type": "string", + "enum": [ + "concise", + "full", + "json", + "json-lines", + "junit", + "grouped", + "github", + "gitlab", + "pylint", + "rdjson", + "azure", + "sarif" + ] + }, + "ParametrizeNameType": { + "type": "string", + "enum": ["csv", "tuple", "list"] + }, + "ParametrizeValuesRowType": { + "type": "string", + "enum": ["tuple", "list"] + }, + "ParametrizeValuesType": { + "type": "string", + "enum": ["tuple", "list"] + }, + "Pep8NamingOptions": { + "description": "Options for the `pep8-naming` plugin.", + "type": "object", + "properties": { + "classmethod-decorators": { + "description": "A list of decorators that, when applied to a method, indicate that the\nmethod should be treated as a class method (in addition to the builtin\n`@classmethod`).\n\nFor example, Ruff will expect that any method decorated by a decorator\nin this list takes a `cls` argument as its first argument.\n\nExpects to receive a list of fully-qualified names (e.g., `pydantic.validator`,\nrather than `validator`) or alternatively a plain name which is then matched against\nthe last segment in case the decorator itself consists of a dotted name.", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "extend-ignore-names": { + "description": "Additional names (or patterns) to ignore when considering `pep8-naming` violations,\nin addition to those included in [`ignore-names`](#lint_pep8-naming_ignore-names).\n\nSupports glob patterns. For example, to ignore all names starting with `test_`\nor ending with `_test`, you could use `ignore-names = [\"test_*\", \"*_test\"]`.\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "ignore-names": { + "description": "A list of names (or patterns) to ignore when considering `pep8-naming` violations.\n\nSupports glob patterns. For example, to ignore all names starting with `test_`\nor ending with `_test`, you could use `ignore-names = [\"test_*\", \"*_test\"]`.\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "staticmethod-decorators": { + "description": "A list of decorators that, when applied to a method, indicate that the\nmethod should be treated as a static method (in addition to the builtin\n`@staticmethod`).\n\nFor example, Ruff will expect that any method decorated by a decorator\nin this list has no `self` or `cls` argument.\n\nExpects to receive a list of fully-qualified names (e.g., `belay.Device.teardown`,\nrather than `teardown`) or alternatively a plain name which is then matched against\nthe last segment in case the decorator itself consists of a dotted name.", + "type": ["array", "null"], + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "PyUpgradeOptions": { + "description": "Options for the `pyupgrade` plugin.", + "type": "object", + "properties": { + "keep-runtime-typing": { + "description": "Whether to avoid [PEP 585](https://peps.python.org/pep-0585/) (`List[int]` -> `list[int]`) and [PEP 604](https://peps.python.org/pep-0604/)\n(`Union[str, int]` -> `str | int`) rewrites even if a file imports\n`from __future__ import annotations`.\n\nThis setting is only applicable when the target Python version is below\n3.9 and 3.10 respectively, and is most commonly used when working with\nlibraries like Pydantic and FastAPI, which rely on the ability to parse\ntype annotations at runtime. The use of `from __future__ import annotations`\ncauses Python to treat the type annotations as strings, which typically\nallows for the use of language features that appear in later Python\nversions but are not yet supported by the current version (e.g., `str |\nint`). However, libraries that rely on runtime type annotations will\nbreak if the annotations are incompatible with the current Python\nversion.\n\nFor example, while the following is valid Python 3.8 code due to the\npresence of `from __future__ import annotations`, the use of `str | int`\nprior to Python 3.10 will cause Pydantic to raise a `TypeError` at\nruntime:\n\n```python\nfrom __future__ import annotations\n\nimport pydantic\n\nclass Foo(pydantic.BaseModel):\n bar: str | int\n```", + "type": ["boolean", "null"] + } + }, + "additionalProperties": false + }, + "PycodestyleOptions": { + "description": "Options for the `pycodestyle` plugin.", + "type": "object", + "properties": { + "ignore-overlong-task-comments": { + "description": "Whether line-length violations (`E501`) should be triggered for\ncomments starting with [`task-tags`](#lint_task-tags) (by default: \"TODO\", \"FIXME\",\nand \"XXX\").", + "type": ["boolean", "null"] + }, + "max-doc-length": { + "description": "The maximum line length to allow for [`doc-line-too-long`](https://docs.astral.sh/ruff/rules/doc-line-too-long/) violations within\ndocumentation (`W505`), including standalone comments. By default,\nthis is set to `null` which disables reporting violations.\n\nThe length is determined by the number of characters per line, except for lines containing Asian characters or emojis.\nFor these lines, the [unicode width](https://unicode.org/reports/tr11/) of each character is added up to determine the length.\n\nSee the [`doc-line-too-long`](https://docs.astral.sh/ruff/rules/doc-line-too-long/) rule for more information.", + "anyOf": [ + { + "$ref": "#/definitions/LineLength" + }, + { + "type": "null" + } + ] + }, + "max-line-length": { + "description": "The maximum line length to allow for [`line-too-long`](https://docs.astral.sh/ruff/rules/line-too-long/) violations. By default,\nthis is set to the value of the [`line-length`](#line-length) option.\n\nUse this option when you want to detect extra-long lines that the formatter can't automatically split by setting\n`pycodestyle.line-length` to a value larger than [`line-length`](#line-length).\n\n```toml\n# The formatter wraps lines at a length of 88.\nline-length = 88\n\n[pycodestyle]\n# E501 reports lines that exceed the length of 100.\nmax-line-length = 100\n```\n\nThe length is determined by the number of characters per line, except for lines containing East Asian characters or emojis.\nFor these lines, the [unicode width](https://unicode.org/reports/tr11/) of each character is added up to determine the length.\n\nSee the [`line-too-long`](https://docs.astral.sh/ruff/rules/line-too-long/) rule for more information.", + "anyOf": [ + { + "$ref": "#/definitions/LineLength" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false + }, + "PydoclintOptions": { + "description": "Options for the `pydoclint` plugin.", + "type": "object", + "properties": { + "ignore-one-line-docstrings": { + "description": "Skip docstrings which fit on a single line.\n\nNote: The corresponding setting in `pydoclint`\nis named `skip-checking-short-docstrings`.", + "type": ["boolean", "null"] + } + }, + "additionalProperties": false + }, + "PydocstyleOptions": { + "description": "Options for the `pydocstyle` plugin.", + "type": "object", + "properties": { + "convention": { + "description": "Whether to use Google-style, NumPy-style conventions, or the [PEP 257](https://peps.python.org/pep-0257/)\ndefaults when analyzing docstring sections.\n\nEnabling a convention will disable all rules that are not included in\nthe specified convention. As such, the intended workflow is to enable a\nconvention and then selectively enable or disable any additional rules\non top of it.\n\nFor example, to use Google-style conventions but avoid requiring\ndocumentation for every function parameter:\n\n```toml\n[tool.ruff.lint]\n# Enable all `pydocstyle` rules, limiting to those that adhere to the\n# Google convention via `convention = \"google\"`, below.\nselect = [\"D\"]\n\n# On top of the Google convention, disable `D417`, which requires\n# documentation for every function parameter.\nignore = [\"D417\"]\n\n[tool.ruff.lint.pydocstyle]\nconvention = \"google\"\n```\n\nThe PEP 257 convention includes all `D` errors apart from:\n[`D203`](rules/incorrect-blank-line-before-class.md),\n[`D212`](rules/multi-line-summary-first-line.md),\n[`D213`](rules/multi-line-summary-second-line.md),\n[`D214`](rules/overindented-section.md),\n[`D215`](rules/overindented-section-underline.md),\n[`D404`](rules/docstring-starts-with-this.md),\n[`D405`](rules/non-capitalized-section-name.md),\n[`D406`](rules/missing-new-line-after-section-name.md),\n[`D407`](rules/missing-dashed-underline-after-section.md),\n[`D408`](rules/missing-section-underline-after-name.md),\n[`D409`](rules/mismatched-section-underline-length.md),\n[`D410`](rules/no-blank-line-after-section.md),\n[`D411`](rules/no-blank-line-before-section.md),\n[`D413`](rules/missing-blank-line-after-last-section.md),\n[`D415`](rules/missing-terminal-punctuation.md),\n[`D416`](rules/missing-section-name-colon.md),\n[`D417`](rules/undocumented-param.md), and\n[`D420`](rules/incorrect-section-order.md).\n\nThe NumPy convention includes all `D` errors apart from:\n[`D107`](rules/undocumented-public-init.md),\n[`D203`](rules/incorrect-blank-line-before-class.md),\n[`D212`](rules/multi-line-summary-first-line.md),\n[`D213`](rules/multi-line-summary-second-line.md),\n[`D402`](rules/signature-in-docstring.md),\n[`D413`](rules/missing-blank-line-after-last-section.md),\n[`D415`](rules/missing-terminal-punctuation.md),\n[`D416`](rules/missing-section-name-colon.md), and\n[`D417`](rules/undocumented-param.md).\n\nThe Google convention includes all `D` errors apart from:\n[`D203`](rules/incorrect-blank-line-before-class.md),\n[`D204`](rules/incorrect-blank-line-after-class.md),\n[`D213`](rules/multi-line-summary-second-line.md),\n[`D215`](rules/overindented-section-underline.md),\n[`D400`](rules/missing-trailing-period.md),\n[`D401`](rules/non-imperative-mood.md),\n[`D404`](rules/docstring-starts-with-this.md),\n[`D406`](rules/missing-new-line-after-section-name.md),\n[`D407`](rules/missing-dashed-underline-after-section.md),\n[`D408`](rules/missing-section-underline-after-name.md),\n[`D409`](rules/mismatched-section-underline-length.md), and\n[`D413`](rules/missing-blank-line-after-last-section.md).\n\nFor more information see the [FAQ](faq.md#does-ruff-support-numpy-or-google-style-docstrings) entry.\n\nTo enable an additional rule that's excluded from the convention,\nselect the desired rule via its fully qualified rule code (e.g.,\n`D400` instead of `D4` or `D40`):\n\n```toml\n[tool.ruff.lint]\n# Enable D400 on top of the Google convention.\nextend-select = [\"D400\"]\n\n[tool.ruff.lint.pydocstyle]\nconvention = \"google\"\n```", + "anyOf": [ + { + "$ref": "#/definitions/Convention" + }, + { + "type": "null" + } + ] + }, + "ignore-decorators": { + "description": "Ignore docstrings for functions or methods decorated with the\nspecified fully-qualified decorators.", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "ignore-var-parameters": { + "description": "If set to `true`, ignore missing documentation for `*args` and `**kwargs` parameters.", + "type": ["boolean", "null"] + }, + "property-decorators": { + "description": "A list of decorators that, when applied to a method, indicate that the\nmethod should be treated as a property (in addition to the builtin\n`@property` and standard-library `@functools.cached_property`).\n\nFor example, Ruff will expect that any method decorated by a decorator\nin this list can use a non-imperative summary line.", + "type": ["array", "null"], + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "PyflakesOptions": { + "description": "Options for the `pyflakes` plugin.", + "type": "object", + "properties": { + "allowed-unused-imports": { + "description": "A list of modules to ignore when considering unused imports.\n\nUsed to prevent violations for specific modules that are known to have side effects on\nimport (e.g., `hvplot.pandas`).\n\nModules in this list are expected to be fully-qualified names (e.g., `hvplot.pandas`). Any\nsubmodule of a given module will also be ignored (e.g., given `hvplot`, `hvplot.pandas`\nwill also be ignored).", + "type": ["array", "null"], + "items": { + "type": "string" + } + }, + "extend-generics": { + "description": "Additional functions or classes to consider generic, such that any\nsubscripts should be treated as type annotation (e.g., `ForeignKey` in\n`django.db.models.ForeignKey[\"User\"]`.\n\nExpects to receive a list of fully-qualified names (e.g., `django.db.models.ForeignKey`,\nrather than `ForeignKey`).", + "type": ["array", "null"], + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "PylintOptions": { + "description": "Options for the `pylint` plugin.", + "type": "object", + "properties": { + "allow-dunder-method-names": { + "description": "Dunder methods name to allow, in addition to the default set from the\nPython standard library (see `PLW3201`).", + "type": ["array", "null"], + "items": { + "type": "string" + }, + "uniqueItems": true + }, + "allow-magic-value-types": { + "description": "Constant types to ignore when used as \"magic values\" (see `PLR2004`).", + "type": ["array", "null"], + "items": { + "$ref": "#/definitions/ConstantType" + } + }, + "max-args": { + "description": "Maximum number of arguments allowed for a function or method definition\n(see `PLR0913`).", + "type": ["integer", "null"], + "format": "uint", + "minimum": 0 + }, + "max-bool-expr": { + "description": "Maximum number of Boolean expressions allowed within a single `if` statement\n(see `PLR0916`).", + "type": ["integer", "null"], + "format": "uint", + "minimum": 0 + }, + "max-branches": { + "description": "Maximum number of branches allowed for a function or method body (see `PLR0912`).", + "type": ["integer", "null"], + "format": "uint", + "minimum": 0 + }, + "max-locals": { + "description": "Maximum number of local variables allowed for a function or method body (see `PLR0914`).", + "type": ["integer", "null"], + "format": "uint", + "minimum": 0 + }, + "max-nested-blocks": { + "description": "Maximum number of nested blocks allowed within a function or method body\n(see `PLR1702`).", + "type": ["integer", "null"], + "format": "uint", + "minimum": 0 + }, + "max-positional-args": { + "description": "Maximum number of positional arguments allowed for a function or method definition\n(see `PLR0917`).\n\nIf not specified, defaults to the value of `max-args`.", + "type": ["integer", "null"], + "format": "uint", + "minimum": 0 + }, + "max-public-methods": { + "description": "Maximum number of public methods allowed for a class (see `PLR0904`).", + "type": ["integer", "null"], + "format": "uint", + "minimum": 0 + }, + "max-returns": { + "description": "Maximum number of return statements allowed for a function or method\nbody (see `PLR0911`)", + "type": ["integer", "null"], + "format": "uint", + "minimum": 0 + }, + "max-statements": { + "description": "Maximum number of statements allowed for a function or method body (see `PLR0915`).", + "type": ["integer", "null"], + "format": "uint", + "minimum": 0 + }, + "max-statements-in-try": { + "description": "Maximum number of statements allowed for a try clause body (see `W0717`).", + "type": ["integer", "null"], + "format": "uint", + "minimum": 0 + } + }, + "additionalProperties": false + }, + "PythonVersion": { + "type": "string", + "enum": [ + "py37", + "py38", + "py39", + "py310", + "py311", + "py312", + "py313", + "py314", + "py315" + ] + }, + "Quote": { + "oneOf": [ + { + "description": "Use double quotes.", + "type": "string", + "const": "double" + }, + { + "description": "Use single quotes.", + "type": "string", + "const": "single" + } + ] + }, + "QuoteStyle": { + "type": "string", + "enum": ["single", "double", "preserve"] + }, + "RelativeImportsOrder": { + "oneOf": [ + { + "description": "Place \"closer\" imports (fewer `.` characters, most local) before\n\"further\" imports (more `.` characters, least local).", + "type": "string", + "const": "closest-to-furthest" + }, + { + "description": "Place \"further\" imports (more `.` characters, least local) imports\nbefore \"closer\" imports (fewer `.` characters, most local).", + "type": "string", + "const": "furthest-to-closest" + } + ] + }, + "RequiredVersion": { + "type": "string" + }, + "RuffOptions": { + "description": "Options for the `ruff` plugin", + "type": "object", + "properties": { + "allowed-markup-calls": { + "description": "A list of callable names, whose result may be safely passed into\n[`markupsafe.Markup`](https://markupsafe.palletsprojects.com/en/stable/escaping/#markupsafe.Markup).\n\nExpects to receive a list of fully-qualified names (e.g., `bleach.clean`, rather than `clean`).\n\nThis setting helps you avoid false positives in code like:\n\n```python\nfrom bleach import clean\nfrom markupsafe import Markup\n\ncleaned_markup = Markup(clean(some_user_input))\n```\n\nWhere the use of [`bleach.clean`](https://bleach.readthedocs.io/en/latest/clean.html)\nusually ensures that there's no XSS vulnerability.\n\nAlthough it is not recommended, you may also use this setting to whitelist other\nkinds of calls, e.g. calls to i18n translation functions, where how safe that is\nwill depend on the implementation and how well the translations are audited.\n\nAnother common use-case is to wrap the output of functions that generate markup\nlike [`xml.etree.ElementTree.tostring`](https://docs.python.org/3/library/xml.etree.elementtree.html#xml.etree.ElementTree.tostring)\nor template rendering engines where sanitization of potential user input is either\nalready baked in or has to happen before rendering.", + "type": ["array", "null"], + "deprecated": true, + "items": { + "type": "string" + } + }, + "extend-markup-names": { + "description": "A list of additional callable names that behave like\n[`markupsafe.Markup`](https://markupsafe.palletsprojects.com/en/stable/escaping/#markupsafe.Markup).\n\nExpects to receive a list of fully-qualified names (e.g., `webhelpers.html.literal`, rather than\n`literal`).", + "type": ["array", "null"], + "deprecated": true, + "items": { + "type": "string" + } + }, + "parenthesize-tuple-in-subscript": { + "description": "Whether to prefer accessing items keyed by tuples with\nparentheses around the tuple (see `RUF031`).", + "type": ["boolean", "null"] + }, + "strictly-empty-init-modules": { + "description": "Whether to require `__init__.py` files to contain no code at all, including imports and\ndocstrings (see `RUF067`).", + "type": ["boolean", "null"] + } + }, + "additionalProperties": false + }, + "RuleSelector": { + "type": "string", + "enum": [ + "A", + "A0", + "A00", + "A001", + "A002", + "A003", + "A004", + "A005", + "A006", + "AIR", + "AIR0", + "AIR00", + "AIR001", + "AIR002", + "AIR003", + "AIR004", + "AIR2", + "AIR20", + "AIR201", + "AIR202", + "AIR3", + "AIR30", + "AIR301", + "AIR302", + "AIR303", + "AIR304", + "AIR31", + "AIR311", + "AIR312", + "AIR32", + "AIR321", + "ALL", + "ANN", + "ANN0", + "ANN00", + "ANN001", + "ANN002", + "ANN003", + "ANN2", + "ANN20", + "ANN201", + "ANN202", + "ANN204", + "ANN205", + "ANN206", + "ANN4", + "ANN40", + "ANN401", + "ARG", + "ARG0", + "ARG00", + "ARG001", + "ARG002", + "ARG003", + "ARG004", + "ARG005", + "ASYNC", + "ASYNC1", + "ASYNC10", + "ASYNC100", + "ASYNC105", + "ASYNC109", + "ASYNC11", + "ASYNC110", + "ASYNC115", + "ASYNC116", + "ASYNC119", + "ASYNC2", + "ASYNC21", + "ASYNC210", + "ASYNC212", + "ASYNC22", + "ASYNC220", + "ASYNC221", + "ASYNC222", + "ASYNC23", + "ASYNC230", + "ASYNC24", + "ASYNC240", + "ASYNC25", + "ASYNC250", + "ASYNC251", + "B", + "B0", + "B00", + "B002", + "B003", + "B004", + "B005", + "B006", + "B007", + "B008", + "B009", + "B01", + "B010", + "B011", + "B012", + "B013", + "B014", + "B015", + "B016", + "B017", + "B018", + "B019", + "B02", + "B020", + "B021", + "B022", + "B023", + "B024", + "B025", + "B026", + "B027", + "B028", + "B029", + "B03", + "B030", + "B031", + "B032", + "B033", + "B034", + "B035", + "B039", + "B04", + "B043", + "B9", + "B90", + "B901", + "B903", + "B904", + "B905", + "B909", + "B91", + "B911", + "B912", + "BLE", + "BLE0", + "BLE00", + "BLE001", + "C", + "C4", + "C40", + "C400", + "C401", + "C402", + "C403", + "C404", + "C405", + "C406", + "C408", + "C409", + "C41", + "C410", + "C411", + "C413", + "C414", + "C415", + "C416", + "C417", + "C418", + "C419", + "C42", + "C420", + "C9", + "C90", + "C901", + "COM", + "COM8", + "COM81", + "COM812", + "COM818", + "COM819", + "CPY", + "CPY0", + "CPY00", + "CPY001", + "D", + "D1", + "D10", + "D100", + "D101", + "D102", + "D103", + "D104", + "D105", + "D106", + "D107", + "D2", + "D20", + "D200", + "D201", + "D202", + "D203", + "D204", + "D205", + "D206", + "D207", + "D208", + "D209", + "D21", + "D210", + "D211", + "D212", + "D213", + "D214", + "D215", + "D3", + "D30", + "D300", + "D301", + "D4", + "D40", + "D400", + "D401", + "D402", + "D403", + "D404", + "D405", + "D406", + "D407", + "D408", + "D409", + "D41", + "D410", + "D411", + "D412", + "D413", + "D414", + "D415", + "D416", + "D417", + "D418", + "D419", + "D42", + "D420", + "D421", + "DJ", + "DJ0", + "DJ00", + "DJ001", + "DJ003", + "DJ006", + "DJ007", + "DJ008", + "DJ01", + "DJ012", + "DJ013", + "DOC", + "DOC1", + "DOC10", + "DOC102", + "DOC2", + "DOC20", + "DOC201", + "DOC202", + "DOC4", + "DOC40", + "DOC402", + "DOC403", + "DOC5", + "DOC50", + "DOC501", + "DOC502", + "DTZ", + "DTZ0", + "DTZ00", + "DTZ001", + "DTZ002", + "DTZ003", + "DTZ004", + "DTZ005", + "DTZ006", + "DTZ007", + "DTZ01", + "DTZ011", + "DTZ012", + "DTZ9", + "DTZ90", + "DTZ901", + "E", + "E1", + "E10", + "E101", + "E11", + "E111", + "E112", + "E113", + "E114", + "E115", + "E116", + "E117", + "E2", + "E20", + "E201", + "E202", + "E203", + "E204", + "E21", + "E211", + "E22", + "E221", + "E222", + "E223", + "E224", + "E225", + "E226", + "E227", + "E228", + "E23", + "E231", + "E24", + "E241", + "E242", + "E25", + "E251", + "E252", + "E26", + "E261", + "E262", + "E265", + "E266", + "E27", + "E271", + "E272", + "E273", + "E274", + "E275", + "E3", + "E30", + "E301", + "E302", + "E303", + "E304", + "E305", + "E306", + "E4", + "E40", + "E401", + "E402", + "E5", + "E50", + "E501", + "E502", + "E7", + "E70", + "E701", + "E702", + "E703", + "E71", + "E711", + "E712", + "E713", + "E714", + "E72", + "E721", + "E722", + "E73", + "E731", + "E74", + "E741", + "E742", + "E743", + "E9", + "E90", + "E902", + "EM", + "EM1", + "EM10", + "EM101", + "EM102", + "EM103", + "ERA", + "ERA0", + "ERA00", + "ERA001", + "EXE", + "EXE0", + "EXE00", + "EXE001", + "EXE002", + "EXE003", + "EXE004", + "EXE005", + "F", + "F4", + "F40", + "F401", + "F402", + "F403", + "F404", + "F405", + "F406", + "F407", + "F5", + "F50", + "F501", + "F502", + "F503", + "F504", + "F505", + "F506", + "F507", + "F508", + "F509", + "F52", + "F521", + "F522", + "F523", + "F524", + "F525", + "F54", + "F541", + "F6", + "F60", + "F601", + "F602", + "F62", + "F621", + "F622", + "F63", + "F631", + "F632", + "F633", + "F634", + "F7", + "F70", + "F701", + "F702", + "F704", + "F706", + "F707", + "F72", + "F722", + "F8", + "F81", + "F811", + "F82", + "F821", + "F822", + "F823", + "F84", + "F841", + "F842", + "F9", + "F90", + "F901", + "FA", + "FA1", + "FA10", + "FA100", + "FA102", + "FAST", + "FAST0", + "FAST00", + "FAST001", + "FAST002", + "FAST003", + "FBT", + "FBT0", + "FBT00", + "FBT001", + "FBT002", + "FBT003", + "FIX", + "FIX0", + "FIX00", + "FIX001", + "FIX002", + "FIX003", + "FIX004", + "FLY", + "FLY0", + "FLY00", + "FLY002", + "FURB", + "FURB1", + "FURB10", + "FURB101", + "FURB103", + "FURB105", + "FURB11", + "FURB110", + "FURB113", + "FURB116", + "FURB118", + "FURB12", + "FURB122", + "FURB129", + "FURB13", + "FURB131", + "FURB132", + "FURB136", + "FURB14", + "FURB140", + "FURB142", + "FURB145", + "FURB148", + "FURB15", + "FURB152", + "FURB154", + "FURB156", + "FURB157", + "FURB16", + "FURB161", + "FURB162", + "FURB163", + "FURB164", + "FURB166", + "FURB167", + "FURB168", + "FURB169", + "FURB17", + "FURB171", + "FURB177", + "FURB18", + "FURB180", + "FURB181", + "FURB187", + "FURB188", + "FURB189", + "FURB19", + "FURB192", + "G", + "G0", + "G00", + "G001", + "G002", + "G003", + "G004", + "G01", + "G010", + "G1", + "G10", + "G101", + "G2", + "G20", + "G201", + "G202", + "I", + "I0", + "I00", + "I001", + "I002", + "ICN", + "ICN0", + "ICN00", + "ICN001", + "ICN002", + "ICN003", + "INP", + "INP0", + "INP00", + "INP001", + "INT", + "INT0", + "INT00", + "INT001", + "INT002", + "INT003", + "ISC", + "ISC0", + "ISC00", + "ISC001", + "ISC002", + "ISC003", + "ISC004", + "LOG", + "LOG0", + "LOG00", + "LOG001", + "LOG002", + "LOG004", + "LOG007", + "LOG009", + "LOG01", + "LOG014", + "LOG015", + "N", + "N8", + "N80", + "N801", + "N802", + "N803", + "N804", + "N805", + "N806", + "N807", + "N81", + "N811", + "N812", + "N813", + "N814", + "N815", + "N816", + "N817", + "N818", + "N9", + "N99", + "N999", + "NPY", + "NPY0", + "NPY00", + "NPY001", + "NPY002", + "NPY003", + "NPY2", + "NPY20", + "NPY201", + "PD", + "PD0", + "PD00", + "PD002", + "PD003", + "PD004", + "PD007", + "PD008", + "PD009", + "PD01", + "PD010", + "PD011", + "PD012", + "PD013", + "PD015", + "PD1", + "PD10", + "PD101", + "PERF", + "PERF1", + "PERF10", + "PERF101", + "PERF102", + "PERF2", + "PERF20", + "PERF203", + "PERF4", + "PERF40", + "PERF401", + "PERF402", + "PERF403", + "PGH", + "PGH0", + "PGH00", + "PGH003", + "PGH004", + "PGH005", + "PIE", + "PIE7", + "PIE79", + "PIE790", + "PIE794", + "PIE796", + "PIE8", + "PIE80", + "PIE800", + "PIE804", + "PIE807", + "PIE808", + "PIE81", + "PIE810", + "PL", + "PLC", + "PLC0", + "PLC01", + "PLC010", + "PLC0105", + "PLC013", + "PLC0131", + "PLC0132", + "PLC02", + "PLC020", + "PLC0205", + "PLC0206", + "PLC0207", + "PLC0208", + "PLC04", + "PLC041", + "PLC0414", + "PLC0415", + "PLC1", + "PLC18", + "PLC180", + "PLC1802", + "PLC19", + "PLC190", + "PLC1901", + "PLC2", + "PLC24", + "PLC240", + "PLC2401", + "PLC2403", + "PLC27", + "PLC270", + "PLC2701", + "PLC28", + "PLC280", + "PLC2801", + "PLC3", + "PLC30", + "PLC300", + "PLC3002", + "PLE", + "PLE0", + "PLE01", + "PLE010", + "PLE0100", + "PLE0101", + "PLE011", + "PLE0115", + "PLE0116", + "PLE0117", + "PLE0118", + "PLE02", + "PLE023", + "PLE0237", + "PLE024", + "PLE0241", + "PLE03", + "PLE030", + "PLE0302", + "PLE0303", + "PLE0304", + "PLE0305", + "PLE0307", + "PLE0308", + "PLE0309", + "PLE06", + "PLE060", + "PLE0604", + "PLE0605", + "PLE064", + "PLE0643", + "PLE07", + "PLE070", + "PLE0704", + "PLE1", + "PLE11", + "PLE113", + "PLE1132", + "PLE114", + "PLE1141", + "PLE1142", + "PLE12", + "PLE120", + "PLE1205", + "PLE1206", + "PLE13", + "PLE130", + "PLE1300", + "PLE1307", + "PLE131", + "PLE1310", + "PLE15", + "PLE150", + "PLE1507", + "PLE151", + "PLE1519", + "PLE152", + "PLE1520", + "PLE17", + "PLE170", + "PLE1700", + "PLE2", + "PLE25", + "PLE250", + "PLE2502", + "PLE251", + "PLE2510", + "PLE2512", + "PLE2513", + "PLE2514", + "PLE2515", + "PLE4", + "PLE47", + "PLE470", + "PLE4703", + "PLR", + "PLR0", + "PLR01", + "PLR012", + "PLR0124", + "PLR013", + "PLR0133", + "PLR02", + "PLR020", + "PLR0202", + "PLR0203", + "PLR0206", + "PLR04", + "PLR040", + "PLR0402", + "PLR09", + "PLR090", + "PLR0904", + "PLR091", + "PLR0911", + "PLR0912", + "PLR0913", + "PLR0914", + "PLR0915", + "PLR0916", + "PLR0917", + "PLR1", + "PLR17", + "PLR170", + "PLR1702", + "PLR1704", + "PLR1708", + "PLR171", + "PLR1711", + "PLR1712", + "PLR1714", + "PLR1716", + "PLR172", + "PLR1722", + "PLR173", + "PLR1730", + "PLR1733", + "PLR1736", + "PLR2", + "PLR20", + "PLR200", + "PLR2004", + "PLR204", + "PLR2044", + "PLR5", + "PLR55", + "PLR550", + "PLR5501", + "PLR6", + "PLR61", + "PLR610", + "PLR6104", + "PLR62", + "PLR620", + "PLR6201", + "PLR63", + "PLR630", + "PLR6301", + "PLW", + "PLW0", + "PLW01", + "PLW010", + "PLW0108", + "PLW012", + "PLW0120", + "PLW0127", + "PLW0128", + "PLW0129", + "PLW013", + "PLW0131", + "PLW0133", + "PLW017", + "PLW0177", + "PLW02", + "PLW021", + "PLW0211", + "PLW024", + "PLW0244", + "PLW0245", + "PLW04", + "PLW040", + "PLW0406", + "PLW06", + "PLW060", + "PLW0602", + "PLW0603", + "PLW0604", + "PLW064", + "PLW0642", + "PLW07", + "PLW071", + "PLW0711", + "PLW0717", + "PLW1", + "PLW15", + "PLW150", + "PLW1501", + "PLW1507", + "PLW1508", + "PLW1509", + "PLW151", + "PLW1510", + "PLW1514", + "PLW16", + "PLW164", + "PLW1641", + "PLW2", + "PLW21", + "PLW210", + "PLW2101", + "PLW29", + "PLW290", + "PLW2901", + "PLW3", + "PLW32", + "PLW320", + "PLW3201", + "PLW33", + "PLW330", + "PLW3301", + "PT", + "PT0", + "PT00", + "PT001", + "PT002", + "PT003", + "PT006", + "PT007", + "PT008", + "PT009", + "PT01", + "PT010", + "PT011", + "PT012", + "PT013", + "PT014", + "PT015", + "PT016", + "PT017", + "PT018", + "PT019", + "PT02", + "PT020", + "PT021", + "PT022", + "PT023", + "PT024", + "PT025", + "PT026", + "PT027", + "PT028", + "PT029", + "PT03", + "PT030", + "PT031", + "PTH", + "PTH1", + "PTH10", + "PTH100", + "PTH101", + "PTH102", + "PTH103", + "PTH104", + "PTH105", + "PTH106", + "PTH107", + "PTH108", + "PTH109", + "PTH11", + "PTH110", + "PTH111", + "PTH112", + "PTH113", + "PTH114", + "PTH115", + "PTH116", + "PTH117", + "PTH118", + "PTH119", + "PTH12", + "PTH120", + "PTH121", + "PTH122", + "PTH123", + "PTH124", + "PTH2", + "PTH20", + "PTH201", + "PTH202", + "PTH203", + "PTH204", + "PTH205", + "PTH206", + "PTH207", + "PTH208", + "PTH21", + "PTH210", + "PTH211", + "PYI", + "PYI0", + "PYI00", + "PYI001", + "PYI002", + "PYI003", + "PYI004", + "PYI005", + "PYI006", + "PYI007", + "PYI008", + "PYI009", + "PYI01", + "PYI010", + "PYI011", + "PYI012", + "PYI013", + "PYI014", + "PYI015", + "PYI016", + "PYI017", + "PYI018", + "PYI019", + "PYI02", + "PYI020", + "PYI021", + "PYI024", + "PYI025", + "PYI026", + "PYI029", + "PYI03", + "PYI030", + "PYI032", + "PYI033", + "PYI034", + "PYI035", + "PYI036", + "PYI04", + "PYI041", + "PYI042", + "PYI043", + "PYI044", + "PYI045", + "PYI046", + "PYI047", + "PYI048", + "PYI049", + "PYI05", + "PYI050", + "PYI051", + "PYI052", + "PYI053", + "PYI054", + "PYI055", + "PYI056", + "PYI057", + "PYI058", + "PYI059", + "PYI06", + "PYI061", + "PYI062", + "PYI063", + "PYI064", + "PYI066", + "Q", + "Q0", + "Q00", + "Q000", + "Q001", + "Q002", + "Q003", + "Q004", + "RET", + "RET5", + "RET50", + "RET501", + "RET502", + "RET503", + "RET504", + "RET505", + "RET506", + "RET507", + "RET508", + "RSE", + "RSE1", + "RSE10", + "RSE102", + "RUF", + "RUF0", + "RUF00", + "RUF001", + "RUF002", + "RUF003", + "RUF005", + "RUF006", + "RUF007", + "RUF008", + "RUF009", + "RUF01", + "RUF010", + "RUF012", + "RUF013", + "RUF015", + "RUF016", + "RUF017", + "RUF018", + "RUF019", + "RUF02", + "RUF020", + "RUF021", + "RUF022", + "RUF023", + "RUF024", + "RUF026", + "RUF027", + "RUF028", + "RUF029", + "RUF03", + "RUF030", + "RUF031", + "RUF032", + "RUF033", + "RUF034", + "RUF036", + "RUF037", + "RUF038", + "RUF039", + "RUF04", + "RUF040", + "RUF041", + "RUF043", + "RUF045", + "RUF046", + "RUF047", + "RUF048", + "RUF049", + "RUF05", + "RUF050", + "RUF051", + "RUF052", + "RUF053", + "RUF054", + "RUF055", + "RUF056", + "RUF057", + "RUF058", + "RUF059", + "RUF06", + "RUF060", + "RUF061", + "RUF063", + "RUF064", + "RUF065", + "RUF066", + "RUF067", + "RUF068", + "RUF069", + "RUF07", + "RUF070", + "RUF071", + "RUF072", + "RUF073", + "RUF074", + "RUF075", + "RUF1", + "RUF10", + "RUF100", + "RUF101", + "RUF102", + "RUF103", + "RUF104", + "RUF105", + "RUF106", + "RUF2", + "RUF20", + "RUF200", + "RUF201", + "S", + "S1", + "S10", + "S101", + "S102", + "S103", + "S104", + "S105", + "S106", + "S107", + "S108", + "S11", + "S110", + "S112", + "S113", + "S2", + "S20", + "S201", + "S202", + "S3", + "S30", + "S301", + "S302", + "S303", + "S304", + "S305", + "S306", + "S307", + "S308", + "S31", + "S310", + "S311", + "S312", + "S313", + "S314", + "S315", + "S316", + "S317", + "S318", + "S319", + "S32", + "S321", + "S323", + "S324", + "S4", + "S40", + "S401", + "S402", + "S403", + "S404", + "S405", + "S406", + "S407", + "S408", + "S409", + "S41", + "S411", + "S412", + "S413", + "S415", + "S5", + "S50", + "S501", + "S502", + "S503", + "S504", + "S505", + "S506", + "S507", + "S508", + "S509", + "S6", + "S60", + "S601", + "S602", + "S603", + "S604", + "S605", + "S606", + "S607", + "S608", + "S609", + "S61", + "S610", + "S611", + "S612", + "S7", + "S70", + "S701", + "S702", + "S704", + "SIM", + "SIM1", + "SIM10", + "SIM101", + "SIM102", + "SIM103", + "SIM105", + "SIM107", + "SIM108", + "SIM109", + "SIM11", + "SIM110", + "SIM112", + "SIM113", + "SIM114", + "SIM115", + "SIM116", + "SIM117", + "SIM118", + "SIM2", + "SIM20", + "SIM201", + "SIM202", + "SIM208", + "SIM21", + "SIM210", + "SIM211", + "SIM212", + "SIM22", + "SIM220", + "SIM221", + "SIM222", + "SIM223", + "SIM3", + "SIM30", + "SIM300", + "SIM4", + "SIM40", + "SIM401", + "SIM9", + "SIM90", + "SIM905", + "SIM91", + "SIM910", + "SIM911", + "SLF", + "SLF0", + "SLF00", + "SLF001", + "SLOT", + "SLOT0", + "SLOT00", + "SLOT000", + "SLOT001", + "SLOT002", + "T", + "T1", + "T10", + "T100", + "T2", + "T20", + "T201", + "T203", + "TC", + "TC0", + "TC00", + "TC001", + "TC002", + "TC003", + "TC004", + "TC005", + "TC006", + "TC007", + "TC008", + "TC01", + "TC010", + "TD", + "TD0", + "TD00", + "TD001", + "TD002", + "TD003", + "TD004", + "TD005", + "TD006", + "TD007", + "TID", + "TID2", + "TID25", + "TID251", + "TID252", + "TID253", + "TID254", + "TID255", + "TRY", + "TRY0", + "TRY00", + "TRY002", + "TRY003", + "TRY004", + "TRY2", + "TRY20", + "TRY201", + "TRY203", + "TRY3", + "TRY30", + "TRY300", + "TRY301", + "TRY4", + "TRY40", + "TRY400", + "TRY401", + "UP", + "UP0", + "UP00", + "UP001", + "UP003", + "UP004", + "UP005", + "UP006", + "UP007", + "UP008", + "UP009", + "UP01", + "UP010", + "UP011", + "UP012", + "UP013", + "UP014", + "UP015", + "UP017", + "UP018", + "UP019", + "UP02", + "UP020", + "UP021", + "UP022", + "UP023", + "UP024", + "UP025", + "UP026", + "UP028", + "UP029", + "UP03", + "UP030", + "UP031", + "UP032", + "UP033", + "UP034", + "UP035", + "UP036", + "UP037", + "UP039", + "UP04", + "UP040", + "UP041", + "UP042", + "UP043", + "UP044", + "UP045", + "UP046", + "UP047", + "UP049", + "UP05", + "UP050", + "UP051", + "W", + "W1", + "W19", + "W191", + "W2", + "W29", + "W291", + "W292", + "W293", + "W3", + "W39", + "W391", + "W5", + "W50", + "W505", + "W6", + "W60", + "W605", + "YTT", + "YTT1", + "YTT10", + "YTT101", + "YTT102", + "YTT103", + "YTT2", + "YTT20", + "YTT201", + "YTT202", + "YTT203", + "YTT204", + "YTT3", + "YTT30", + "YTT301", + "YTT302", + "YTT303", + "abstract-base-class-without-abstract-method", + "access-annotations-from-class-dict", + "airflow-dag-no-schedule-argument", + "airflow-task-branch-as-short-circuit", + "airflow-task-implicit-multiple-outputs", + "airflow-variable-get-outside-task", + "airflow-variable-name-task-id-mismatch", + "airflow-xcom-pull-in-template-string", + "airflow3-dag-dynamic-value", + "airflow3-incompatible-function-signature", + "airflow3-moved-to-provider", + "airflow3-removal", + "airflow3-suggested-to-move-to-provider", + "airflow3-suggested-update", + "airflow31-moved", + "ambiguous-class-name", + "ambiguous-function-name", + "ambiguous-unicode-character-comment", + "ambiguous-unicode-character-docstring", + "ambiguous-unicode-character-string", + "ambiguous-variable-name", + "any-eq-ne-annotation", + "any-type", + "argument-default-in-stub", + "assert", + "assert-false", + "assert-on-string-literal", + "assert-raises-exception", + "assert-tuple", + "assert-with-print-message", + "assignment-default-in-stub", + "assignment-in-assert", + "assignment-to-os-environ", + "async-busy-wait", + "async-function-with-timeout", + "async-zero-sleep", + "asyncio-dangling-task", + "avoidable-escaped-quote", + "await-outside-async", + "bad-dunder-method-name", + "bad-exit-annotation", + "bad-file-permissions", + "bad-open-mode", + "bad-quotes-docstring", + "bad-quotes-inline-string", + "bad-quotes-multiline-string", + "bad-staticmethod-argument", + "bad-str-strip-call", + "bad-string-format-character", + "bad-string-format-type", + "bad-version-info-comparison", + "bad-version-info-order", + "banned-api", + "banned-import-alias", + "banned-import-from", + "banned-module-level-imports", + "bare-except", + "batched-without-explicit-strict", + "bidirectional-unicode", + "binary-op-exception", + "bit-count", + "blank-line-after-decorator", + "blank-line-after-function", + "blank-line-before-class", + "blank-line-before-function", + "blank-line-between-methods", + "blank-line-with-whitespace", + "blank-lines-after-function-or-class", + "blank-lines-before-nested-definition", + "blank-lines-between-header-and-content", + "blank-lines-top-level", + "blanket-noqa", + "blanket-type-ignore", + "blind-except", + "blocking-http-call-httpx-in-async-function", + "blocking-http-call-in-async-function", + "blocking-input-in-async-function", + "blocking-open-call-in-async-function", + "blocking-path-method-in-async-function", + "blocking-sleep-in-async-function", + "boolean-chained-comparison", + "boolean-default-value-positional-argument", + "boolean-positional-value-in-call", + "boolean-type-hint-positional-argument", + "break-outside-loop", + "builtin-argument-shadowing", + "builtin-attribute-shadowing", + "builtin-import-shadowing", + "builtin-lambda-argument-shadowing", + "builtin-open", + "builtin-variable-shadowing", + "byte-string-usage", + "cached-instance-method", + "call-date-fromtimestamp", + "call-date-today", + "call-datetime-fromtimestamp", + "call-datetime-now-without-tzinfo", + "call-datetime-strptime-without-zone", + "call-datetime-today", + "call-datetime-utcfromtimestamp", + "call-datetime-utcnow", + "call-datetime-without-tzinfo", + "call-with-shell-equals-true", + "camelcase-imported-as-acronym", + "camelcase-imported-as-constant", + "camelcase-imported-as-lowercase", + "cancel-scope-no-checkpoint", + "check-and-remove-from-set", + "class-as-data-structure", + "class-with-mixed-type-vars", + "collapsible-else-if", + "collapsible-if", + "collection-literal-concatenation", + "collections-named-tuple", + "commented-out-code", + "compare-to-empty-string", + "compare-with-tuple", + "comparison-of-constant", + "comparison-with-itself", + "complex-assignment-in-stub", + "complex-if-statement-in-stub", + "complex-structure", + "constant-imported-as-non-constant", + "continue-in-finally", + "continue-outside-loop", + "convert-named-tuple-functional-to-class", + "convert-typed-dict-functional-to-class", + "create-subprocess-in-async-function", + "custom-type-var-for-self", + "dataclass-enum", + "datetime-min-max", + "datetime-timezone-utc", + "debugger", + "decimal-from-float-literal", + "default-except-not-last", + "default-factory-kwarg", + "del-attr-with-constant", + "delete-full-slice", + "deprecated-abc-decorator", + "deprecated-c-element-tree", + "deprecated-import", + "deprecated-mock-import", + "deprecated-unittest-alias", + "dict-get-with-none-default", + "dict-index-missing-items", + "dict-iter-missing-items", + "direct-logger-instantiation", + "django-all-with-model-form", + "django-exclude-with-model-form", + "django-extra", + "django-locals-in-render-function", + "django-model-without-dunder-str", + "django-non-leading-receiver-decorator", + "django-nullable-model-string-field", + "django-raw-sql", + "django-unordered-body-content-in-model", + "doc-line-too-long", + "docstring-extraneous-exception", + "docstring-extraneous-parameter", + "docstring-extraneous-returns", + "docstring-extraneous-yields", + "docstring-in-stub", + "docstring-missing-exception", + "docstring-missing-returns", + "docstring-missing-yields", + "docstring-starts-with-this", + "docstring-tab-indentation", + "dot-format-in-exception", + "double-negation", + "dunder-function-name", + "duplicate-bases", + "duplicate-class-field-definition", + "duplicate-entry-in-dunder-all", + "duplicate-handler-exception", + "duplicate-isinstance-call", + "duplicate-literal-member", + "duplicate-try-block-exception", + "duplicate-union-member", + "duplicate-value", + "ellipsis-in-non-empty-class-body", + "empty-comment", + "empty-docstring", + "empty-docstring-section", + "empty-method-without-abstract-decorator", + "empty-type-checking-block", + "enumerate-for-loop", + "eq-without-hash", + "error-instead-of-exception", + "error-suffix-on-exception-name", + "escape-sequence-in-docstring", + "exc-info-outside-except-handler", + "except-with-empty-tuple", + "except-with-non-exception-classes", + "exception-without-exc-info", + "exec-builtin", + "explicit-f-string-type-conversion", + "explicit-string-concatenation", + "expr-and-false", + "expr-and-not-expr", + "expr-or-not-expr", + "expr-or-true", + "expressions-in-star-assignment", + "extraneous-parentheses", + "f-string", + "f-string-docstring", + "f-string-in-exception", + "f-string-in-get-text-func-call", + "f-string-missing-placeholders", + "f-string-number-format", + "f-string-percent-format", + "fallible-context-manager", + "falsy-dict-get-fallback", + "fast-api-non-annotated-dependency", + "fast-api-redundant-response-model", + "fast-api-unused-path-parameter", + "first-word-uncapitalized", + "flask-debug-true", + "float-equality-comparison", + "for-loop-set-mutations", + "for-loop-writes", + "format-in-get-text-func-call", + "format-literals", + "forward-annotation-syntax-error", + "fromisoformat-replace-z", + "function-call-in-dataclass-default-argument", + "function-call-in-default-argument", + "function-uses-loop-variable", + "future-annotations-in-stub", + "future-feature-not-defined", + "future-required-type-annotation", + "future-rewritable-type-annotation", + "generator-return-from-iter-method", + "generic-not-last-base-class", + "get-attr-with-constant", + "glob", + "global-at-module-level", + "global-statement", + "global-variable-not-assigned", + "hardcoded-bind-all-interfaces", + "hardcoded-password-default", + "hardcoded-password-func-arg", + "hardcoded-password-string", + "hardcoded-sql-expression", + "hardcoded-string-charset", + "hardcoded-temp-file", + "hashlib-digest-hex", + "hashlib-insecure-hash-function", + "if-else-block-instead-of-dict-get", + "if-else-block-instead-of-dict-lookup", + "if-else-block-instead-of-if-exp", + "if-exp-instead-of-or-operator", + "if-expr-min-max", + "if-expr-with-false-true", + "if-expr-with-true-false", + "if-expr-with-twisted-arms", + "if-key-in-dict-del", + "if-stmt-min-max", + "if-tuple", + "if-with-same-arms", + "implicit-class-var-in-dataclass", + "implicit-cwd", + "implicit-namespace-package", + "implicit-optional", + "implicit-return", + "implicit-return-value", + "implicit-string-concatenation-in-collection-literal", + "import-outside-top-level", + "import-private-name", + "import-self", + "import-shadowed-by-loop-var", + "in-dict-keys", + "in-empty-collection", + "incorrect-blank-line-after-class", + "incorrect-blank-line-before-class", + "incorrect-decorator-order", + "incorrect-dict-iterator", + "incorrect-section-order", + "incorrectly-parenthesized-tuple-in-subscript", + "indentation-with-invalid-multiple", + "indentation-with-invalid-multiple-comment", + "indented-form-feed", + "int-on-sliced-str", + "invalid-all-format", + "invalid-all-object", + "invalid-argument-name", + "invalid-assert-message-literal-argument", + "invalid-bool-return-type", + "invalid-bytes-return-type", + "invalid-character-backspace", + "invalid-character-esc", + "invalid-character-nul", + "invalid-character-sub", + "invalid-character-zero-width-space", + "invalid-class-name", + "invalid-envvar-default", + "invalid-envvar-value", + "invalid-escape-sequence", + "invalid-first-argument-name-for-class-method", + "invalid-first-argument-name-for-method", + "invalid-formatter-suppression-comment", + "invalid-function-name", + "invalid-get-logger-argument", + "invalid-hash-return-type", + "invalid-index-return-type", + "invalid-index-type", + "invalid-length-return-type", + "invalid-mock-access", + "invalid-module-name", + "invalid-pathlib-with-suffix", + "invalid-print-syntax", + "invalid-pyproject-toml", + "invalid-rule-code", + "invalid-str-return-type", + "invalid-suppression-comment", + "invalid-todo-capitalization", + "invalid-todo-tag", + "io-error", + "is-literal", + "isinstance-type-none", + "iter-method-return-iterable", + "iteration-over-set", + "jinja2-autoescape-false", + "jump-statement-in-finally", + "lambda-assignment", + "late-future-import", + "lazy-import-immediately-resolved", + "lazy-import-mismatch", + "legacy-form-pytest-raises", + "legacy-type-comment", + "len-test", + "line-contains-fixme", + "line-contains-hack", + "line-contains-todo", + "line-contains-xxx", + "line-too-long", + "list-reverse-copy", + "literal-membership", + "load-before-global-declaration", + "log-exception-outside-except-handler", + "logging-config-insecure-listen", + "logging-eager-conversion", + "logging-exc-info", + "logging-extra-attr-clash", + "logging-f-string", + "logging-percent-format", + "logging-redundant-exc-info", + "logging-string-concat", + "logging-string-format", + "logging-too-few-args", + "logging-too-many-args", + "logging-warn", + "long-sleep-not-forever", + "loop-iterator-mutation", + "loop-variable-overrides-iterator", + "lowercase-imported-as-non-lowercase", + "lru-cache-with-maxsize-none", + "lru-cache-without-parameters", + "magic-value-comparison", + "mako-templates", + "manual-dict-comprehension", + "manual-from-import", + "manual-list-comprehension", + "manual-list-copy", + "map-int-version-parsing", + "map-without-explicit-strict", + "math-constant", + "meta-class-abc-meta", + "mismatched-section-underline-length", + "misplaced-bare-raise", + "missing-blank-line-after-last-section", + "missing-blank-line-after-summary", + "missing-copyright-notice", + "missing-dashed-underline-after-section", + "missing-f-string-syntax", + "missing-maxsplit-arg", + "missing-new-line-after-section-name", + "missing-newline-at-end-of-file", + "missing-required-import", + "missing-return-type-class-method", + "missing-return-type-private-function", + "missing-return-type-special-method", + "missing-return-type-static-method", + "missing-return-type-undocumented-public-function", + "missing-section-name-colon", + "missing-section-underline-after-name", + "missing-space-after-todo-colon", + "missing-terminal-punctuation", + "missing-todo-author", + "missing-todo-colon", + "missing-todo-description", + "missing-todo-link", + "missing-trailing-comma", + "missing-trailing-period", + "missing-type-args", + "missing-type-function-argument", + "missing-type-kwargs", + "missing-whitespace", + "missing-whitespace-after-keyword", + "missing-whitespace-around-arithmetic-operator", + "missing-whitespace-around-bitwise-or-shift-operator", + "missing-whitespace-around-modulo-operator", + "missing-whitespace-around-operator", + "missing-whitespace-around-parameter-equals", + "mixed-case-variable-in-class-scope", + "mixed-case-variable-in-global-scope", + "mixed-spaces-and-tabs", + "modified-iterating-set", + "module-import-not-at-top-of-file", + "multi-line-implicit-string-concatenation", + "multi-line-summary-first-line", + "multi-line-summary-second-line", + "multi-value-repeated-key-literal", + "multi-value-repeated-key-variable", + "multiple-imports-on-one-line", + "multiple-leading-hashes-for-block-comment", + "multiple-spaces-after-comma", + "multiple-spaces-after-keyword", + "multiple-spaces-after-operator", + "multiple-spaces-before-keyword", + "multiple-spaces-before-operator", + "multiple-starred-expressions", + "multiple-starts-ends-with", + "multiple-statements-on-one-line-colon", + "multiple-statements-on-one-line-semicolon", + "multiple-with-statements", + "mutable-argument-default", + "mutable-class-default", + "mutable-contextvar-default", + "mutable-dataclass-default", + "mutable-fromkeys-value", + "named-expr-without-context", + "nan-comparison", + "native-literals", + "needless-bool", + "needless-else", + "negate-equal-op", + "negate-not-equal-op", + "nested-min-max", + "never-union", + "new-line-after-last-paragraph", + "no-blank-line-after-section", + "no-blank-line-before-section", + "no-classmethod-decorator", + "no-explicit-stacklevel", + "no-indented-block", + "no-indented-block-comment", + "no-return-argument-annotation-in-stub", + "no-self-use", + "no-slots-in-namedtuple-subclass", + "no-slots-in-str-subclass", + "no-slots-in-tuple-subclass", + "no-space-after-block-comment", + "no-space-after-inline-comment", + "no-staticmethod-decorator", + "non-ascii-import-name", + "non-ascii-name", + "non-augmented-assignment", + "non-capitalized-section-name", + "non-empty-init-module", + "non-empty-stub-body", + "non-imperative-mood", + "non-lowercase-variable-in-function", + "non-octal-permissions", + "non-pep585-annotation", + "non-pep604-annotation-optional", + "non-pep604-annotation-union", + "non-pep646-unpack", + "non-pep695-generic-class", + "non-pep695-generic-function", + "non-pep695-type-alias", + "non-self-return-type", + "non-slot-assignment", + "non-unique-enums", + "none-comparison", + "none-not-at-end-of-union", + "nonlocal-and-global", + "nonlocal-without-binding", + "noqa-comments", + "not-in-test", + "not-is-test", + "numeric-literal-too-long", + "numpy-deprecated-function", + "numpy-deprecated-type-alias", + "numpy-legacy-random", + "numpy2-deprecation", + "open-alias", + "open-file-with-context-handler", + "os-chmod", + "os-error-alias", + "os-getcwd", + "os-listdir", + "os-makedirs", + "os-mkdir", + "os-path-abspath", + "os-path-basename", + "os-path-commonprefix", + "os-path-dirname", + "os-path-exists", + "os-path-expanduser", + "os-path-getatime", + "os-path-getctime", + "os-path-getmtime", + "os-path-getsize", + "os-path-isabs", + "os-path-isdir", + "os-path-isfile", + "os-path-islink", + "os-path-join", + "os-path-samefile", + "os-path-splitext", + "os-readlink", + "os-remove", + "os-rename", + "os-replace", + "os-rmdir", + "os-sep-split", + "os-stat", + "os-symlink", + "os-unlink", + "outdated-version-block", + "over-indentation", + "over-indented", + "overindented-section", + "overindented-section-underline", + "overload-with-docstring", + "p-print", + "pandas-nunique-constant-series-check", + "pandas-use-of-dot-at", + "pandas-use-of-dot-iat", + "pandas-use-of-dot-is-null", + "pandas-use-of-dot-ix", + "pandas-use-of-dot-not-null", + "pandas-use-of-dot-pivot-or-unstack", + "pandas-use-of-dot-read-table", + "pandas-use-of-dot-stack", + "pandas-use-of-dot-values", + "pandas-use-of-inplace-argument", + "pandas-use-of-pd-merge", + "paramiko-call", + "parenthesize-chained-operators", + "pass-in-class-body", + "pass-statement-stub-body", + "patch-version-comparison", + "path-constructor-current-directory", + "pep484-style-positional-only-parameter", + "percent-format-expected-mapping", + "percent-format-expected-sequence", + "percent-format-extra-named-arguments", + "percent-format-invalid-format", + "percent-format-missing-argument", + "percent-format-mixed-positional-and-named", + "percent-format-positional-count-mismatch", + "percent-format-star-requires-sequence", + "percent-format-unsupported-format-character", + "post-init-default", + "potential-index-error", + "print", + "print-empty-string", + "printf-in-get-text-func-call", + "printf-string-formatting", + "private-member-access", + "private-type-parameter", + "prohibited-trailing-comma", + "property-docstring-starts-with-verb", + "property-with-parameters", + "property-without-return", + "py-path", + "pytest-assert-always-false", + "pytest-assert-in-except", + "pytest-composite-assertion", + "pytest-deprecated-yield-fixture", + "pytest-duplicate-parametrize-test-cases", + "pytest-erroneous-use-fixtures-on-fixture", + "pytest-extraneous-scope-function", + "pytest-fail-without-message", + "pytest-fixture-finalizer-callback", + "pytest-fixture-incorrect-parentheses-style", + "pytest-fixture-param-without-value", + "pytest-fixture-positional-args", + "pytest-incorrect-mark-parentheses-style", + "pytest-incorrect-pytest-import", + "pytest-parameter-with-default-argument", + "pytest-parametrize-names-wrong-type", + "pytest-parametrize-values-wrong-type", + "pytest-patch-with-lambda", + "pytest-raises-ambiguous-pattern", + "pytest-raises-too-broad", + "pytest-raises-with-multiple-statements", + "pytest-raises-without-exception", + "pytest-unittest-assertion", + "pytest-unittest-raises-assertion", + "pytest-unnecessary-asyncio-mark-on-fixture", + "pytest-use-fixtures-without-parameters", + "pytest-useless-yield-fixture", + "pytest-warns-too-broad", + "pytest-warns-with-multiple-statements", + "pytest-warns-without-warning", + "quadratic-list-summation", + "quoted-annotation", + "quoted-annotation-in-stub", + "quoted-type-alias", + "raise-literal", + "raise-not-implemented", + "raise-vanilla-args", + "raise-vanilla-class", + "raise-within-try", + "raise-without-from-inside-except", + "raw-string-in-exception", + "re-sub-positional-args", + "read-whole-file", + "readlines-in-for", + "redeclared-assigned-name", + "redefined-argument-from-local", + "redefined-loop-name", + "redefined-slots-in-subclass", + "redefined-while-unused", + "redirected-noqa", + "redundant-backslash", + "redundant-bool-literal", + "redundant-final-literal", + "redundant-literal-union", + "redundant-log-base", + "redundant-none-literal", + "redundant-numeric-union", + "redundant-open-modes", + "redundant-tuple-in-exception-handler", + "regex-flag-alias", + "reimplemented-builtin", + "reimplemented-container-builtin", + "reimplemented-operator", + "reimplemented-starmap", + "relative-imports", + "repeated-append", + "repeated-equality-comparison", + "repeated-global", + "repeated-keyword-argument", + "replace-stdout-stderr", + "replace-str-enum", + "replace-universal-newlines", + "request-with-no-cert-validation", + "request-without-timeout", + "return-in-generator", + "return-in-init", + "return-in-try-except-finally", + "return-outside-function", + "reuse-of-groupby-generator", + "root-logger-call", + "rule-codes-in-selectors", + "rule-codes-in-suppression-comments", + "run-process-in-async-function", + "runtime-cast-value", + "runtime-import-in-type-checking-block", + "runtime-string-union", + "self-assigning-variable", + "self-or-cls-assignment", + "set-attr-with-constant", + "shallow-copy-environ", + "shebang-leading-whitespace", + "shebang-missing-executable-file", + "shebang-missing-python", + "shebang-not-executable", + "shebang-not-first-line", + "signature-in-docstring", + "single-item-membership-test", + "single-line-implicit-string-concatenation", + "single-string-slots", + "singledispatch-method", + "singledispatchmethod-function", + "six-py3", + "slice-copy", + "slice-to-remove-prefix-or-suffix", + "snake-case-type-alias", + "snmp-insecure-version", + "snmp-weak-cryptography", + "sorted-min-max", + "split-static-string", + "ssh-no-host-key-verification", + "ssl-insecure-version", + "ssl-with-bad-defaults", + "ssl-with-no-version", + "star-arg-unpacking-after-keyword-arg", + "starmap-zip", + "start-process-with-a-shell", + "start-process-with-no-shell", + "start-process-with-partial-path", + "static-join-to-f-string", + "static-key-dict-comprehension", + "stdlib-module-shadowing", + "stop-iteration-return", + "str-or-repr-defined-in-stub", + "string-dot-format-extra-named-arguments", + "string-dot-format-extra-positional-arguments", + "string-dot-format-invalid-format", + "string-dot-format-missing-arguments", + "string-dot-format-mixing-automatic", + "string-or-bytes-too-long", + "strip-with-multi-characters", + "stub-body-multiple-statements", + "subclass-builtin", + "subprocess-popen-preexec-fn", + "subprocess-popen-with-shell-equals-true", + "subprocess-run-without-check", + "subprocess-without-shell-equals-true", + "super-call-with-parameters", + "super-without-brackets", + "superfluous-else-break", + "superfluous-else-continue", + "superfluous-else-raise", + "superfluous-else-return", + "suppressible-exception", + "surrounding-whitespace", + "suspicious-eval-usage", + "suspicious-ftp-lib-usage", + "suspicious-ftplib-import", + "suspicious-httpoxy-import", + "suspicious-insecure-cipher-mode-usage", + "suspicious-insecure-cipher-usage", + "suspicious-insecure-hash-usage", + "suspicious-mark-safe-usage", + "suspicious-marshal-usage", + "suspicious-mktemp-usage", + "suspicious-non-cryptographic-random-usage", + "suspicious-pickle-import", + "suspicious-pickle-usage", + "suspicious-pycrypto-import", + "suspicious-pyghmi-import", + "suspicious-subprocess-import", + "suspicious-telnet-usage", + "suspicious-telnetlib-import", + "suspicious-unverified-context-usage", + "suspicious-url-open-usage", + "suspicious-xml-element-tree-usage", + "suspicious-xml-etree-import", + "suspicious-xml-expat-builder-usage", + "suspicious-xml-expat-import", + "suspicious-xml-expat-reader-usage", + "suspicious-xml-mini-dom-usage", + "suspicious-xml-minidom-import", + "suspicious-xml-pull-dom-usage", + "suspicious-xml-pulldom-import", + "suspicious-xml-sax-import", + "suspicious-xml-sax-usage", + "suspicious-xmlc-element-tree-usage", + "suspicious-xmlrpc-import", + "swap-with-temporary-variable", + "sys-exit-alias", + "sys-version-cmp-str10", + "sys-version-cmp-str3", + "sys-version-info-minor-cmp-int", + "sys-version-info0-eq3", + "sys-version-info1-cmp-int", + "sys-version-slice1", + "sys-version-slice3", + "sys-version0", + "sys-version2", + "t-suffixed-type-alias", + "tab-after-comma", + "tab-after-keyword", + "tab-after-operator", + "tab-before-keyword", + "tab-before-operator", + "tab-indentation", + "tarfile-unsafe-members", + "timeout-error-alias", + "too-few-spaces-before-inline-comment", + "too-many-arguments", + "too-many-blank-lines", + "too-many-boolean-expressions", + "too-many-branches", + "too-many-locals", + "too-many-nested-blocks", + "too-many-newlines-at-end-of-file", + "too-many-positional-arguments", + "too-many-public-methods", + "too-many-return-statements", + "too-many-statements", + "too-many-statements-in-try-clause", + "trailing-comma-on-bare-tuple", + "trailing-whitespace", + "trio-sync-call", + "triple-single-quotes", + "true-false-comparison", + "try-consider-else", + "try-except-continue", + "try-except-in-loop", + "try-except-pass", + "type-alias-without-annotation", + "type-bivariance", + "type-check-without-type-error", + "type-comparison", + "type-name-incorrect-variance", + "type-none-comparison", + "type-of-primitive", + "type-param-name-mismatch", + "typed-argument-default-in-stub", + "typing-only-first-party-import", + "typing-only-standard-library-import", + "typing-only-third-party-import", + "typing-text-str-alias", + "unaliased-collections-abc-set-import", + "unannotated-assignment-in-stub", + "unary-prefix-increment-decrement", + "unassigned-special-variable-in-stub", + "uncapitalized-environment-variables", + "unconventional-import-alias", + "undefined-export", + "undefined-local", + "undefined-local-with-import-star", + "undefined-local-with-import-star-usage", + "undefined-local-with-nested-import-star-usage", + "undefined-name", + "under-indentation", + "undocumented-magic-method", + "undocumented-param", + "undocumented-public-class", + "undocumented-public-function", + "undocumented-public-init", + "undocumented-public-method", + "undocumented-public-module", + "undocumented-public-nested-class", + "undocumented-public-package", + "undocumented-warn", + "unexpected-indentation", + "unexpected-indentation-comment", + "unexpected-spaces-around-keyword-parameter-equals", + "unexpected-special-method-signature", + "unicode-kind-prefix", + "unintentional-type-annotation", + "unix-command-wildcard-injection", + "unmatched-suppression-comment", + "unnecessary-assign", + "unnecessary-assign-before-yield", + "unnecessary-builtin-import", + "unnecessary-call-around-sorted", + "unnecessary-cast-to-int", + "unnecessary-class-parentheses", + "unnecessary-collection-call", + "unnecessary-comprehension", + "unnecessary-comprehension-in-call", + "unnecessary-default-type-args", + "unnecessary-dict-comprehension-for-iterable", + "unnecessary-dict-index-lookup", + "unnecessary-dict-kwargs", + "unnecessary-direct-lambda-call", + "unnecessary-double-cast-or-process", + "unnecessary-dunder-call", + "unnecessary-empty-iterable-within-deque-call", + "unnecessary-encode-utf8", + "unnecessary-enumerate", + "unnecessary-escaped-quote", + "unnecessary-from-float", + "unnecessary-future-import", + "unnecessary-generator-dict", + "unnecessary-generator-list", + "unnecessary-generator-set", + "unnecessary-if", + "unnecessary-iterable-allocation-for-first-element", + "unnecessary-key-check", + "unnecessary-lambda", + "unnecessary-list-call", + "unnecessary-list-cast", + "unnecessary-list-comprehension-dict", + "unnecessary-list-comprehension-set", + "unnecessary-list-index-lookup", + "unnecessary-literal-dict", + "unnecessary-literal-set", + "unnecessary-literal-union", + "unnecessary-literal-within-dict-call", + "unnecessary-literal-within-list-call", + "unnecessary-literal-within-tuple-call", + "unnecessary-map", + "unnecessary-multiline-docstring", + "unnecessary-nested-literal", + "unnecessary-paren-on-raise-exception", + "unnecessary-placeholder", + "unnecessary-range-start", + "unnecessary-regular-expression", + "unnecessary-return-none", + "unnecessary-round", + "unnecessary-spread", + "unnecessary-subscript-reversal", + "unnecessary-type-union", + "unprefixed-type-param", + "unquoted-type-alias", + "unraw-re-pattern", + "unrecognized-platform-check", + "unrecognized-platform-name", + "unrecognized-version-info-check", + "unreliable-callable-check", + "unsafe-markup-use", + "unsafe-yaml-load", + "unsorted-dunder-all", + "unsorted-dunder-slots", + "unsorted-imports", + "unspecified-encoding", + "unsupported-method-call-on-all", + "unused-annotation", + "unused-async", + "unused-class-method-argument", + "unused-function-argument", + "unused-import", + "unused-lambda-argument", + "unused-loop-control-variable", + "unused-method-argument", + "unused-noqa", + "unused-private-protocol", + "unused-private-type-alias", + "unused-private-type-var", + "unused-private-typed-dict", + "unused-static-method-argument", + "unused-unpacked-variable", + "unused-variable", + "used-dummy-variable", + "useless-class-metaclass-type", + "useless-comparison", + "useless-contextlib-suppress", + "useless-else-on-loop", + "useless-exception-statement", + "useless-expression", + "useless-finally", + "useless-if-else", + "useless-import-alias", + "useless-metaclass-type", + "useless-object-inheritance", + "useless-return", + "useless-semicolon", + "useless-try-except", + "useless-with-lock", + "utf8-encoding-declaration", + "verbose-decimal-constructor", + "verbose-log-message", + "verbose-raise", + "wait-for-process-in-async-function", + "weak-cryptographic-key", + "whitespace-after-decorator", + "whitespace-after-open-bracket", + "whitespace-before-close-bracket", + "whitespace-before-parameters", + "whitespace-before-punctuation", + "write-whole-file", + "wrong-tuple-length-version-comparison", + "yield-from-in-async-function", + "yield-in-context-manager-in-async-generator", + "yield-in-for-loop", + "yield-in-init", + "yield-outside-function", + "yoda-conditions", + "zip-dict-keys-and-values", + "zip-instead-of-pairwise", + "zip-without-explicit-strict" + ] + }, + "Strictness": { + "oneOf": [ + { + "description": "Ban imports that extend into the parent module or beyond.", + "type": "string", + "const": "parents" + }, + { + "description": "Ban all relative imports.", + "type": "string", + "const": "all" + } + ] + } + } +} diff --git a/.schemas/tombi.json b/.schemas/tombi.json new file mode 100644 index 0000000..cd3dad3 --- /dev/null +++ b/.schemas/tombi.json @@ -0,0 +1,2504 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://www.schemastore.org/tombi.json", + "title": "Tombi", + "description": "**Tombi** (鳶 `/toɴbi/`) is a toolkit for TOML; providing a formatter/linter and language server.\nSee the [GitHub repository](https://github.com/tombi-toml/tombi) for more information.", + "type": "object", + "properties": { + "toml-version": { + "title": "TOML version", + "description": "TOML version to use if not specified in the schema and comment directive.", + "anyOf": [ + { + "$ref": "#/definitions/TomlVersion" + }, + { + "type": "null" + } + ], + "default": "v1.0.0" + }, + "files": { + "anyOf": [ + { + "$ref": "#/definitions/FilesOptions" + }, + { + "type": "null" + } + ] + }, + "format": { + "anyOf": [ + { + "$ref": "#/definitions/FormatOptions" + }, + { + "type": "null" + } + ] + }, + "lint": { + "anyOf": [ + { + "$ref": "#/definitions/LintOptions" + }, + { + "type": "null" + } + ] + }, + "lsp": { + "anyOf": [ + { + "$ref": "#/definitions/LspOptions" + }, + { + "type": "null" + } + ] + }, + "schema": { + "anyOf": [ + { + "$ref": "#/definitions/SchemaOverviewOptions" + }, + { + "type": "null" + } + ] + }, + "schemas": { + "title": "Schema items", + "type": ["array", "null"], + "items": { + "$ref": "#/definitions/SchemaItem" + } + }, + "overrides": { + "title": "Override config items", + "type": ["array", "null"], + "items": { + "$ref": "#/definitions/OverrideItem" + } + }, + "extensions": { + "anyOf": [ + { + "$ref": "#/definitions/Extensions" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-toml-version": "v1.1.0", + "x-tombi-table-keys-order": "schema", + "definitions": { + "TomlVersion": { + "title": "TOML version", + "oneOf": [ + { + "type": "string", + "enum": ["v1.0.0", "v1.1.0"] + }, + { + "type": "string", + "const": "v1.1.0-preview", + "deprecated": true + } + ] + }, + "FilesOptions": { + "title": "Files options", + "type": "object", + "properties": { + "include": { + "title": "File patterns to include", + "description": "The file match pattern to include in formatting and linting.\nSupports glob pattern.", + "type": ["array", "null"], + "items": { + "type": "string" + }, + "minItems": 1, + "default": ["**/*.toml"] + }, + "exclude": { + "title": "File patterns to exclude", + "description": "The file match pattern to exclude from formatting and linting.\nSupports glob pattern.", + "type": ["array", "null"], + "items": { + "type": "string" + }, + "minItems": 1 + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "schema" + }, + "FormatOptions": { + "title": "Formatter options", + "type": "object", + "properties": { + "rules": { + "title": "Format rules", + "anyOf": [ + { + "$ref": "#/definitions/FormatRules" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "ascending" + }, + "FormatRules": { + "type": "object", + "properties": { + "array-bracket-space-width": { + "title": "The number of spaces inside the brackets of a single line array.", + "description": "```toml\nkey = [ 1, 2, 3 ]\n# ^ ^ <- this\n```", + "anyOf": [ + { + "$ref": "#/definitions/ArrayBracketSpaceWidth" + }, + { + "type": "null" + } + ], + "default": 0 + }, + "array-comma-space-width": { + "title": "The number of spaces after the comma in a single line array.", + "description": "```toml\nkey = [ 1, 2, 3 ]\n# ^ ^ <- this\n```", + "anyOf": [ + { + "$ref": "#/definitions/ArrayCommaSpaceWidth" + }, + { + "type": "null" + } + ], + "default": 1 + }, + "date-time-delimiter": { + "title": "The delimiter between date and time", + "description": "In accordance with [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339), you can use `T` or space character between date and time.\n\n- `T`: Use `T` between date and time like `2001-01-01T00:00:00`\n- `space`: Use space between date and time like `2001-01-01 00:00:00`\n- `preserve`: Preserve the original delimiter.", + "anyOf": [ + { + "$ref": "#/definitions/DateTimeDelimiter" + }, + { + "type": "null" + } + ], + "default": "T" + }, + "indent-style": { + "title": "The style of indentation", + "description": "Whether to use spaces or tabs for indentation.\n\n- `space`: Use spaces for indentation.\n- `tab`: Use tabs for indentation.", + "anyOf": [ + { + "$ref": "#/definitions/IndentStyle" + }, + { + "type": "null" + } + ], + "default": "space" + }, + "indent-sub-tables": { + "title": "Whether to indent the sub-tables", + "description": "If `true`, the sub-table will be indented.\n\n```toml\n[table]\n [table.sub-table]\n key = \"value\"\n# ^^ <- this\n```", + "type": ["boolean", "null"], + "default": false + }, + "indent-table-key-value-pairs": { + "title": "Whether to indent the table key-value pairs", + "description": "If `true`, the table key-value pairs will be indented.\n\n```toml\n[table]\n key = \"value\"\n# ^^ <- this\n```", + "type": ["boolean", "null"], + "default": false + }, + "indent-width": { + "title": "The number of spaces per indentation level", + "description": "⚠️ **WARNING** ⚠️\\\nThis option is only used when the indentation style is `space`.", + "anyOf": [ + { + "$ref": "#/definitions/IndentWidth" + }, + { + "type": "null" + } + ], + "default": 2 + }, + "inline-table-brace-space-width": { + "title": "The number of spaces inside the brackets of a single line inline table.", + "description": "```toml\nkey = { a = 1, b = 2 }\n# ^ ^ <- this\n```", + "anyOf": [ + { + "$ref": "#/definitions/InlineTableBraceSpaceWidth" + }, + { + "type": "null" + } + ], + "default": 1 + }, + "inline-table-comma-space-width": { + "title": "The number of spaces after the comma in a single line inline table.", + "description": "```toml\nkey = { a = 1, b = 2 }\n# ^ <- this\n```", + "anyOf": [ + { + "$ref": "#/definitions/InlineTableCommaSpaceWidth" + }, + { + "type": "null" + } + ], + "default": 1 + }, + "key-value-equals-sign-alignment": { + "title": "Whether to align the equals sign in the key-value pairs.", + "description": "If `true`, the equals sign in the key-value pairs will be aligned.\n\n⚠️ **WARNING** ⚠️\\\nThis feature does **not** apply to key-value pairs inside single line inline tables.\n\n```toml\n# BEFORE\nkey = \"value1\"\nkey2 = \"value2\"\nkey3.key4 = \"value3\"\n\n# AFTER\nkey = \"value1\"\nkey2 = \"value2\"\nkey3.key4 = \"value3\"\n```", + "type": ["boolean", "null"], + "default": false + }, + "string-quote-style": { + "title": "The preferred quote character for strings", + "description": "Choose which quote style the formatter prefers for basic strings.", + "anyOf": [ + { + "$ref": "#/definitions/StringQuoteStyle" + }, + { + "type": "null" + } + ], + "default": "double" + }, + "trailing-comment-alignment": { + "title": "Whether to align the trailing comments in the key-value pairs.", + "description": "If `true`, the trailing comments in value/key-value pairs will be aligned.\n\n**📝 NOTE 📝**\\\nThe trailing comments of table header are not targeted by alignment.\n\n```toml\n# BEFORE\nkey = \"value1\" # comment 1\nkey2 = \"value2\" # comment 2\nkey3.key4 = \"value3\" # comment 3\n\n# AFTER\nkey = \"value1\" # comment 1\nkey2 = \"value2\" # comment 2\nkey3.key4 = \"value3\" # comment 3\n```", + "type": ["boolean", "null"], + "default": false + }, + "key-value-equals-sign-space-width": { + "title": "The number of spaces around the equals sign in a key-value pair.", + "description": "```toml\nkey = \"value\"\n# ^ ^ <- this\n```", + "anyOf": [ + { + "$ref": "#/definitions/KeyValueEqualsSignSpaceWidth" + }, + { + "type": "null" + } + ], + "default": 1 + }, + "line-ending": { + "title": "The type of line ending", + "description": "In TOML, the line ending must be either `LF` or `CRLF`.\n\n- `lf`: Line Feed only (`\\n`), common on Linux and macOS as well as inside git repos.\n- `crlf`: Carriage Return Line Feed (`\\r\\n`), common on Windows.", + "anyOf": [ + { + "$ref": "#/definitions/LineEnding" + }, + { + "type": "null" + } + ], + "default": "auto" + }, + "line-width": { + "title": "The maximum line width", + "description": "The formatter will try to keep lines within this width.", + "anyOf": [ + { + "$ref": "#/definitions/LineWidth" + }, + { + "type": "null" + } + ], + "default": 80 + }, + "trailing-comment-space-width": { + "title": "The number of spaces before the trailing comment.", + "description": "```toml\nkey = \"value\" # trailing comment\n# ^^ <- this\n```", + "anyOf": [ + { + "$ref": "#/definitions/TrailingCommentSpaceWidth" + }, + { + "type": "null" + } + ], + "default": 2 + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "ascending" + }, + "ArrayBracketSpaceWidth": { + "type": "integer", + "format": "uint8", + "minimum": 0, + "maximum": 255 + }, + "ArrayCommaSpaceWidth": { + "type": "integer", + "format": "uint8", + "minimum": 0, + "maximum": 255 + }, + "DateTimeDelimiter": { + "description": "DateTime delimiter", + "oneOf": [ + { + "description": "Example: `2021-01-01T00:00:00`", + "type": "string", + "const": "T" + }, + { + "description": "Example: `2021-01-01 00:00:00`", + "type": "string", + "const": "space" + }, + { + "description": "Preserve the source delimiter", + "type": "string", + "const": "preserve" + } + ] + }, + "IndentStyle": { + "type": "string", + "enum": ["space", "tab"] + }, + "IndentWidth": { + "type": "integer", + "format": "uint8", + "minimum": 0, + "maximum": 255 + }, + "InlineTableBraceSpaceWidth": { + "type": "integer", + "format": "uint8", + "minimum": 0, + "maximum": 255 + }, + "InlineTableCommaSpaceWidth": { + "type": "integer", + "format": "uint8", + "minimum": 0, + "maximum": 255 + }, + "StringQuoteStyle": { + "description": "The preferred quote character for strings.", + "oneOf": [ + { + "description": "Prefer the double quote", + "type": "string", + "const": "double" + }, + { + "description": "Prefer the single quote", + "type": "string", + "const": "single" + }, + { + "description": "Preserve the source quote", + "type": "string", + "const": "preserve" + } + ] + }, + "KeyValueEqualsSignSpaceWidth": { + "type": "integer", + "format": "uint8", + "minimum": 0, + "maximum": 255 + }, + "LineEnding": { + "oneOf": [ + { + "type": "string", + "enum": ["lf", "crlf"] + }, + { + "description": "Automatically detects the line ending style from the source file.", + "type": "string", + "const": "auto" + } + ] + }, + "LineWidth": { + "type": "integer", + "format": "uint8", + "minimum": 1, + "maximum": 255 + }, + "TrailingCommentSpaceWidth": { + "type": "integer", + "format": "uint8", + "minimum": 0, + "maximum": 255 + }, + "LintOptions": { + "title": "Linter options", + "type": "object", + "properties": { + "rules": { + "title": "Lint rules", + "anyOf": [ + { + "$ref": "#/definitions/LintRules" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "schema" + }, + "LintRules": { + "type": "object", + "properties": { + "key-empty": { + "title": "Key empty", + "description": "Check if the key is empty.\n\n```toml\n# VALID BUT DISCOURAGED\n\"\" = true\n```", + "anyOf": [ + { + "$ref": "#/definitions/SeverityLevelDefaultWarn" + }, + { + "type": "null" + } + ] + }, + "dotted-keys-out-of-order": { + "title": "Dotted keys out of order", + "description": "Check if dotted keys are defined out of order.\n\n```toml\n# VALID BUT DISCOURAGED\napple.type = \"fruit\"\norange.type = \"fruit\"\napple.skin = \"thin\"\norange.skin = \"thick\"\n\n# RECOMMENDED\napple.type = \"fruit\"\napple.skin = \"thin\"\norange.type = \"fruit\"\norange.skin = \"thick\"\n```", + "anyOf": [ + { + "$ref": "#/definitions/SeverityLevelDefaultWarn" + }, + { + "type": "null" + } + ] + }, + "tables-out-of-order": { + "title": "Tables out of order", + "description": "Check if tables are defined out of order.\n\n```toml\n# VALID BUT DISCOURAGED\n[fruit.apple]\n[animal]\n[fruit.orange]\n\n# RECOMMENDED\n[fruit.apple]\n[fruit.orange]\n[animal]\n```", + "anyOf": [ + { + "$ref": "#/definitions/SeverityLevelDefaultWarn" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "version-sort" + }, + "SeverityLevelDefaultWarn": { + "default": "warn", + "allOf": [ + { + "$ref": "#/definitions/SeverityLevel" + } + ] + }, + "SeverityLevel": { + "type": "string", + "enum": ["off", "warn", "error"] + }, + "LspOptions": { + "title": "Language Server options", + "type": "object", + "properties": { + "code-action": { + "title": "Code Action Feature options", + "anyOf": [ + { + "$ref": "#/definitions/LspCodeAction" + }, + { + "type": "null" + } + ] + }, + "completion": { + "title": "Completion Feature options", + "anyOf": [ + { + "$ref": "#/definitions/LspCompletion" + }, + { + "type": "null" + } + ] + }, + "diagnostic": { + "title": "Diagnostic Feature options", + "anyOf": [ + { + "$ref": "#/definitions/LspDiagnostic" + }, + { + "type": "null" + } + ] + }, + "document-link": { + "title": "Document Link Feature options", + "anyOf": [ + { + "$ref": "#/definitions/LspDocumentLink" + }, + { + "type": "null" + } + ] + }, + "formatting": { + "title": "Formatting Feature options", + "anyOf": [ + { + "$ref": "#/definitions/LspFormatting" + }, + { + "type": "null" + } + ] + }, + "goto-declaration": { + "title": "Goto Declaration Feature options", + "anyOf": [ + { + "$ref": "#/definitions/LspGotoDefinition" + }, + { + "type": "null" + } + ] + }, + "goto-definition": { + "title": "Goto Definition Feature options", + "anyOf": [ + { + "$ref": "#/definitions/LspGotoDefinition" + }, + { + "type": "null" + } + ] + }, + "goto-type-definition": { + "title": "Goto Type Definition Feature options", + "anyOf": [ + { + "$ref": "#/definitions/LspGotoDefinition" + }, + { + "type": "null" + } + ] + }, + "hover": { + "title": "Hover Feature options", + "anyOf": [ + { + "$ref": "#/definitions/LspHover" + }, + { + "type": "null" + } + ] + }, + "workspace-diagnostic": { + "title": "Workspace Diagnostics Feature options", + "anyOf": [ + { + "$ref": "#/definitions/LspWorkspaceDiagnostic" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "ascending" + }, + "LspCodeAction": { + "type": "object", + "properties": { + "enabled": { + "title": "Enable code action feature", + "description": "Whether to enable code action.", + "anyOf": [ + { + "$ref": "#/definitions/BoolDefaultTrue" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false + }, + "BoolDefaultTrue": { + "type": "boolean", + "default": true + }, + "LspCompletion": { + "type": "object", + "properties": { + "enabled": { + "title": "Enable completion feature", + "description": "Whether to enable completion.", + "anyOf": [ + { + "$ref": "#/definitions/BoolDefaultTrue" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false + }, + "LspDiagnostic": { + "type": "object", + "properties": { + "enabled": { + "title": "Enable diagnostic feature", + "description": "Whether to enable diagnostic.", + "anyOf": [ + { + "$ref": "#/definitions/BoolDefaultTrue" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false + }, + "LspDocumentLink": { + "type": "object", + "properties": { + "enabled": { + "title": "Enable document link feature", + "description": "Whether to enable document link.", + "anyOf": [ + { + "$ref": "#/definitions/BoolDefaultTrue" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false + }, + "LspFormatting": { + "type": "object", + "properties": { + "enabled": { + "title": "Enable formatting feature", + "description": "Whether to enable formatting.", + "anyOf": [ + { + "$ref": "#/definitions/BoolDefaultTrue" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false + }, + "LspGotoDefinition": { + "type": "object", + "properties": { + "enabled": { + "title": "Enable goto definition feature", + "description": "Whether to enable goto definition.", + "anyOf": [ + { + "$ref": "#/definitions/BoolDefaultTrue" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false + }, + "LspHover": { + "type": "object", + "properties": { + "enabled": { + "title": "Enable hover feature", + "description": "Whether to enable hover.", + "anyOf": [ + { + "$ref": "#/definitions/BoolDefaultTrue" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false + }, + "LspWorkspaceDiagnostic": { + "type": "object", + "properties": { + "enabled": { + "title": "Enable workspace diagnostic feature", + "description": "Whether to enable workspace diagnostic.", + "anyOf": [ + { + "$ref": "#/definitions/BoolDefaultTrue" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false + }, + "SchemaOverviewOptions": { + "title": "Schema overview options", + "type": "object", + "properties": { + "enabled": { + "title": "Enable the schema validation", + "anyOf": [ + { + "$ref": "#/definitions/BoolDefaultTrue" + }, + { + "type": "null" + } + ] + }, + "strict": { + "title": "Enable strict schema validation", + "description": "If `additionalProperties` is not specified in the JSON Schema,\nthe strict mode treats it as `additionalProperties: false`,\nwhich is different from the JSON Schema specification.", + "anyOf": [ + { + "$ref": "#/definitions/BoolDefaultTrue" + }, + { + "type": "null" + } + ] + }, + "catalog": { + "title": "Schema catalog options", + "anyOf": [ + { + "$ref": "#/definitions/SchemaCatalog" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "schema" + }, + "SchemaCatalog": { + "type": "object", + "properties": { + "paths": { + "title": "The schema catalog path/url array", + "description": "The catalog is evaluated after the schemas specified by [[schemas]].\\\nSchemas are loaded in order from the beginning of the catalog list.", + "type": ["array", "null"], + "items": { + "$ref": "#/definitions/SchemaCatalogPath" + }, + "default": [ + "tombi://www.schemastore.org/api/json/catalog.json", + "https://www.schemastore.org/api/json/catalog.json" + ] + } + }, + "additionalProperties": false + }, + "SchemaCatalogPath": { + "description": "Generic value that can be either single or multiple", + "type": "string" + }, + "SchemaItem": { + "title": "Schema item", + "anyOf": [ + { + "$ref": "#/definitions/RootSchema" + }, + { + "$ref": "#/definitions/SubSchema" + } + ] + }, + "RootSchema": { + "title": "The schema for the root table", + "type": "object", + "properties": { + "toml-version": { + "title": "The TOML version that the schema is available", + "anyOf": [ + { + "$ref": "#/definitions/TomlVersion" + }, + { + "type": "null" + } + ] + }, + "path": { + "title": "The schema path", + "type": "string" + }, + "include": { + "title": "The file match pattern of the schema", + "description": "The file match pattern to include the target to apply the schema.\nSupports glob pattern.", + "type": "array", + "items": { + "type": "string" + }, + "minItems": 1 + }, + "format": { + "title": "Schema-specific format options", + "anyOf": [ + { + "$ref": "#/definitions/SchemaFormatOptions" + }, + { + "type": "null" + } + ] + }, + "lint": { + "title": "Schema-specific lint options", + "anyOf": [ + { + "$ref": "#/definitions/SchemaLintOptions" + }, + { + "type": "null" + } + ] + }, + "overrides": { + "title": "Schema-specific overrides", + "type": ["array", "null"], + "items": { + "$ref": "#/definitions/SchemaOverrideItem" + } + } + }, + "additionalProperties": false, + "required": ["path", "include"], + "x-tombi-table-keys-order": "schema" + }, + "SchemaFormatOptions": { + "title": "Schema-specific format options", + "type": "object", + "properties": { + "rules": { + "title": "Schema-specific format rules", + "anyOf": [ + { + "$ref": "#/definitions/SchemaFormatRules" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "schema" + }, + "SchemaFormatRules": { + "title": "Schema-specific format rules", + "type": "object", + "properties": { + "array-values-order": { + "title": "Whether schema-defined array values ordering is enabled", + "anyOf": [ + { + "$ref": "#/definitions/SchemaArrayValuesOrderRule" + }, + { + "type": "null" + } + ] + }, + "table-keys-order": { + "title": "Whether schema-defined table key ordering is enabled", + "anyOf": [ + { + "$ref": "#/definitions/SchemaTableKeysOrderRule" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "ascending" + }, + "SchemaArrayValuesOrderRule": { + "title": "Schema-defined array values ordering", + "type": "object", + "properties": { + "enabled": { + "title": "Whether schema-defined array values ordering is enabled", + "anyOf": [ + { + "$ref": "#/definitions/BoolDefaultTrue" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "schema" + }, + "SchemaTableKeysOrderRule": { + "title": "Schema-defined table key ordering", + "type": "object", + "properties": { + "enabled": { + "title": "Whether schema-defined table key ordering is enabled", + "anyOf": [ + { + "$ref": "#/definitions/BoolDefaultTrue" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "schema" + }, + "SchemaLintOptions": { + "title": "Schema-specific lint options", + "type": "object", + "properties": { + "rules": { + "title": "Schema-specific lint rules", + "anyOf": [ + { + "$ref": "#/definitions/SchemaLintRules" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "schema" + }, + "SchemaLintRules": { + "title": "Schema-specific lint rules", + "type": "object", + "properties": { + "deprecated": { + "title": "Deprecated", + "description": "Override the deprecated diagnostic level for this schema.", + "anyOf": [ + { + "$ref": "#/definitions/SeverityLevelDefaultWarn" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "schema" + }, + "SchemaOverrideItem": { + "title": "Schema-specific override item", + "type": "object", + "properties": { + "targets": { + "title": "Accessor patterns to override", + "type": "array", + "items": { + "$ref": "#/definitions/PatternAccessor" + }, + "minItems": 1 + }, + "format": { + "title": "Format options to override", + "anyOf": [ + { + "$ref": "#/definitions/SchemaOverrideFormatOptions" + }, + { + "type": "null" + } + ] + }, + "lint": { + "title": "Lint options to override", + "anyOf": [ + { + "$ref": "#/definitions/SchemaOverrideLintOptions" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "required": ["targets"], + "x-tombi-table-keys-order": "schema" + }, + "PatternAccessor": { + "title": "Accessor pattern", + "description": "To apply it to the Root Table, use `\"\"`.\n\nArray indices are matched as wildcards. That means `[*]` and numeric\nindices such as `[0]` are treated the same and will match any array\nelement, so `items[0].name` behaves like `items[*].name`.\n\n**Example**:\n - `\"\"`\n - `\"tool.*\"`\n - `\"items[*].name\"`", + "type": "string", + "minLength": 0 + }, + "SchemaOverrideFormatOptions": { + "title": "Schema-specific override format options", + "type": "object", + "properties": { + "rules": { + "title": "Schema-specific override format rules", + "anyOf": [ + { + "$ref": "#/definitions/SchemaOverrideFormatRules" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "schema" + }, + "SchemaOverrideFormatRules": { + "title": "Schema-specific override format rules", + "type": "object", + "properties": { + "array-values-order": { + "title": "Override array values ordering for matched roots", + "anyOf": [ + { + "$ref": "#/definitions/SchemaOverrideArrayValuesOrderRule" + }, + { + "type": "null" + } + ] + }, + "table-keys-order": { + "title": "Override table key ordering for matched roots", + "anyOf": [ + { + "$ref": "#/definitions/SchemaOverrideTableKeysOrderRule" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "ascending" + }, + "SchemaOverrideArrayValuesOrderRule": { + "title": "Override array values ordering for matched roots", + "anyOf": [ + { + "$ref": "#/definitions/ArrayValuesOrder" + }, + { + "$ref": "#/definitions/SchemaArrayValuesOrderRule" + } + ] + }, + "ArrayValuesOrder": { + "type": "string", + "enum": ["ascending", "descending", "version-sort"] + }, + "SchemaOverrideTableKeysOrderRule": { + "title": "Override table key ordering for matched roots", + "anyOf": [ + { + "$ref": "#/definitions/TableKeysOrder" + }, + { + "$ref": "#/definitions/SchemaTableKeysOrderRule" + } + ] + }, + "TableKeysOrder": { + "type": "string", + "enum": ["ascending", "descending", "schema", "version-sort"] + }, + "SchemaOverrideLintOptions": { + "title": "Schema-specific override lint options", + "type": "object", + "properties": { + "rules": { + "title": "Schema-specific override lint rules", + "anyOf": [ + { + "$ref": "#/definitions/SchemaOverrideLintRules" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "schema" + }, + "SchemaOverrideLintRules": { + "title": "Schema-specific override lint rules", + "type": "object", + "properties": { + "deprecated": { + "title": "Override deprecated diagnostics for matched roots", + "anyOf": [ + { + "$ref": "#/definitions/SeverityLevelDefaultWarn" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "schema" + }, + "SubSchema": { + "title": "The schema for the sub value", + "type": "object", + "properties": { + "root": { + "title": "The accessors to apply the sub schema", + "type": "string", + "examples": ["tool.tombi", "items[0].name"], + "minLength": 1 + }, + "path": { + "title": "The sub schema path", + "type": "string" + }, + "include": { + "title": "The file match pattern of the sub schema", + "description": "The file match pattern to include the target to apply the sub schema.\nSupports glob pattern.", + "type": "array", + "items": { + "type": "string" + }, + "minItems": 1 + }, + "format": { + "title": "Schema-specific format options", + "anyOf": [ + { + "$ref": "#/definitions/SchemaFormatOptions" + }, + { + "type": "null" + } + ] + }, + "lint": { + "title": "Schema-specific lint options", + "anyOf": [ + { + "$ref": "#/definitions/SchemaLintOptions" + }, + { + "type": "null" + } + ] + }, + "overrides": { + "title": "Schema-specific overrides", + "type": ["array", "null"], + "items": { + "$ref": "#/definitions/SchemaOverrideItem" + } + } + }, + "additionalProperties": false, + "required": ["root", "path", "include"], + "x-tombi-table-keys-order": "schema" + }, + "OverrideItem": { + "title": "Override config item", + "type": "object", + "properties": { + "files": { + "title": "Files options to override", + "allOf": [ + { + "$ref": "#/definitions/OverrideFilesOptions" + } + ] + }, + "format": { + "title": "Format options to override", + "anyOf": [ + { + "$ref": "#/definitions/OverrideFormatOptions" + }, + { + "type": "null" + } + ] + }, + "lint": { + "title": "Lint options to override", + "anyOf": [ + { + "$ref": "#/definitions/OverrideLintOptions" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "required": ["files"], + "x-tombi-table-keys-order": "schema" + }, + "OverrideFilesOptions": { + "title": "Files options to override", + "type": "object", + "properties": { + "include": { + "title": "File patterns to include", + "description": "The file match pattern to include in formatting and linting.\nSupports glob pattern.", + "type": "array", + "items": { + "type": "string" + }, + "minItems": 1 + }, + "exclude": { + "title": "File patterns to exclude", + "description": "The file match pattern to exclude from formatting and linting.\nSupports glob pattern.", + "type": ["array", "null"], + "items": { + "type": "string" + }, + "minItems": 1 + } + }, + "additionalProperties": false, + "required": ["include"], + "x-tombi-table-keys-order": "schema" + }, + "OverrideFormatOptions": { + "type": "object", + "properties": { + "enabled": { + "title": "Format enabled", + "anyOf": [ + { + "$ref": "#/definitions/BoolDefaultTrue" + }, + { + "type": "null" + } + ] + }, + "rules": { + "title": "Format rules", + "anyOf": [ + { + "$ref": "#/definitions/FormatRules" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "schema" + }, + "OverrideLintOptions": { + "type": "object", + "properties": { + "enabled": { + "title": "Lint enabled", + "anyOf": [ + { + "$ref": "#/definitions/BoolDefaultTrue" + }, + { + "type": "null" + } + ] + }, + "rules": { + "title": "Lint rules", + "anyOf": [ + { + "$ref": "#/definitions/LintRules" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "schema" + }, + "Extensions": { + "title": "Extension options", + "description": "🚧 Currently, third-party extensions are not supported,\nand only built-in extensions are provided. 🚧", + "type": "object", + "properties": { + "tombi-toml/cargo": { + "title": "Cargo Extension", + "description": "Configure built-in support for `Cargo.toml`.", + "anyOf": [ + { + "$ref": "#/definitions/CargoExtensionFeatures" + }, + { + "type": "null" + } + ] + }, + "tombi-toml/pyproject": { + "title": "Pyproject Extension", + "description": "Configure built-in support for `pyproject.toml`.", + "anyOf": [ + { + "$ref": "#/definitions/PyprojectExtensionFeatures" + }, + { + "type": "null" + } + ] + }, + "tombi-toml/tombi": { + "title": "Tombi Extension", + "description": "Configure built-in support for `tombi.toml`.", + "anyOf": [ + { + "$ref": "#/definitions/TombiExtensionFeatures" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "ascending" + }, + "CargoExtensionFeatures": { + "anyOf": [ + { + "$ref": "#/definitions/EnabledOnly" + }, + { + "$ref": "#/definitions/CargoExtensionFeatureTree" + } + ] + }, + "EnabledOnly": { + "type": "object", + "properties": { + "enabled": { + "title": "Enable feature", + "description": "Whether this feature is enabled.", + "allOf": [ + { + "$ref": "#/definitions/BoolDefaultTrue" + } + ] + } + }, + "additionalProperties": false, + "required": ["enabled"] + }, + "CargoExtensionFeatureTree": { + "type": "object", + "properties": { + "lsp": { + "title": "Cargo LSP feature options", + "anyOf": [ + { + "$ref": "#/definitions/CargoLspFeatures" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "ascending" + }, + "CargoLspFeatures": { + "anyOf": [ + { + "$ref": "#/definitions/EnabledOnly" + }, + { + "$ref": "#/definitions/CargoLspFeatureTree" + } + ] + }, + "CargoLspFeatureTree": { + "type": "object", + "properties": { + "completion": { + "title": "Completion feature options", + "anyOf": [ + { + "$ref": "#/definitions/CargoCompletionFeatures" + }, + { + "type": "null" + } + ] + }, + "inlay-hint": { + "title": "Inlay hint feature options", + "anyOf": [ + { + "$ref": "#/definitions/CargoInlayHintFeatures" + }, + { + "type": "null" + } + ] + }, + "goto-definition": { + "title": "Goto definition feature options", + "anyOf": [ + { + "$ref": "#/definitions/CargoNavigationFeatures" + }, + { + "type": "null" + } + ] + }, + "goto-declaration": { + "title": "Goto declaration feature options", + "anyOf": [ + { + "$ref": "#/definitions/CargoNavigationFeatures" + }, + { + "type": "null" + } + ] + }, + "document-link": { + "title": "Document link feature options", + "anyOf": [ + { + "$ref": "#/definitions/CargoDocumentLinkFeatures" + }, + { + "type": "null" + } + ] + }, + "hover": { + "title": "Hover feature options", + "anyOf": [ + { + "$ref": "#/definitions/CargoHoverFeatures" + }, + { + "type": "null" + } + ] + }, + "code-action": { + "title": "Code action feature options", + "anyOf": [ + { + "$ref": "#/definitions/CargoCodeActionFeatures" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "ascending" + }, + "CargoCompletionFeatures": { + "anyOf": [ + { + "$ref": "#/definitions/EnabledOnly" + }, + { + "$ref": "#/definitions/CargoCompletionFeatureTree" + } + ] + }, + "CargoCompletionFeatureTree": { + "type": "object", + "properties": { + "dependency-version": { + "title": "Dependency version completion feature", + "description": "Whether completion suggests dependency versions.", + "anyOf": [ + { + "$ref": "#/definitions/ToggleFeatureDefaultTrue" + }, + { + "type": "null" + } + ] + }, + "dependency-feature": { + "title": "Dependency feature completion feature", + "description": "Whether completion suggests dependency features.", + "anyOf": [ + { + "$ref": "#/definitions/ToggleFeatureDefaultTrue" + }, + { + "type": "null" + } + ] + }, + "path": { + "title": "Path completion feature", + "description": "Whether completion suggests filesystem paths.", + "anyOf": [ + { + "$ref": "#/definitions/ToggleFeatureDefaultTrue" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "ascending" + }, + "ToggleFeatureDefaultTrue": { + "type": "object", + "properties": { + "enabled": { + "title": "Enable feature", + "description": "Whether this nested feature is enabled.", + "anyOf": [ + { + "$ref": "#/definitions/BoolDefaultTrue" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false + }, + "CargoInlayHintFeatures": { + "anyOf": [ + { + "$ref": "#/definitions/EnabledOnly" + }, + { + "$ref": "#/definitions/CargoInlayHintFeatureTree" + } + ], + "x-tombi-table-keys-order": "ascending" + }, + "CargoInlayHintFeatureTree": { + "type": "object", + "properties": { + "dependency-version": { + "title": "Dependency version inlay hint feature", + "description": "Whether inlay hints show dependency versions.", + "anyOf": [ + { + "$ref": "#/definitions/ToggleFeatureDefaultTrue" + }, + { + "type": "null" + } + ] + }, + "default-features": { + "title": "Default features inlay hint feature", + "description": "Whether inlay hints show `default-features` values.", + "anyOf": [ + { + "$ref": "#/definitions/ToggleFeatureDefaultTrue" + }, + { + "type": "null" + } + ] + }, + "workspace-value": { + "title": "Workspace value inlay hint feature", + "description": "Whether inlay hints show values inherited from the Cargo workspace.", + "anyOf": [ + { + "$ref": "#/definitions/ToggleFeatureDefaultTrue" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "ascending" + }, + "CargoNavigationFeatures": { + "anyOf": [ + { + "$ref": "#/definitions/EnabledOnly" + }, + { + "$ref": "#/definitions/CargoNavigationFeatureTree" + } + ] + }, + "CargoNavigationFeatureTree": { + "type": "object", + "properties": { + "dependency": { + "title": "Dependency navigation feature", + "description": "Whether navigation resolves dependency definitions and declarations.", + "anyOf": [ + { + "$ref": "#/definitions/ToggleFeatureDefaultTrue" + }, + { + "type": "null" + } + ] + }, + "member": { + "title": "Member navigation feature", + "description": "Whether navigation resolves workspace member targets.", + "anyOf": [ + { + "$ref": "#/definitions/ToggleFeatureDefaultTrue" + }, + { + "type": "null" + } + ] + }, + "path": { + "title": "Path navigation feature", + "description": "Whether navigation resolves filesystem paths.", + "anyOf": [ + { + "$ref": "#/definitions/ToggleFeatureDefaultTrue" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "ascending" + }, + "CargoDocumentLinkFeatures": { + "anyOf": [ + { + "$ref": "#/definitions/EnabledOnly" + }, + { + "$ref": "#/definitions/CargoDocumentLinkFeatureTree" + } + ] + }, + "CargoDocumentLinkFeatureTree": { + "type": "object", + "properties": { + "cargo-toml": { + "title": "Cargo.toml document link feature", + "description": "Whether document links are created for `Cargo.toml` references.", + "anyOf": [ + { + "$ref": "#/definitions/ToggleFeatureDefaultFalse" + }, + { + "type": "null" + } + ] + }, + "crates-io": { + "title": "crates.io document link feature", + "description": "Whether document links are created for crates.io package references.", + "anyOf": [ + { + "$ref": "#/definitions/ToggleFeatureDefaultTrue" + }, + { + "type": "null" + } + ] + }, + "git": { + "title": "Git document link feature", + "description": "Whether document links are created for Git references.", + "anyOf": [ + { + "$ref": "#/definitions/ToggleFeatureDefaultFalse" + }, + { + "type": "null" + } + ] + }, + "path": { + "title": "Path document link feature", + "description": "Whether document links are created for filesystem paths.", + "anyOf": [ + { + "$ref": "#/definitions/ToggleFeatureDefaultFalse" + }, + { + "type": "null" + } + ] + }, + "workspace": { + "title": "Workspace document link feature", + "description": "Whether document links are created for `workspace = true` references.", + "anyOf": [ + { + "$ref": "#/definitions/ToggleFeatureDefaultFalse" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "ascending" + }, + "ToggleFeatureDefaultFalse": { + "type": "object", + "properties": { + "enabled": { + "title": "Enable feature", + "description": "Whether this nested feature is enabled.", + "anyOf": [ + { + "$ref": "#/definitions/BoolDefaultFalse" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false + }, + "BoolDefaultFalse": { + "type": "boolean", + "default": false + }, + "CargoHoverFeatures": { + "anyOf": [ + { + "$ref": "#/definitions/EnabledOnly" + }, + { + "$ref": "#/definitions/CargoHoverFeatureTree" + } + ], + "x-tombi-table-keys-order": "ascending" + }, + "CargoHoverFeatureTree": { + "type": "object", + "properties": { + "dependency-detail": { + "title": "Dependency detail hover feature", + "description": "Whether hover shows detailed dependency metadata.", + "anyOf": [ + { + "$ref": "#/definitions/ToggleFeatureDefaultTrue" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "ascending" + }, + "CargoCodeActionFeatures": { + "anyOf": [ + { + "$ref": "#/definitions/EnabledOnly" + }, + { + "$ref": "#/definitions/CargoCodeActionFeatureTree" + } + ] + }, + "CargoCodeActionFeatureTree": { + "type": "object", + "properties": { + "inherit-from-workspace": { + "title": "Inherit-from-workspace code action feature", + "description": "Whether code actions can replace a value with `workspace = true`.", + "anyOf": [ + { + "$ref": "#/definitions/ToggleFeatureDefaultTrue" + }, + { + "type": "null" + } + ] + }, + "inherit-dependency-from-workspace": { + "title": "Inherit-dependency-from-workspace code action feature", + "description": "Whether code actions can inherit dependency settings from the workspace.", + "anyOf": [ + { + "$ref": "#/definitions/ToggleFeatureDefaultTrue" + }, + { + "type": "null" + } + ] + }, + "convert-dependency-to-table-format": { + "title": "Convert-dependency-to-table-format code action feature", + "description": "Whether code actions can rewrite inline dependencies to table format.", + "anyOf": [ + { + "$ref": "#/definitions/ToggleFeatureDefaultTrue" + }, + { + "type": "null" + } + ] + }, + "add-to-workspace-and-inherit-dependency": { + "title": "Add-to-workspace-and-inherit-dependency code action feature", + "description": "Whether code actions can add a dependency to the workspace and inherit it.", + "anyOf": [ + { + "$ref": "#/definitions/ToggleFeatureDefaultTrue" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "ascending" + }, + "PyprojectExtensionFeatures": { + "anyOf": [ + { + "$ref": "#/definitions/EnabledOnly" + }, + { + "$ref": "#/definitions/PyprojectExtensionFeatureTree" + } + ] + }, + "PyprojectExtensionFeatureTree": { + "type": "object", + "properties": { + "lsp": { + "title": "Pyproject LSP feature options", + "anyOf": [ + { + "$ref": "#/definitions/PyprojectLspFeatures" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "ascending" + }, + "PyprojectLspFeatures": { + "anyOf": [ + { + "$ref": "#/definitions/EnabledOnly" + }, + { + "$ref": "#/definitions/PyprojectLspFeatureTree" + } + ] + }, + "PyprojectLspFeatureTree": { + "type": "object", + "properties": { + "completion": { + "title": "Completion feature options", + "description": "Configure pyproject completion features.", + "anyOf": [ + { + "$ref": "#/definitions/PyprojectCompletionFeatures" + }, + { + "type": "null" + } + ] + }, + "inlay-hint": { + "title": "Inlay hint feature options", + "description": "Configure pyproject inlay hint features.", + "anyOf": [ + { + "$ref": "#/definitions/PyprojectInlayHintFeatures" + }, + { + "type": "null" + } + ] + }, + "goto-definition": { + "title": "Goto definition feature options", + "description": "Configure pyproject go-to-definition features.", + "anyOf": [ + { + "$ref": "#/definitions/PyprojectNavigationFeatures" + }, + { + "type": "null" + } + ] + }, + "goto-declaration": { + "title": "Goto declaration feature options", + "description": "Configure pyproject go-to-declaration features.", + "anyOf": [ + { + "$ref": "#/definitions/PyprojectNavigationFeatures" + }, + { + "type": "null" + } + ] + }, + "document-link": { + "title": "Document link feature options", + "description": "Configure pyproject document link features.", + "anyOf": [ + { + "$ref": "#/definitions/PyprojectDocumentLinkFeatures" + }, + { + "type": "null" + } + ] + }, + "hover": { + "title": "Hover feature options", + "description": "Configure pyproject hover features.", + "anyOf": [ + { + "$ref": "#/definitions/PyprojectHoverFeatures" + }, + { + "type": "null" + } + ] + }, + "code-action": { + "title": "Code action feature options", + "description": "Configure pyproject code action features.", + "anyOf": [ + { + "$ref": "#/definitions/PyprojectCodeActionFeatures" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "ascending" + }, + "PyprojectCompletionFeatures": { + "anyOf": [ + { + "$ref": "#/definitions/EnabledOnly" + }, + { + "$ref": "#/definitions/PyprojectCompletionFeatureTree" + } + ] + }, + "PyprojectCompletionFeatureTree": { + "type": "object", + "properties": { + "path": { + "title": "Path completion feature", + "description": "Whether completion suggests filesystem paths.", + "anyOf": [ + { + "$ref": "#/definitions/ToggleFeatureDefaultTrue" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "ascending" + }, + "PyprojectInlayHintFeatures": { + "anyOf": [ + { + "$ref": "#/definitions/EnabledOnly" + }, + { + "$ref": "#/definitions/PyprojectInlayHintFeatureTree" + } + ], + "x-tombi-table-keys-order": "ascending" + }, + "PyprojectInlayHintFeatureTree": { + "type": "object", + "properties": { + "dependency-version": { + "title": "Dependency version inlay hint feature", + "description": "Whether inlay hints show resolved dependency versions.", + "anyOf": [ + { + "$ref": "#/definitions/ToggleFeatureDefaultTrue" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "ascending" + }, + "PyprojectNavigationFeatures": { + "anyOf": [ + { + "$ref": "#/definitions/EnabledOnly" + }, + { + "$ref": "#/definitions/PyprojectNavigationFeatureTree" + } + ] + }, + "PyprojectNavigationFeatureTree": { + "type": "object", + "properties": { + "dependency": { + "title": "Dependency navigation feature", + "description": "Whether navigation resolves dependency definitions and declarations.", + "anyOf": [ + { + "$ref": "#/definitions/ToggleFeatureDefaultTrue" + }, + { + "type": "null" + } + ] + }, + "member": { + "title": "Member navigation feature", + "description": "Whether navigation resolves workspace member targets.", + "anyOf": [ + { + "$ref": "#/definitions/ToggleFeatureDefaultTrue" + }, + { + "type": "null" + } + ] + }, + "path": { + "title": "Path navigation feature", + "description": "Whether navigation resolves filesystem paths.", + "anyOf": [ + { + "$ref": "#/definitions/ToggleFeatureDefaultTrue" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "ascending" + }, + "PyprojectDocumentLinkFeatures": { + "anyOf": [ + { + "$ref": "#/definitions/EnabledOnly" + }, + { + "$ref": "#/definitions/PyprojectDocumentLinkFeatureTree" + } + ] + }, + "PyprojectDocumentLinkFeatureTree": { + "type": "object", + "properties": { + "pyproject-toml": { + "title": "pyproject.toml document link feature", + "description": "Whether document links are created for `pyproject.toml` references.", + "anyOf": [ + { + "$ref": "#/definitions/ToggleFeatureDefaultFalse" + }, + { + "type": "null" + } + ] + }, + "pypi-org": { + "title": "PyPI document link feature", + "description": "Whether document links are created for `pypi.org` package references.", + "anyOf": [ + { + "$ref": "#/definitions/ToggleFeatureDefaultTrue" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "ascending" + }, + "PyprojectHoverFeatures": { + "anyOf": [ + { + "$ref": "#/definitions/EnabledOnly" + }, + { + "$ref": "#/definitions/PyprojectHoverFeatureTree" + } + ], + "x-tombi-table-keys-order": "ascending" + }, + "PyprojectHoverFeatureTree": { + "type": "object", + "properties": { + "dependency-detail": { + "title": "Dependency detail hover feature", + "description": "Whether hover shows detailed dependency metadata.", + "anyOf": [ + { + "$ref": "#/definitions/ToggleFeatureDefaultTrue" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "ascending" + }, + "PyprojectCodeActionFeatures": { + "anyOf": [ + { + "$ref": "#/definitions/EnabledOnly" + }, + { + "$ref": "#/definitions/PyprojectCodeActionFeatureTree" + } + ] + }, + "PyprojectCodeActionFeatureTree": { + "type": "object", + "properties": { + "use-workspace-dependency": { + "title": "Use-workspace-dependency code action feature", + "description": "Whether code actions can reuse a dependency declared in the workspace.", + "anyOf": [ + { + "$ref": "#/definitions/ToggleFeatureDefaultTrue" + }, + { + "type": "null" + } + ] + }, + "add-to-workspace-and-use-workspace-dependency": { + "title": "Add-to-workspace-and-use-workspace-dependency code action feature", + "description": "Whether code actions can add a dependency to the workspace and reuse it.", + "anyOf": [ + { + "$ref": "#/definitions/ToggleFeatureDefaultTrue" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "ascending" + }, + "TombiExtensionFeatures": { + "anyOf": [ + { + "$ref": "#/definitions/EnabledOnly" + }, + { + "$ref": "#/definitions/TombiExtensionFeatureTree" + } + ], + "x-tombi-table-keys-order": "ascending" + }, + "TombiExtensionFeatureTree": { + "type": "object", + "properties": { + "lsp": { + "title": "Tombi LSP feature options", + "anyOf": [ + { + "$ref": "#/definitions/TombiLspFeatures" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "ascending" + }, + "TombiLspFeatures": { + "anyOf": [ + { + "$ref": "#/definitions/EnabledOnly" + }, + { + "$ref": "#/definitions/TombiLspFeatureTree" + } + ] + }, + "TombiLspFeatureTree": { + "type": "object", + "properties": { + "completion": { + "title": "Completion feature options", + "description": "Configure Tombi completion features.", + "anyOf": [ + { + "$ref": "#/definitions/TombiCompletionFeatures" + }, + { + "type": "null" + } + ] + }, + "goto-definition": { + "title": "Goto definition feature options", + "description": "Configure Tombi go-to-definition features.", + "anyOf": [ + { + "$ref": "#/definitions/TombiGotoDefinitionFeatures" + }, + { + "type": "null" + } + ] + }, + "document-link": { + "title": "Document link feature options", + "description": "Configure Tombi document link features.", + "anyOf": [ + { + "$ref": "#/definitions/TombiDocumentLinkFeatures" + }, + { + "type": "null" + } + ] + }, + "hover": { + "title": "Hover feature options", + "description": "Configure Tombi hover features.", + "anyOf": [ + { + "$ref": "#/definitions/TombiHoverFeatures" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "ascending" + }, + "TombiCompletionFeatures": { + "anyOf": [ + { + "$ref": "#/definitions/EnabledOnly" + }, + { + "$ref": "#/definitions/TombiCompletionFeatureTree" + } + ], + "x-tombi-table-keys-order": "ascending" + }, + "TombiCompletionFeatureTree": { + "type": "object", + "properties": { + "path": { + "title": "Path completion feature", + "description": "Whether completion suggests filesystem paths.", + "anyOf": [ + { + "$ref": "#/definitions/ToggleFeatureDefaultTrue" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "ascending" + }, + "TombiGotoDefinitionFeatures": { + "anyOf": [ + { + "$ref": "#/definitions/EnabledOnly" + }, + { + "$ref": "#/definitions/TombiGotoDefinitionFeatureTree" + } + ], + "x-tombi-table-keys-order": "ascending" + }, + "TombiGotoDefinitionFeatureTree": { + "type": "object", + "properties": { + "path": { + "title": "Path goto-definition feature", + "description": "Whether go-to-definition resolves filesystem paths.", + "anyOf": [ + { + "$ref": "#/definitions/ToggleFeatureDefaultTrue" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "ascending" + }, + "TombiDocumentLinkFeatures": { + "anyOf": [ + { + "$ref": "#/definitions/EnabledOnly" + }, + { + "$ref": "#/definitions/TombiDocumentLinkFeatureTree" + } + ] + }, + "TombiDocumentLinkFeatureTree": { + "type": "object", + "properties": { + "path": { + "title": "Path document link feature", + "description": "Whether document links are created for filesystem paths.", + "anyOf": [ + { + "$ref": "#/definitions/ToggleFeatureDefaultFalse" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "x-tombi-table-keys-order": "ascending" + }, + "TombiHoverFeatures": { + "anyOf": [ + { + "$ref": "#/definitions/EnabledOnly" + }, + { + "$ref": "#/definitions/TombiHoverFeatureTree" + } + ] + }, + "TombiHoverFeatureTree": { + "type": "object", + "additionalProperties": false + } + } +} diff --git a/tombi.toml b/tombi.toml index ffe155a..3c142c3 100644 --- a/tombi.toml +++ b/tombi.toml @@ -4,20 +4,20 @@ indent-width = 4 line-width = 80 [[schemas]] -path = "https://extensions.blender-defender.com/api/blender_manifest_v1.schema.json" +path = ".schemas/blender_manifest_v1.schema.json" include = ["blender_manifest.toml"] [[schemas]] -path = "https://json.schemastore.org/pyproject.json" +path = ".schemas/pyproject.json" include = ["pyproject.toml"] [schemas.format.rules] table-keys-order.enabled = false [[schemas]] -path = "https://json.schemastore.org/tombi.json" +path = ".schemas/tombi.json" include = ["tombi.toml"] [[schemas]] -path = "https://json.schemastore.org/ruff.json" +path = ".schemas/ruff.json" include = ["ruff.toml"]