Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
•
10952e9
1
Parent(s):
0c0a603
Use only ruff as linter and formatter
Browse files- Makefile +2 -4
- pyproject.toml +5 -9
- requirements.txt +0 -1
Makefile
CHANGED
@@ -2,12 +2,10 @@
|
|
2 |
|
3 |
|
4 |
style:
|
5 |
-
python -m black --line-length 119 .
|
6 |
-
python -m isort .
|
7 |
ruff check --fix .
|
|
|
8 |
|
9 |
|
10 |
quality:
|
11 |
-
python -m black --check --line-length 119 .
|
12 |
-
python -m isort --check-only .
|
13 |
ruff check .
|
|
|
|
2 |
|
3 |
|
4 |
style:
|
|
|
|
|
5 |
ruff check --fix .
|
6 |
+
ruff format .
|
7 |
|
8 |
|
9 |
quality:
|
|
|
|
|
10 |
ruff check .
|
11 |
+
ruff format --check .
|
pyproject.toml
CHANGED
@@ -1,13 +1,9 @@
|
|
1 |
[tool.ruff]
|
2 |
-
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
|
3 |
-
select = ["E", "F"]
|
4 |
-
ignore = ["E501"] # line too long (black is taking care of this)
|
5 |
line-length = 119
|
6 |
-
fixable = ["A", "B", "C", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "TRY", "UP", "YTT"]
|
7 |
|
8 |
-
[tool.
|
9 |
-
|
10 |
-
|
11 |
|
12 |
-
[tool.
|
13 |
-
|
|
|
1 |
[tool.ruff]
|
|
|
|
|
|
|
2 |
line-length = 119
|
|
|
3 |
|
4 |
+
[tool.ruff.lint]
|
5 |
+
select = ["E", "F"]
|
6 |
+
ignore = ["E501"] # line too long (the formatter is taking care of this)
|
7 |
|
8 |
+
[tool.ruff.lint.isort]
|
9 |
+
lines-after-imports = 2
|
requirements.txt
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
APScheduler==3.10.1
|
2 |
-
black==23.11.0
|
3 |
click==8.1.3
|
4 |
huggingface-hub>=0.18.0
|
5 |
python-dateutil==2.8.2
|
|
|
1 |
APScheduler==3.10.1
|
|
|
2 |
click==8.1.3
|
3 |
huggingface-hub>=0.18.0
|
4 |
python-dateutil==2.8.2
|