home.social

#halstead — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #halstead, aggregated by home.social.

  1. I'm sure I've seen this #VW #Scirocco round this way - this wouldn't be a surprise as JayEmm is local - he is from North #Essex and the video has been made in #Halstead near the border with #Suffolk

    I considered getting one myself, but the 2,0 litre petrol isn't as common (I didn't want the diesel as I occasionally drive into ULEZ area), its hard to find one that hasn't been poorly modified or high mileage and there is far less storage/boot space than in the Golf (which it is based on) which is partly why this model was never that popular (and was deleted in 2018)

    #cars

    youtube.com/watch?v=eZkspHZu1MA

  2. So I've created a #wily report for one thousand Black (the Python formatter) commits.

    You can see that there was a huge (and complex), 7k lines __init__.py that got broken up around May 2021.

    There's a trend of increasing LOC and complexity.

    This report shows me there's a lot to improve in wily's code. Hopefully I'm back at that.

    @hugovk @ambv

    #Python #Black #formatter #CodeStyle #Cyclomatic #Complexity #Halstead #codequality #codemetrics

    devdanzin.github.io/black/

  3. So I've created a #wily report for one thousand Black (the Python formatter) commits.

    You can see that there was a huge (and complex), 7k lines __init__.py that got broken up around May 2021.

    There's a trend of increasing LOC and complexity.

    This report shows me there's a lot to improve in wily's code. Hopefully I'm back at that.

    @hugovk @ambv

    #Python #Black #formatter #CodeStyle #Cyclomatic #Complexity #Halstead #codequality #codemetrics

    devdanzin.github.io/black/

  4. So I've created a #wily report for one thousand Black (the Python formatter) commits.

    You can see that there was a huge (and complex), 7k lines __init__.py that got broken up around May 2021.

    There's a trend of increasing LOC and complexity.

    This report shows me there's a lot to improve in wily's code. Hopefully I'm back at that.

    @hugovk @ambv

    #Python #Black #formatter #CodeStyle #Cyclomatic #Complexity #Halstead #codequality #codemetrics

    devdanzin.github.io/black/

  5. So I've created a #wily report for one thousand Black (the Python formatter) commits.

    You can see that there was a huge (and complex), 7k lines __init__.py that got broken up around May 2021.

    There's a trend of increasing LOC and complexity.

    This report shows me there's a lot to improve in wily's code. Hopefully I'm back at that.

    @hugovk @ambv

    #Python #Black #formatter #CodeStyle #Cyclomatic #Complexity #Halstead #codequality #codemetrics

    devdanzin.github.io/black/

  6. So I've created a #wily report for one thousand Black (the Python formatter) commits.

    You can see that there was a huge (and complex), 7k lines __init__.py that got broken up around May 2021.

    There's a trend of increasing LOC and complexity.

    This report shows me there's a lot to improve in wily's code. Hopefully I'm back at that.

    @hugovk @ambv

    #Python #Black #formatter #CodeStyle #Cyclomatic #Complexity #Halstead #codequality #codemetrics

    devdanzin.github.io/black/

  7. Adding JSON support for #wily: now the results of diff, index, rank and report can be output as JSON.

    If you can help with code review or tips on how to improve the output, I'm open to all suggestions.

    Wily is a CLI application for tracking, reporting on complexity of Python code. It uses git to go through each revision and run complexity and code-analysis metrics over the code.

    #python #Cyclomatic #Complexity #Halstead

    github.com/tonybaloney/wily/pu

  8. Mike Driscoll: Learning About Code Metrics in #Python with Radon

    Nice introduction to #radon:

    """
    You can use Radon to help you find complex code in your code base.
    [...]
    Here are the four commands that radon currently can use:

    cc: compute #Cyclomatic #Complexity
    raw: compute raw metrics
    mi: compute #Maintainability Index
    hal: compute #Halstead complexity metrics
    [...]
    """

    #codequality #codemetrics

    blog.pythonlibrary.org/2023/09

  9. At last, submitted a proposal for a #Python source code annotator for #wily, by @tonybaloney.

    It allows inline visualization of code metrics in source code, inspired by @coveragepy

    Uses #radon to calculate #Cyclomatic #Complexity and #Halstead metrics, then adds color coded metric values to a #Pygments highlighted source listing and allows changing the metrics for visualization.

    The code works, there are screenshots and an example in the linked issue.

    #codequality

    github.com/tonybaloney/wily/is

  10. Today I wrote some trivial #python code to convert .gitignore rules to #radon exclude/ignore patterns. It turns out it was completely unnecessary for our project (#wily), because we already pass a tight list of targets for radon to scan.

    But it might be useful for upstream radon users, as an option to gather exclude/ignore rules from .gitignore. So I'll propose that as a new feature and see how it goes.

    #codequality #Cyclomatic #Complexity #Halstead #gitignore

    github.com/rubik/radon

  11. Proposed 2 simple PRs to #radon, adding class names to method names in Halstead reports. A third is in the works, adding line numbers to #Halstead metrics.

    "Radon is a #Python tool that computes various metrics from the source code. Radon can compute:

    #McCabe's complexity, i.e. #cyclomatic #complexity

    raw metrics (these include SLOC, comment lines, blank lines, &c.)

    Halstead metrics (all of them)

    #Maintainability Index (the one used in Visual Studio)"

    #codequality

    github.com/rubik/radon

  12. Working on a #Python source code annotator for #wily, which uses #radon to calculate #Cyclomatic #Complexity and #Halstead metrics. It adds metric values to a #Pygments highlighted source listing and allows changing the metrics for visualization.

    Because radon doesn't record line numbers for Halstead metrics, we do a little song and dance to add them. Will probably offer a patch to include them upstream.

    #codequality 🐍

    devdanzin.github.io/wily/annot

  13. Some more #Python code quality visualization improvements for #wily: it's now possible to annotate source code with #Halstead metrics (#Cyclomatic #Complexity was already working) and select which one to display and use to color code blocks.

    See a sample report here: devdanzin.github.io/wily/ (click the filenames for the annotated source code).

    Code for the annotator currently lives at github.com/devdanzin/wily/tree, I hope to submit it for upstreaming soon-ish.

    #CodeQuality

  14. Adding JSON support for #wily: now the results of diff, index, rank and report can be output as JSON.

    If you can help with code review or tips on how to improve the output, I'm open to all suggestions.

    Wily is a CLI application for tracking, reporting on complexity of Python code. It uses git to go through each revision and run complexity and code-analysis metrics over the code.

    #python #Cyclomatic #Complexity #Halstead

    github.com/tonybaloney/wily/pu

  15. Adding JSON support for #wily: now the results of diff, index, rank and report can be output as JSON.

    If you can help with code review or tips on how to improve the output, I'm open to all suggestions.

    Wily is a CLI application for tracking, reporting on complexity of Python code. It uses git to go through each revision and run complexity and code-analysis metrics over the code.

    #python #Cyclomatic #Complexity #Halstead

    github.com/tonybaloney/wily/pu

  16. Adding JSON support for #wily: now the results of diff, index, rank and report can be output as JSON.

    If you can help with code review or tips on how to improve the output, I'm open to all suggestions.

    Wily is a CLI application for tracking, reporting on complexity of Python code. It uses git to go through each revision and run complexity and code-analysis metrics over the code.

    #python #Cyclomatic #Complexity #Halstead

    github.com/tonybaloney/wily/pu

  17. Adding JSON support for #wily: now the results of diff, index, rank and report can be output as JSON.

    If you can help with code review or tips on how to improve the output, I'm open to all suggestions.

    Wily is a CLI application for tracking, reporting on complexity of Python code. It uses git to go through each revision and run complexity and code-analysis metrics over the code.

    #python #Cyclomatic #Complexity #Halstead

    github.com/tonybaloney/wily/pu

  18. At last, submitted a proposal for a #Python source code annotator for #wily, by @tonybaloney.

    It allows inline visualization of code metrics in source code, inspired by @coveragepy

    Uses #radon to calculate #Cyclomatic #Complexity and #Halstead metrics, then adds color coded metric values to a #Pygments highlighted source listing and allows changing the metrics for visualization.

    The code works, there are screenshots and an example in the linked issue.

    #codequality

    github.com/tonybaloney/wily/is

  19. At last, submitted a proposal for a #Python source code annotator for #wily, by @tonybaloney.

    It allows inline visualization of code metrics in source code, inspired by @coveragepy

    Uses #radon to calculate #Cyclomatic #Complexity and #Halstead metrics, then adds color coded metric values to a #Pygments highlighted source listing and allows changing the metrics for visualization.

    The code works, there are screenshots and an example in the linked issue.

    #codequality

    github.com/tonybaloney/wily/is

  20. At last, submitted a proposal for a #Python source code annotator for #wily, by @tonybaloney.

    It allows inline visualization of code metrics in source code, inspired by @coveragepy

    Uses #radon to calculate #Cyclomatic #Complexity and #Halstead metrics, then adds color coded metric values to a #Pygments highlighted source listing and allows changing the metrics for visualization.

    The code works, there are screenshots and an example in the linked issue.

    #codequality

    github.com/tonybaloney/wily/is

  21. At last, submitted a proposal for a #Python source code annotator for #wily, by @tonybaloney.

    It allows inline visualization of code metrics in source code, inspired by @coveragepy

    Uses #radon to calculate #Cyclomatic #Complexity and #Halstead metrics, then adds color coded metric values to a #Pygments highlighted source listing and allows changing the metrics for visualization.

    The code works, there are screenshots and an example in the linked issue.

    #codequality

    github.com/tonybaloney/wily/is

  22. Today I wrote some trivial #python code to convert .gitignore rules to #radon exclude/ignore patterns. It turns out it was completely unnecessary for our project (#wily), because we already pass a tight list of targets for radon to scan.

    But it might be useful for upstream radon users, as an option to gather exclude/ignore rules from .gitignore. So I'll propose that as a new feature and see how it goes.

    #codequality #Cyclomatic #Complexity #Halstead #gitignore

    github.com/rubik/radon

  23. Today I wrote some trivial #python code to convert .gitignore rules to #radon exclude/ignore patterns. It turns out it was completely unnecessary for our project (#wily), because we already pass a tight list of targets for radon to scan.

    But it might be useful for upstream radon users, as an option to gather exclude/ignore rules from .gitignore. So I'll propose that as a new feature and see how it goes.

    #codequality #Cyclomatic #Complexity #Halstead #gitignore

    github.com/rubik/radon

  24. Today I wrote some trivial #python code to convert .gitignore rules to #radon exclude/ignore patterns. It turns out it was completely unnecessary for our project (#wily), because we already pass a tight list of targets for radon to scan.

    But it might be useful for upstream radon users, as an option to gather exclude/ignore rules from .gitignore. So I'll propose that as a new feature and see how it goes.

    #codequality #Cyclomatic #Complexity #Halstead #gitignore

    github.com/rubik/radon

  25. Today I wrote some trivial #python code to convert .gitignore rules to #radon exclude/ignore patterns. It turns out it was completely unnecessary for our project (#wily), because we already pass a tight list of targets for radon to scan.

    But it might be useful for upstream radon users, as an option to gather exclude/ignore rules from .gitignore. So I'll propose that as a new feature and see how it goes.

    #codequality #Cyclomatic #Complexity #Halstead #gitignore

    github.com/rubik/radon

  26. Working on a #Python source code annotator for #wily, which uses #radon to calculate #Cyclomatic #Complexity and #Halstead metrics. It adds metric values to a #Pygments highlighted source listing and allows changing the metrics for visualization.

    Because radon doesn't record line numbers for Halstead metrics, we do a little song and dance to add them. Will probably offer a patch to include them upstream.

    #codequality 🐍

    devdanzin.github.io/wily/annot

  27. Working on a #Python source code annotator for #wily, which uses #radon to calculate #Cyclomatic #Complexity and #Halstead metrics. It adds metric values to a #Pygments highlighted source listing and allows changing the metrics for visualization.

    Because radon doesn't record line numbers for Halstead metrics, we do a little song and dance to add them. Will probably offer a patch to include them upstream.

    #codequality 🐍

    devdanzin.github.io/wily/annot

  28. Working on a #Python source code annotator for #wily, which uses #radon to calculate #Cyclomatic #Complexity and #Halstead metrics. It adds metric values to a #Pygments highlighted source listing and allows changing the metrics for visualization.

    Because radon doesn't record line numbers for Halstead metrics, we do a little song and dance to add them. Will probably offer a patch to include them upstream.

    #codequality 🐍

    devdanzin.github.io/wily/annot

  29. Working on a #Python source code annotator for #wily, which uses #radon to calculate #Cyclomatic #Complexity and #Halstead metrics. It adds metric values to a #Pygments highlighted source listing and allows changing the metrics for visualization.

    Because radon doesn't record line numbers for Halstead metrics, we do a little song and dance to add them. Will probably offer a patch to include them upstream.

    #codequality 🐍

    devdanzin.github.io/wily/annot

  30. Some more #Python code quality visualization improvements for #wily: it's now possible to annotate source code with #Halstead metrics (#Cyclomatic #Complexity was already working) and select which one to display and use to color code blocks.

    See a sample report here: devdanzin.github.io/wily/ (click the filenames for the annotated source code).

    Code for the annotator currently lives at github.com/devdanzin/wily/tree, I hope to submit it for upstreaming soon-ish.

    #CodeQuality

  31. Some more #Python code quality visualization improvements for #wily: it's now possible to annotate source code with #Halstead metrics (#Cyclomatic #Complexity was already working) and select which one to display and use to color code blocks.

    See a sample report here: devdanzin.github.io/wily/ (click the filenames for the annotated source code).

    Code for the annotator currently lives at github.com/devdanzin/wily/tree, I hope to submit it for upstreaming soon-ish.

    #CodeQuality

  32. Some more #Python code quality visualization improvements for #wily: it's now possible to annotate source code with #Halstead metrics (#Cyclomatic #Complexity was already working) and select which one to display and use to color code blocks.

    See a sample report here: devdanzin.github.io/wily/ (click the filenames for the annotated source code).

    Code for the annotator currently lives at github.com/devdanzin/wily/tree, I hope to submit it for upstreaming soon-ish.

    #CodeQuality

  33. Mike Driscoll: Learning About Code Metrics in #Python with Radon

    Nice introduction to #radon:

    """
    You can use Radon to help you find complex code in your code base.
    [...]
    Here are the four commands that radon currently can use:

    cc: compute #Cyclomatic #Complexity
    raw: compute raw metrics
    mi: compute #Maintainability Index
    hal: compute #Halstead complexity metrics
    [...]
    """

    #codequality #codemetrics

    blog.pythonlibrary.org/2023/09

  34. Mike Driscoll: Learning About Code Metrics in #Python with Radon

    Nice introduction to #radon:

    """
    You can use Radon to help you find complex code in your code base.
    [...]
    Here are the four commands that radon currently can use:

    cc: compute #Cyclomatic #Complexity
    raw: compute raw metrics
    mi: compute #Maintainability Index
    hal: compute #Halstead complexity metrics
    [...]
    """

    #codequality #codemetrics

    blog.pythonlibrary.org/2023/09

  35. Mike Driscoll: Learning About Code Metrics in #Python with Radon

    Nice introduction to #radon:

    """
    You can use Radon to help you find complex code in your code base.
    [...]
    Here are the four commands that radon currently can use:

    cc: compute #Cyclomatic #Complexity
    raw: compute raw metrics
    mi: compute #Maintainability Index
    hal: compute #Halstead complexity metrics
    [...]
    """

    #codequality #codemetrics

    blog.pythonlibrary.org/2023/09

  36. Mike Driscoll: Learning About Code Metrics in #Python with Radon

    Nice introduction to #radon:

    """
    You can use Radon to help you find complex code in your code base.
    [...]
    Here are the four commands that radon currently can use:

    cc: compute #Cyclomatic #Complexity
    raw: compute raw metrics
    mi: compute #Maintainability Index
    hal: compute #Halstead complexity metrics
    [...]
    """

    #codequality #codemetrics

    blog.pythonlibrary.org/2023/09