Skip to content

Commit a7d8d9b

Browse files
Gunnar Atli ThoroddsenGunnar Atli Thoroddsen
authored andcommitted
Remove flake8 - use ruff
1 parent 5ce484e commit a7d8d9b

File tree

3 files changed

+37
-5
lines changed

3 files changed

+37
-5
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ jobs:
3939
command: |
4040
poetry run black --check .
4141
- run:
42-
name: Flake8 Lint Check # Uses setup.cfg for configuration
42+
name: Ruff Lint Check # See pyproject.tooml [tool.ruff]
4343
command: |
44-
poetry run flake8 .
44+
poetry run ruff .
4545
- run:
4646
name: Pylint Lint Check # Uses .pylintrc for configuration
4747
command: |

poetry.lock

Lines changed: 28 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ exclude = '''
1919
)
2020
'''
2121

22+
[tool.ruff]
23+
line-length = 79
24+
ignore = ["E501", "E741", "E731", "F401"] # Easy ignore for getting it running - can be reevaluated later
25+
2226
[tool.poetry]
2327
name = "scale-nucleus"
2428
version = "0.16.0"
@@ -57,7 +61,6 @@ pytest = [
5761
]
5862
pylint = ">=2.7.4"
5963
black = "^23.3.0"
60-
flake8 = ">=3.9.1"
6164
mypy = ">=0.812"
6265
coverage = "^5.5"
6366
pre-commit = ">=2.12.1"
@@ -69,7 +72,6 @@ sphinx-autobuild = "^2021.3.14"
6972
furo = ">=2021.10.9"
7073
sphinx-autoapi = "^1.8.4"
7174
python-dateutil = "^2.8.2"
72-
importlib-metadata = "<=5" # This hint is vital for installation in tests ¯\_(ツ)_/¯
7375

7476
[tool.poetry.scripts]
7577
nu = "cli.nu:nu"
@@ -79,6 +81,9 @@ metrics = ["Shapely", "rasterio", "scipy", "scikit-learn"]
7981
launch = ["scale-launch"]
8082

8183

84+
[tool.poetry.group.dev.dependencies]
85+
ruff = "^0.0.290"
86+
8287
[tool.pytest.ini_options]
8388
markers = [
8489
"integration: marks tests as slow (deselect with '-m \"not integration\"')",

0 commit comments

Comments
 (0)