Skip to content

Commit 8a135d0

Browse files
ChristosTjourdain
authored andcommitted
chore(precommit): use ruff
Replace black and flake8 with ruff. Currently flake8 produces an internal error: AttributeError: 'EntryPoints' object has no attribute 'get' Which is related to incompatibility with importlib-metadata package version. We bring the configuration from trame v3.7.6.
1 parent b4842da commit 8a135d0

File tree

4 files changed

+7
-20
lines changed

4 files changed

+7
-20
lines changed

.flake8

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

.pre-commit-config.yaml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
repos:
2-
- repo: https://github.com/psf/black
3-
rev: 22.3.0
4-
hooks:
5-
- id: black
6-
entry: black --check
7-
82
- repo: https://github.com/codespell-project/codespell
93
rev: v2.1.0
104
hooks:
115
- id: codespell
126

13-
- repo: https://github.com/PyCQA/flake8
14-
rev: 4.0.1
7+
- repo: https://github.com/astral-sh/ruff-pre-commit
8+
rev: v0.8.4
159
hooks:
16-
- id: flake8
10+
- id: ruff
11+
- id: ruff-format
12+

trame/modules/simput.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
from trame_simput.module import *
1+
from trame_simput.module import * # noqa: F403

trame/widgets/simput.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from trame_simput.widgets.simput import *
1+
from trame_simput.widgets.simput import * # noqa: F403
22

33

44
def initialize(server):

0 commit comments

Comments
 (0)