Commit Graph

17 Commits

Author SHA1 Message Date
Bénédikt Tran
f44ff30673 [doc] cleanup references and update external URLs (#12182) 2024-03-25 11:39:05 +01:00
James Addison
42a0d73160 [lint] follow PEP 8 for module-level dunder names (#12180)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-03-23 19:21:22 +01:00
Chris Sewell
2d6f73ed68 🔧 Ruff format select sphinx modules with minimal diffs (#12146)
This comit removes select sphinx top-level modules from the `ruff format` exclude list.
They were selected based on the fact that they have the least diffs when formatted,
are not believe to introduce changes that would adversely affect any existing PRs.
2024-03-20 21:28:10 +01:00
Bénédikt Tran
b9b0ad856a [lint] ignore `venv` directory (#12138) 2024-03-19 11:07:08 +01:00
Chris Sewell
3f3d3d8517 🔧 Add flake8 to make style-check (#12137) 2024-03-19 10:07:41 +01:00
Adam Turner
ff79edf353 Remove `jsdump` references post removal 2023-04-28 22:50:01 +01:00
Jean-François B
8f1698f7db Ignore SIM910 for time being to appease flake8-simplify 0.20.0 2023-03-31 17:36:47 +02:00
Adam Turner
a13cf2c24d Adopt `profile = "black" for isort`
This allows using Ruff's import sorting fixers
2023-01-07 18:31:15 +00:00
danieleades
c499f66012 Add SIM113 lint (#11057)
SIM113: Use ``enumerate``
2023-01-05 11:45:29 +00:00
danieleades
f89f94354e Remove flake8 plugins in favour of Ruff (#11085)
Remove flake8-comprehensions and flake8-bugbear in favour of Ruff.

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-01-05 11:40:52 +00:00
danieleades
c2e278520e Add SIM905 lint (#11055)
This lints for use of a list of strings instead of splitting a constant string on whitespace
2023-01-02 05:02:42 +00:00
danieleades
2759c2c76b Use `any` to find elements in iterable (#11053) 2023-01-02 04:52:46 +00:00
danieleades
bd71d6e85a Add the `SIM300` lint (#11058)
``SIM300`` is 'yoda conditions' [0]. These have already been fixed in
this repo, but we might as well add the lint to prevent them being
inadvertently re-added.

[0]: https://github.com/MartinThoma/flake8-simplify#SIM300
2023-01-01 17:59:23 +00:00
danieleades
124bbce049 Fix `SIM904`, directly construct dicts (#11059) 2023-01-01 17:54:11 +00:00
Adam Turner
f852661243 Allow line breaks before binary operators 2022-12-29 15:55:52 +00:00
Adam Turner
6016b4d634 Break lists in `.flake8` to one item per line 2022-12-29 15:53:37 +00:00
Adam Turner
6b09d193a6 Rename `setup.cfg to .flake8` 2022-12-29 15:44:04 +00:00