Skip to content

Commit cc335c7

Browse files
committed
black -> ruff format + cleanup
1 parent a81db07 commit cc335c7

File tree

4 files changed

+4
-23
lines changed

4 files changed

+4
-23
lines changed

.flake8

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- name: Create Conda environment with the rights deps
5353
shell: "bash -l {0}"
5454
run: |
55-
conda create -n zarr-env python==${{matrix.python-version}} bsddb3 numcodecs lmdb pip nodejs flake8 mypy
55+
conda create -n zarr-env python==${{matrix.python-version}} bsddb3 numcodecs lmdb pip nodejs
5656
conda activate zarr-env
5757
npm install -g azurite
5858
- name: Install dependencies

.pre-commit-config.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@ repos:
1111
rev: 'v0.1.14'
1212
hooks:
1313
- id: ruff
14-
- repo: https://github.com/psf/black
15-
rev: 23.12.1
16-
hooks:
17-
- id: black
14+
args: [--fix, --show-fixes]
15+
- id: ruff-format
1816
- repo: https://github.com/codespell-project/codespell
1917
rev: v2.2.6
2018
hooks:

pyproject.toml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ write_to = "zarr/version.py"
8484

8585
[tool.ruff]
8686
line-length = 100
87-
exclude = [
87+
extend-exclude = [
8888
".bzr",
8989
".direnv",
9090
".eggs",
@@ -103,21 +103,6 @@ exclude = [
103103
"docs"
104104
]
105105

106-
[tool.black]
107-
line-length = 100
108-
exclude = '''
109-
/(
110-
\.git
111-
| \.mypy_cache
112-
| \.venv
113-
| _build
114-
| buck-out
115-
| build
116-
| dist
117-
| docs
118-
)/
119-
'''
120-
121106
[tool.mypy]
122107
ignore_missing_imports = true
123108
warn_unused_configs = true

0 commit comments

Comments
 (0)