Skip to content

Commit

Permalink
Add ruff for general use
Browse files Browse the repository at this point in the history
  • Loading branch information
bennylope committed Aug 31, 2023
1 parent ee21957 commit c850e34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
pre-commit==3.3.3
ruff==0.0.286
pytest==7.4.0
pytest-cov==4.1.0
pytest-mock==3.11.1 # https://github.com/pytest-dev/pytest-mock/
Expand Down
14 changes: 4 additions & 10 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,10 @@ commands =
deps =
-r{toxinidir}/requirements.txt

[testenv:flake8]
[testenv:ruff]
basepython=python
skip_install=true
deps=
flake8
flake8_docstrings
ruff
commands=
flake8 src/pydiscourse --docstring-convention google --ignore D415

[flake8]
ignore = E126,E128
max-line-length = 119
exclude = .ropeproject
max-complexity = 10
ruff .

0 comments on commit c850e34

Please sign in to comment.