Skip to content

Commit 0481db8

Browse files
committed
black -> ruff + cleanup
1 parent f8874bf commit 0481db8

File tree

4 files changed

+9
-30
lines changed

4 files changed

+9
-30
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: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,22 @@ default_language_version:
77
python: python3
88
repos:
99
- repo: https://github.com/charliermarsh/ruff-pre-commit
10-
# Ruff version.
11-
rev: 'v0.0.224'
10+
rev: 'v0.2.1'
1211
hooks:
1312
- id: ruff
14-
# Respect `exclude` and `extend-exclude` settings.
15-
args: ["--force-exclude"]
16-
- repo: https://github.com/psf/black
17-
rev: 22.12.0
18-
hooks:
19-
- id: black
13+
args: ["--fix", "--show-fixes"]
14+
- id: ruff-format
2015
- repo: https://github.com/codespell-project/codespell
21-
rev: v2.2.5
16+
rev: v2.2.6
2217
hooks:
2318
- id: codespell
2419
args: ["-L", "ba,ihs,kake,nd,noe,nwo,te,fo,zar", "-S", "fixture"]
2520
- repo: https://github.com/pre-commit/pre-commit-hooks
26-
rev: v4.4.0
21+
rev: v4.5.0
2722
hooks:
2823
- id: check-yaml
2924
- repo: https://github.com/pre-commit/mirrors-mypy
30-
rev: v1.7.1
25+
rev: v1.8.0
3126
hooks:
3227
- id: mypy
3328
files: src

pyproject.toml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ build.hooks.vcs.version-file = "src/zarr/_version.py"
7878

7979
[tool.ruff]
8080
line-length = 100
81-
exclude = [
81+
force-exclude = true
82+
extend-exclude = [
8283
".bzr",
8384
".direnv",
8485
".eggs",
@@ -97,21 +98,6 @@ exclude = [
9798
"docs"
9899
]
99100

100-
[tool.black]
101-
line-length = 100
102-
exclude = '''
103-
/(
104-
\.git
105-
| \.mypy_cache
106-
| \.venv
107-
| _build
108-
| buck-out
109-
| build
110-
| dist
111-
| docs
112-
)/
113-
'''
114-
115101
[tool.mypy]
116102
python_version = "3.8"
117103
ignore_missing_imports = true

0 commit comments

Comments
 (0)