mirror of
https://github.com/iluvcapra/pycmx.git
synced 2025-12-31 08:50:54 +00:00
ruff for linting
This commit is contained in:
5
.flake8
5
.flake8
@@ -1,5 +0,0 @@
|
|||||||
[flake8]
|
|
||||||
per-file-ignores =
|
|
||||||
src/pycmx/__init__.py: F401
|
|
||||||
tests/__init__.py: F401
|
|
||||||
|
|
||||||
3
.github/workflows/python-package.yml
vendored
3
.github/workflows/python-package.yml
vendored
@@ -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: |
|
||||||
|
|||||||
@@ -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']
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user