Skip to content

Commit

Permalink
Switch to ruff for linting
Browse files Browse the repository at this point in the history
  • Loading branch information
nickstenning committed Oct 6, 2024
1 parent 1958036 commit 159a445
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ jobs:
- uses: hynek/setup-cached-uv@v2

- name: Run tox
env:
RUFF_OUTPUT_FORMAT: github
run: >
uvx --with=tox-uv --with=tox-gh-actions
tox run --installpkg dist/*.whl
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ supervisord = "honcho.export.supervisord:Export"
systemd = "honcho.export.systemd:Export"
upstart = "honcho.export.upstart:Export"

[tool.ruff]
format.exclude = ["honcho/_version.py"]
lint.select = ["E4", "E7", "E9", "F", "I", "N", "RUF"]

[tool.setuptools.packages.find]
where = ["."]
include = ["honcho*"]
Expand Down
15 changes: 4 additions & 11 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
[tox]
envlist = py38, py39, py310, py311, py312, py313, pypy39, pypy310, lint

[flake8]
max-line-length = 110
exclude = .tox,.git,doc

[pytest]
minversion = 2.8
testpaths = tests
Expand Down Expand Up @@ -41,16 +37,13 @@ commands = coverage erase
[testenv:coverage]
deps = coverage
skip_install = true
commands =
coverage report
commands = coverage report

[testenv:lint]
deps =
flake8
pep8-naming
passenv = RUFF_OUTPUT_FORMAT
deps = ruff
skip_install = true
commands =
flake8 honcho
commands = ruff check {posargs}

[testenv:docs]
extras = docs
Expand Down

0 comments on commit 159a445

Please sign in to comment.