<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/atom.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Posts tagged: linting</title>
  <id>https://waylonwalker.com/tags/linting/atom.xml</id>
  <updated>2025-05-04T14:23:41Z</updated>
  <subtitle>All posts with the tag &#34;linting&#34;</subtitle>
  <link href="https://waylonwalker.com/tags/linting/" rel="alternate" type="text/html"></link>
  <link href="https://waylonwalker.com/tags/linting/atom.xml" rel="self" type="application/atom+xml"></link>
  <author>
    <name>Waylon Walker</name>
  </author>
  <generator uri="https://github.com/WaylonWalker/markata-go">markata-go</generator>
  <entry>
    <title>ruff single line import</title>
    <id>https://waylonwalker.com/ruff-single-line-import/</id>
    <updated>2025-05-04T14:23:41Z</updated>
    <published>2025-05-04T14:23:41Z</published>
    <link href="https://waylonwalker.com/ruff-single-line-import/" rel="alternate" type="text/html"></link>
    <summary type="text">I&#39;ve been using ruff to lint my python code for quite awhile now, I was pretty early to jump on it after release. Some of my projects have had a nice...</summary>
    <content type="html">&lt;p&gt;I’ve been using ruff to lint my python code for quite awhile now, I was pretty&#xA;early to jump on it after release.  Some of my projects have had a nice&#xA;force-single-line setting and some have not.  I dug into the docs and it was&#xA;not clear what I needed to make it work.&lt;/p&gt;&#xA;&lt;pre class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;tool&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;ruff&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nx&#34;&gt;select&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;I&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]&lt;/span&gt; &lt;span class=&#34;c&#34;&gt;# you probably want others as well&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;tool&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;ruff&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;isort&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nx&#34;&gt;force-single-line&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;kc&#34;&gt;true&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Turns out I was missing &lt;strong&gt;I&lt;/strong&gt;sort in the select list.&lt;/p&gt;&#xA;</content>
    <author>
      <name>Waylon Walker</name>
      <email>hello@waylonwalker.com</email>
      <uri>https://waylonwalker.com</uri>
    </author>
  </entry>
  <entry>
    <title>💭 flake8-to-ruff · PyPI</title>
    <id>https://waylonwalker.com/thought-212/</id>
    <updated>2024-03-09T02:29:51Z</updated>
    <published>2024-03-09T02:29:51Z</published>
    <link href="https://waylonwalker.com/thought-212/" rel="alternate" type="text/html"></link>
    <summary type="text">!https://pypi.org/project/flake8-to-ruff/</summary>
    <content type="html">&lt;div class=&#34;embed-card embed-card-external&#34;&gt;&#xA;  &lt;a href=&#34;https://pypi.org/project/flake8-to-ruff/&#34; class=&#34;embed-card-link&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;&#xA;    &lt;div class=&#34;embed-card-image&#34;&gt;&#xA;      &lt;img class=&#34;glightbox&#34; src=&#34;https://pypi.org/static/images/twitter.abaf4b19.webp&#34; alt=&#34;flake8-to-ruff — Convert existing Flake8 configuration to Ruff.&#34; loading=&#34;lazy&#34;/ data-glightbox=&#34;description: flake8-to-ruff — Convert existing Flake8 configuration to Ruff.&#34;&gt;&#xA;    &lt;/div&gt;&#xA;    &lt;div class=&#34;embed-card-content&#34;&gt;&#xA;      &lt;div class=&#34;embed-card-title&#34;&gt;flake8-to-ruff&lt;/div&gt;&#xA;      &lt;div class=&#34;embed-card-description&#34;&gt;Convert existing Flake8 configuration to Ruff.&lt;/div&gt;&#xA;      &lt;div class=&#34;embed-card-meta&#34;&gt;PyPI · pypi.org&lt;/div&gt;&#xA;    &lt;/div&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;Underrated python library to on board ruff, or just use it on a project where its not the norm.  ruff claims that its 99.9% compatible with black and when you read through the known differences they are clearly edge case bugs in black.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;See this page for more about the comparison to black &lt;a href=&#34;https://docs.astral.sh/ruff/faq/#how-does-ruffs-formatter-compare-to-black&#34; style=&#34;--favicon-url: url(&amp;#39;/assets/markata/link-avatars/docs.astral.sh.png&amp;#39;);&#34; data-favicon=&#34;/assets/markata/link-avatars/docs.astral.sh.png&#34; class=&#34;has-avatar  has-avatar-before&#34;&gt;https://docs.astral.sh/ruff/faq/#how-does-ruffs-formatter-compare-to-black&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;oh and I just noticed that it is maintianed by Charlie, and comes straight out of astral.&lt;/p&gt;&#xA;&lt;div class=&#34;admonition note&#34;&gt;&#xA;&lt;p class=&#34;admonition-title&#34;&gt;Note&lt;/p&gt;&#xA;&lt;p&gt;This post is a &lt;a href=&#34;/thoughts/&#34; class=&#34;wikilink&#34; data-title=&#34;Thoughts&#34; data-description=&#34;These are generally my thoughts on a web page or some sort of url, except a rare few don&amp;#39;t have a link. These are dual published off of my...&#34; data-date=&#34;2024-04-01&#34; data-preview=&#34;These are generally my thoughts on a web page or some sort of url, except a rare few don&amp;#39;t have a link. These are dual published off of my...&#34;&gt;thought&lt;/a&gt;. It’s a short note that I make&#xA;about someone else’s content online &lt;a href=&#34;/tags/thoughts/&#34; class=&#34;hashtag-tag&#34; data-tag=&#34;thoughts&#34; data-count=&#34;2&#34; data-reading-time=&#34;3&#34; data-reading-time-text=&#34;3 minutes&#34;&gt;#thoughts&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/div&gt;&#xA;</content>
    <author>
      <name>Waylon Walker</name>
      <email>hello@waylonwalker.com</email>
      <uri>https://waylonwalker.com</uri>
    </author>
  </entry>
</feed>