ruff for linting

This commit is contained in:
2025-12-18 21:43:12 -08:00
parent fe1e59e731
commit a8d00470d4
3 changed files with 4 additions and 11 deletions

View File

@@ -1,5 +0,0 @@
[flake8]
per-file-ignores =
src/pycmx/__init__.py: F401
tests/__init__.py: F401

View File

@@ -26,10 +26,9 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e .[dev]
python -m pip install --group dev -e .
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
ruff check src/
- name: Test with pytest
run: |

View File

@@ -29,10 +29,11 @@ classifiers = [
[project.optional-dependencies]
doc = [
'sphinx >= 5.3.0',
'sphinx_rtd_theme >= 1.1.1'
'sphinx_rtd_theme >= 1.1.1',
]
dev = [
'pytest',
'ruff>=0.14.10'
]
[project.urls]
@@ -42,9 +43,7 @@ Repository = "https://github.com/iluvcapra/pycmx.git"
Tracker = "https://github.com/iluvcapra/pycmx/issues"
[dependency-groups]
dev = [
"ruff>=0.14.10",
]
dev = ['ruff']
doc = ['sphinx', 'sphinx_rtd_theme']