Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to Ruff #2

Open
6 of 15 tasks
jrjsmrtn opened this issue Aug 30, 2023 · 1 comment
Open
6 of 15 tasks

Switch to Ruff #2

jrjsmrtn opened this issue Aug 30, 2023 · 1 comment
Assignees

Comments

@jrjsmrtn
Copy link
Owner

jrjsmrtn commented Aug 30, 2023

  • Add Ruff support
    • Transpose .flake8:
      [flake8]
      select = B,B9,C,D,DAR,E,F,N,RST,W
      ignore = E203,E501,RST201,RST203,RST301,W503
      max-line-length = 80
      max-complexity = 10
      docstring-convention = google
      rst-roles = class,const,func,meth,mod,ref
      rst-directives = deprecated
    • Transpose bandit.yml:
      assert_used:
        skips: ["*/test_*.py"]
  • Drop flake8 linter
@jrjsmrtn jrjsmrtn self-assigned this Aug 30, 2023
@jrjsmrtn
Copy link
Owner Author

jrjsmrtn commented Sep 1, 2023

.flake8 notes

[flake8]
select = B,B9,C,D,DAR,E,F,N,RST,W
ignore = E203,E501,RST201,RST203,RST301,W503
max-line-length = 80
max-complexity = 10
docstring-convention = google
rst-roles = class,const,func,meth,mod,ref
rst-directives = deprecated
  • The B9 Bugbear 9 "opinionated warnings":
    • are disabled by default in flake8.
    • are enabled by default in ruff but includes only B904/B905.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant