Skip to content

Commit

Permalink
Update deps and workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Jun 27, 2024
1 parent 4bc78de commit 668805b
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 83 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Lint

on:
push:
paths-ignore:
- 'docs/**'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
cache: 'pip'
python-version: 3.12

- name: Lint with ruff
run: |
python -m pip install ruff
ruff check src/
ruff format --check src/
12 changes: 4 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,19 @@ jobs:
name: Build macOS wheels
runs-on: macos-latest

strategy:
matrix:
python-version: ['3.10']

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Create release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
name: evora_wheel ${{ github.ref_name }}

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'

- name: Install dependencies
run: |
Expand Down
60 changes: 0 additions & 60 deletions .github/workflows/test.yml

This file was deleted.

36 changes: 21 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ readme = "README.md"
packages = [{include = "evora_wheel", from = "src"}]

[tool.poetry.dependencies]
python = "^3.9,<3.12"
python = "^3.9,<4"
daemonocle = "^1.0.2"
click = "^8.1.3"
sdsstools = "^1.0.2"
Expand All @@ -18,26 +18,32 @@ pyserial = "^3.5"

[tool.poetry.dev-dependencies]
ipython = ">=8.0.0"
flake8 = ">=3.7.9"
isort = ">=5.0.0"
ipdb = ">=0.13.3"
black = {version = ">=21.10b0", allow-prereleases = true}
ruff = ">=0.4.0"

[tool.poetry.scripts]
evora-wheel = "evora_wheel.__main__:evora_wheel"

[tool.black]
[tool.ruff]
line-length = 88
target-version = ['py311']
fast = true

[tool.isort]
profile = "black"
sections = ["FUTURE", "STDLIB", "TYPING", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
default_section = "THIRDPARTY"
known_first_party = "evora_wheel"
known_typing = ["typing"]
lines_after_imports = 2
target-version = 'py312'
exclude = ["typings/"]

[ruff.lint]
select = ["E", "F", "I"]
unfixable = ["F841"]

[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "F403", "E402"]

[tool.ruff.lint.isort]
known-first-party = ["evora_wheel"]
lines-after-imports = 2
section-order = ["future", "standard-library", "typing", "third-party", "sdss", "first-party", "local-folder"]

[tool.ruff.lint.isort.sections]
typing = ["typing"]
sdss = ["sdsstools"]

[build-system]
requires = ["poetry-core>=1.1.0"]
Expand Down

0 comments on commit 668805b

Please sign in to comment.