Skip to content

Commit

Permalink
Merge main into sweep/add-sweep-config
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Mar 2, 2024
2 parents c01cf11 + 6607acb commit 84fc817
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: ruff checks

on: ["push", "pull_request"]

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up PDM with Python 3.11
uses: pdm-project/setup-pdm@v4
with:
python-version: 3.11
- name: Install dependencies
run: |
pdm install
- name: Ruff format check
run: |
pdm fmt --diff
- name: Ruff lint check
run: |
pdm lint --output-format=github
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ dist

.vscode
.fleet
.idea
.idea

.ruff_cache
13 changes: 12 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,15 @@ build-backend = "pdm.backend"
distribution = true

[tool.pdm.dev-dependencies]
dev = ["pyodide-py>=0.25.0"]
dev = ["pyodide-py~=0.25.0", "ruff~=0.3.0"]

[tool.pdm.scripts]
fmt = "ruff format"
lint = "ruff check ."

[tool.ruff]
fix = true

[tool.ruff.lint]
fixable = ["ALL"]
select = ["I", "E4", "E7", "E9", "F"]

0 comments on commit 84fc817

Please sign in to comment.