PyCQA / PyCQA/bandit

Can we add a json schema to complete pyproject.toml's [tool.bandit]?

Open
#1,100 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
8.3k
Forks
836
Avg merge
5d 3h
Merged PRs (30d)
1

Description

json schema can let editor which support LSP to complete some configuration file. Such as:

Screenshot from 2024-01-20 23-24-42

There are many tools have supported json schema: https://json.schemastore.org/pyproject.json

Screenshot from 2024-01-20 23-36-38

Can tool.bandit be supported?

Describe the solution you'd like

Refer https://github.com/cmhughes/latexindent.pl/issues/206:

The steps are following:

  1. Create a json schema
  2. Add its URL to schemastore.

Love this idea? Give it a 👍. We prioritize fulfilling features with the most 👍.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with Bandit's configuration documentation and the existing pyproject.json schema in SchemaStore. Define a schema for the [tool.bandit] configuration, then submit its URL to SchemaStore; done means editors can provide completion for that section.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.