Skip to content

Commit 9f1b179

Browse files
authored
Merge pull request #236 from Chia-Network/EL.ruff
Add ruff and update
2 parents 5cbf616 + cf7c666 commit 9f1b179

15 files changed

+199
-758
lines changed

.flake8

-9
This file was deleted.

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/chia_dev_tools.egg-info
2+
/chianft.egg-info
23
/build
34
/venv
45
/dist

.isort.cfg

-4
This file was deleted.

.pre-commit-config.yaml

+16-20
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,6 @@
11
repos:
2-
- repo: local
3-
hooks:
4-
- id: isort
5-
name: isort
6-
entry: isort
7-
require_serial: true
8-
language: python
9-
language_version: python3
10-
types_or: [cython, pyi, python]
11-
args: ['--filter-files']
12-
minimum_pre_commit_version: '2.9.2'
13-
additional_dependencies: [isort==5.13.2]
142
- repo: https://github.com/pre-commit/pre-commit-hooks
15-
rev: v4.3.0
3+
rev: v5.0.0
164
hooks:
175
- id: check-yaml
186
- id: end-of-file-fixer
@@ -21,18 +9,26 @@ repos:
219
- id: check-merge-conflict
2210
- id: check-ast
2311
- id: debug-statements
24-
- repo: https://github.com/psf/black
25-
rev: 24.4.2
26-
hooks:
27-
- id: black
28-
- repo: https://github.com/pycqa/flake8
29-
rev: 7.0.0
12+
- repo: local
3013
hooks:
31-
- id: flake8
14+
- id: ruff_format
15+
name: ruff format
16+
entry: ruff format
17+
language: system
18+
require_serial: true
19+
types_or: [python, pyi]
20+
3221
- repo: local
3322
hooks:
3423
- id: mypy
3524
name: mypy
3625
entry: mypy
3726
language: system
3827
pass_filenames: false
28+
- repo: local
29+
hooks:
30+
- id: ruff
31+
name: Ruff
32+
entry: ruff check --fix
33+
language: system
34+
types: [python]

.python-black

-2
This file was deleted.

0 commit comments

Comments
 (0)