File tree Expand file tree Collapse file tree 3 files changed +22
-1
lines changed
Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 4444 - name : Install
4545 run : pip install --no-deps .
4646
47+ - name : Lint with Ruff
48+ run : ruff check
49+
4750 - name : Run Tests
4851 run : |
4952 python -m pytest --cov=entropy --cov-report=term-missing
Original file line number Diff line number Diff line change @@ -4,4 +4,5 @@ channels:
44dependencies :
55 - numpy
66 - pytest
7- - pytest-cov
7+ - pytest-cov
8+ - ruff
Original file line number Diff line number Diff line change @@ -11,3 +11,20 @@ dependencies = [
1111 " pytest" ,
1212 " pytest-cov"
1313]
14+
15+ # Optional upgrades beyond the default ruff rules
16+ [tool .ruff .lint ]
17+ select = [
18+ " E" , # pycodestyle
19+ " W" , # pycodestyle warnings
20+ " F" , # Pyflakes
21+ " B" , # flake8-bugbear
22+ " A" , # flake8-builtins
23+ " N" , # pep8-naming
24+ # "I", # isort: better import organization
25+ # "D", # pydocstyle: check docstrings
26+ # "C4", # flake8-comprehensions: check for code simplifications with comprehensions
27+ # "SIM", # flake8-simplify: check for code simplifications
28+ # "UP", # pyupgrade: check for syntax improvments in new python versions
29+ # "C90", # McCabe complexity
30+ ]
You can’t perform that action at this time.
0 commit comments