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 - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
python -m pip install -e .[dev] python -m pip install --group dev -e .
- name: Lint with flake8 - name: Lint with flake8
run: | run: |
# stop the build if there are Python syntax errors or undefined names
ruff check src/ ruff check src/
- name: Test with pytest - name: Test with pytest
run: | run: |

View File

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