Skip to content

Commit

Permalink
Updated actions
Browse files Browse the repository at this point in the history
  • Loading branch information
howroyd committed Feb 13, 2024
1 parent 1f20096 commit c95889c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 58 deletions.
52 changes: 0 additions & 52 deletions .github/workflows/bandit.yml

This file was deleted.

9 changes: 3 additions & 6 deletions .github/workflows/python-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,11 @@ jobs:
run: |
git submodule update --init --recursive
python -m pip install --upgrade pip
pip install flake8
pip install ruff
if (Test-Path requirements.txt) {pip install -r requirements.txt}
- name: Lint with flake8
- name: Lint with Ruff
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
ruff check .
windows-test:
runs-on: windows-latest
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ dynamic = ["dependencies"]
"Repository" = "https://github.com/howroyd/simonsays"
"Bug Tracker" = "https://github.com/howroyd/simonsays/issues"

[project.optional-dependencies]
dev = ["ruff"]

[tool.setuptools.packages.find]
where = ["src", "tests"]

Expand Down

0 comments on commit c95889c

Please sign in to comment.