Skip to content

Commit

Permalink
chore(lint): use ruff from snap (canonical#715)
Browse files Browse the repository at this point in the history
  • Loading branch information
lengau authored May 16, 2024
1 parent 2339c6e commit e0ecddb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ jobs:
python-version: "3.10"
- name: Install python packages and dependencies
run: |
sudo snap install --no-wait ruff
sudo apt update
sudo apt install -y libapt-pkg-dev aspell
pip install python-apt@https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/python-apt/2.4.0ubuntu1/python-apt_2.4.0ubuntu1.tar.xz
pip install -U -e .[dev]
sudo snap watch --last=install
- name: Run black
run: |
make test-black
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ test-flake8:

.PHONY: test-ruff
test-ruff:
ruff $(SOURCES)
ruff check $(SOURCES)

.PHONY: test-integrations
test-integrations: ## Run integration tests.
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ def is_rtd() -> bool:
"pytest-mock",
"pytest-subprocess",
"requests-mock",
"ruff==0.4.3",
"tox",
"yamllint==1.32.0",
]
Expand Down

0 comments on commit e0ecddb

Please sign in to comment.