Skip to content

Commit

Permalink
Update CI linting checks (#415)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian authored Nov 26, 2024
1 parent 459296e commit f17dac6
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 16 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/python-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
sccache: 'true'
# manylinux: ${{ matrix.platform.manylinux }} # https://github.com/PyO3/maturin-action/issues/245

- name: Cargo lint + format
- name: Cargo lint + format icechunk-python
shell: bash
working-directory: icechunk
run: |
Expand All @@ -71,15 +71,14 @@ jobs:
pip install icechunk['test'] --find-links dist --force-reinstall
mypy python
# - name: ruff
# shell: bash
# working-directory: icechunk-python
# run: |
# set -e
# python3 -m venv .venv
# source .venv/bin/activate
# pip install icechunk['test'] --find-links dist --force-reinstall
# ruff check
- name: pre-commit lint
shell: bash
working-directory: icechunk-python
run: |
set -e
source .venv/bin/activate
pip install pre-commit
SKIP=just-rust pre-commit run --all-files
- name: Restore cached hypothesis directory
id: restore-hypothesis-cache
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/python-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ jobs:
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
working-directory: icechunk-python
name: wheels-linux-${{ matrix.platform.target }}
path: icechunk-python/dist

Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ repos:
- id: mixed-line-ending
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: 'v0.7.2'
rev: 'v0.8.0'
hooks:
- id: ruff-format
- id: ruff
args: ["--fix", "--show-fixes", "icechunk-python/"]
- repo: https://github.com/rhysd/actionlint
rev: v1.6.26
rev: v1.7.4
hooks:
- id: actionlint
files: ".github/workflows/"
Expand All @@ -28,7 +28,7 @@ repos:
- id: codespell
- repo: local
hooks:
- id: format-lint
- id: just-rust
name: just
description: Run the just pre-commit step
entry: just pre-commit
Expand Down
1 change: 0 additions & 1 deletion icechunk-python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ ignore = [
"E501", # line too long - let the formatter worry about that
"E731", # do not assign a lambda expression, use a def
"UP007", # use X | Y for type annotations
"UP027", # deprecated
"C40", # unnecessary generator, comprehension, or literal
"PGH003", # type:ignore without code
"PIE790", # unnecessary pass statement
Expand Down
2 changes: 1 addition & 1 deletion icechunk-python/python/icechunk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
from zarr.core.sync import SyncMixin

__all__ = [
"__version__",
"IcechunkStore",
"S3Credentials",
"SnapshotMetadata",
"StorageConfig",
"StoreConfig",
"VirtualRefConfig",
"__version__",
]


Expand Down

0 comments on commit f17dac6

Please sign in to comment.