1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2024-12-22 07:43:09 +00:00
Commit graph

4 commits

Author SHA1 Message Date
Sam
0fb76b68ca
Use Ruff for linting and formatting. By @SAMAD101 (#1980) 2024-10-18 12:08:59 +01:00
Divyansh Singh
f0a5a36275
ci: Add ruff including print checks
Adds ruff replacing isort. Ruff comes with all flake8 rules and additional rules for print statements.

* .github/workflows/test.yml : Replace isort with ruff in comment

* .editorconfig : Update `yml` config to apply to all yaml files.

* Makefile (lint): Run ruff, remove isort

* .pre-commit-config.yaml : Remove isort, run ruff

* pyproject.toml : Configure ruff. Remove isort config.

* requirements.d/dev.txt : Add ruff, remove isort

* setup.cfg : Extend flake8 file ignore

* src/vorta/__main__.py : Add *noqa* for print statement.
2023-05-01 10:25:14 +02:00
ratchek
0cf9f0b36f
Modify pre-commit config file using autoupdate (#1601)
A new version of Poetry broke isort which caused errors when running
pre-commit.

This PR runs `pre-commit autoupdate` which updates the configuration
to use the newest isort, which has a hotfix for the bug. It also
updates pre-commit, black, and flake8 as a side-effect.

* Change black version back to 22.12
2023-02-18 18:10:24 +00:00
real-yfprojects
63b2eb1089 Configure pre-commit hooks and configure black for tests also.
These include flake8 linting, black and isort formatting
as well as some general hooks with minor checks.

* .pre-commit-config.yaml

* pyproject.toml : Run black on test files also.
2022-08-16 18:20:34 +02:00