Replace flake8 with ruff
Ruff is much more modern and faster. Mainly, it does not slow down our pre-commit hooks that right now take ages due to flake8. Particularly handy is that with ruff we can run `ruff check --fix netket` to fix most issues he identifies, speeding up development. Moreover, it's settings are all stored in pyproject.toml so we can remove another file.
Showing
- .flake8 0 additions, 6 deletions.flake8
- .github/workflows/formatting_check.yml 9 additions, 15 deletions.github/workflows/formatting_check.yml
- .pre-commit-config.yaml 7 additions, 6 deletions.pre-commit-config.yaml
- Benchmarks/jax_jacobian.py 0 additions, 5 deletionsBenchmarks/jax_jacobian.py
- Benchmarks/jax_sampler.py 0 additions, 1 deletionBenchmarks/jax_sampler.py
- Benchmarks/qgt.py 1 addition, 1 deletionBenchmarks/qgt.py
- Benchmarks/qgt_gcnn.py 1 addition, 8 deletionsBenchmarks/qgt_gcnn.py
- Examples/Legacy/GraphOperator/Ising/ising.py 0 additions, 1 deletionExamples/Legacy/GraphOperator/Ising/ising.py
- Examples/Legacy/Jax/flax_example.py 0 additions, 2 deletionsExamples/Legacy/Jax/flax_example.py
- Examples/Legacy/Jax/jax_sr_example.py 0 additions, 2 deletionsExamples/Legacy/Jax/jax_sr_example.py
- Examples/Legacy/MPS/mps.py 0 additions, 2 deletionsExamples/Legacy/MPS/mps.py
- Examples/Legacy/QuantumStateReconstruction/generate_data.py 0 additions, 2 deletionsExamples/Legacy/QuantumStateReconstruction/generate_data.py
- Examples/Legacy/Supervised/J1J2/load_data.py 0 additions, 1 deletionExamples/Legacy/Supervised/J1J2/load_data.py
- Examples/Legacy/Torch/torch_machine.py 0 additions, 1 deletionExamples/Legacy/Torch/torch_machine.py
- pyproject.toml 14 additions, 2 deletionspyproject.toml
- test/groundstate/test_vmc.py 0 additions, 1 deletiontest/groundstate/test_vmc.py
- test/logging/test_hdf5_log.py 1 addition, 1 deletiontest/logging/test_hdf5_log.py
- test/logging/test_runtime.py 0 additions, 2 deletionstest/logging/test_runtime.py
- test/logging/test_state_log.py 1 addition, 1 deletiontest/logging/test_state_log.py
- test/logging/test_tensorboard.py 1 addition, 2 deletionstest/logging/test_tensorboard.py
Loading
Please register or sign in to comment