# How do I create a new linter addon for Python?

**URL:** https://discuss.codemirror.net/t/how-do-i-create-a-new-linter-addon-for-python/842
**Category:** Uncategorized
**Created:** [July 27, 2016, 8:51pm UTC](https://discuss.codemirror.net/t/how-do-i-create-a-new-linter-addon-for-python/842 "2016-07-27T20:51:55Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![ethanchewy](https://discuss.codemirror.net/letter_avatar_proxy/v4/letter/e/47e85d/32.png) [@ethanchewy](https://discuss.codemirror.net/u/ethanchewy)
#### Post date: [July 27, 2016, 8:51pm UTC](https://discuss.codemirror.net/t/how-do-i-create-a-new-linter-addon-for-python/842/1 "2016-07-27T20:51:55Z")

</div>

I was just wondering if there was any documentation or tutorials anyone knew about for creating a codemirror linter.

My goal is to refactor pyflakes into a codemirror linter.

Any suggestions for sites I should look at?

---

<div class="post-metadata">

### Author: ![keul](https://discuss.codemirror.net/user_avatar/discuss.codemirror.net/keul/32/341_2.png) [@keul](https://discuss.codemirror.net/u/keul)
#### Post date: [November 30, 2017, 9:55am UTC](https://discuss.codemirror.net/t/how-do-i-create-a-new-linter-addon-for-python/842/2 "2017-11-30T09:55:38Z")

</div>

I need to do the same. Did you find any helpful material about this?

---

<div class="post-metadata">

### Author: ![ethanchewy](https://discuss.codemirror.net/letter_avatar_proxy/v4/letter/e/47e85d/32.png) [@ethanchewy](https://discuss.codemirror.net/u/ethanchewy)
#### Post date: [November 30, 2017, 5:59pm UTC](https://discuss.codemirror.net/t/how-do-i-create-a-new-linter-addon-for-python/842/3 "2017-11-30T17:59:43Z")

</div>

I wasn’t able to create a linter addon, but was able to lint python online  
usinf codemirror: [https://github.com/ethanchewy/PythonBuddy](https://github.com/ethanchewy/PythonBuddy)

---

<div class="post-metadata">

### Author: ![shikhamehrotra](https://discuss.codemirror.net/user_avatar/discuss.codemirror.net/shikhamehrotra/32/1606_2.png) [@shikhamehrotra](https://discuss.codemirror.net/u/shikhamehrotra)
#### Post date: [November 12, 2021, 11:38am UTC](https://discuss.codemirror.net/t/how-do-i-create-a-new-linter-addon-for-python/842/4 "2021-11-12T11:38:15Z")

</div>

I am still not able to create the lint for python with codemirror.  
please suggest

---

<div class="post-metadata">

### Author: ![Danon](https://discuss.codemirror.net/user_avatar/discuss.codemirror.net/danon/32/1544_2.png) [@Danon](https://discuss.codemirror.net/u/Danon)
#### Post date: [November 15, 2021, 12:18pm UTC](https://discuss.codemirror.net/t/how-do-i-create-a-new-linter-addon-for-python/842/5 "2021-11-15T12:18:26Z")

</div>

Perhaps you could explain more clearly what the linter is supposed to be doing exactly?

---

<div class="post-metadata">

### Author: ![shikhamehrotra](https://discuss.codemirror.net/user_avatar/discuss.codemirror.net/shikhamehrotra/32/1606_2.png) [@shikhamehrotra](https://discuss.codemirror.net/u/shikhamehrotra)
#### Post date: [November 15, 2021, 12:32pm UTC](https://discuss.codemirror.net/t/how-do-i-create-a-new-linter-addon-for-python/842/6 "2021-11-15T12:32:22Z")

</div>

Python linter is bug and quality checker for the Python programming language and I want to use it with the codemirror. can you help?

---

<div class="post-metadata">

### Author: ![Danon](https://discuss.codemirror.net/user_avatar/discuss.codemirror.net/danon/32/1544_2.png) [@Danon](https://discuss.codemirror.net/u/Danon)
#### Post date: [November 15, 2021, 1:37pm UTC](https://discuss.codemirror.net/t/how-do-i-create-a-new-linter-addon-for-python/842/7 "2021-11-15T13:37:16Z")

</div>

@shikhamehrotra Let me understand.

You have your CodeMirror instance with Python syntax highlighting, and you’d like to parse the python code using CodeMirror highlight, and use the tree to mark certain rules, is this right?

And the rules, you’d like to write the rules yourself for the lint?

---

<div class="post-metadata">

### Author: ![shikhamehrotra](https://discuss.codemirror.net/user_avatar/discuss.codemirror.net/shikhamehrotra/32/1606_2.png) [@shikhamehrotra](https://discuss.codemirror.net/u/shikhamehrotra)
#### Post date: [November 15, 2021, 2:11pm UTC](https://discuss.codemirror.net/t/how-do-i-create-a-new-linter-addon-for-python/842/8 "2021-11-15T14:11:27Z")

</div>

Yes danial,

You understood right…can you help?

---

<div class="post-metadata">

### Author: ![Danon](https://discuss.codemirror.net/user_avatar/discuss.codemirror.net/danon/32/1544_2.png) [@Danon](https://discuss.codemirror.net/u/Danon)
#### Post date: [November 15, 2021, 2:44pm UTC](https://discuss.codemirror.net/t/how-do-i-create-a-new-linter-addon-for-python/842/9 "2021-11-15T14:44:48Z")

</div>

@shikhamehrotra What would you like to do when you detect a flaw?

Would you just like to mark it with a style, like underline, or would you like to add something more complex?

---

<div class="post-metadata">

### Author: ![shikhamehrotra](https://discuss.codemirror.net/user_avatar/discuss.codemirror.net/shikhamehrotra/32/1606_2.png) [@shikhamehrotra](https://discuss.codemirror.net/u/shikhamehrotra)
#### Post date: [November 15, 2021, 5:16pm UTC](https://discuss.codemirror.net/t/how-do-i-create-a-new-linter-addon-for-python/842/10 "2021-11-15T17:16:31Z")

</div>

I am trying something like this  
[https://codemirror.net/demo/lint.html](https://codemirror.net/demo/lint.html)

As codemieror supoorts lint for html CSS and javascript

---

<div class="post-metadata">

### Author: ![Danon](https://discuss.codemirror.net/user_avatar/discuss.codemirror.net/danon/32/1544_2.png) [@Danon](https://discuss.codemirror.net/u/Danon)
#### Post date: [November 15, 2021, 5:24pm UTC](https://discuss.codemirror.net/t/how-do-i-create-a-new-linter-addon-for-python/842/11 "2021-11-15T17:24:04Z")

</div>

Have you look at [@codemirror/lint - npm](https://www.npmjs.com/package/@codemirror/lint) ?

---

<div class="post-metadata">

### Author: ![shikhamehrotra](https://discuss.codemirror.net/user_avatar/discuss.codemirror.net/shikhamehrotra/32/1606_2.png) [@shikhamehrotra](https://discuss.codemirror.net/u/shikhamehrotra)
#### Post date: [November 15, 2021, 6:14pm UTC](https://discuss.codemirror.net/t/how-do-i-create-a-new-linter-addon-for-python/842/12 "2021-11-15T18:14:36Z")

</div>

Yes…I tried…but it’s not supporting for python linters
