File tree Expand file tree Collapse file tree 4 files changed +24
-5
lines changed
Expand file tree Collapse file tree 4 files changed +24
-5
lines changed Original file line number Diff line number Diff line change 3232 docker network prune -f
3333
3434 - name : Run Linter
35- run : black --diff -- check pynetbox tests
35+ run : ruff check pynetbox/ tests/
3636
3737 - name : Run Tests
3838 run : pytest --netbox-versions=${{ matrix.netbox }}
Original file line number Diff line number Diff line change 1+ # See https://pre-commit.com for more information
2+ # See https://pre-commit.com/hooks.html for more hooks
3+ repos :
4+ - repo : https://github.com/astral-sh/ruff-pre-commit
5+ rev : v0.14.1
6+ hooks :
7+ - id : ruff
8+ name : " Ruff linter"
9+ args : [ pynetbox/, tests/ ]
Original file line number Diff line number Diff line change 1010
1111# Lowercase alias for backward compatibility
1212api = Api
13+
14+ __all__ = (
15+ "Api" ,
16+ "AllocationError" ,
17+ "ContentError" ,
18+ "RequestError" ,
19+ "ParameterValidationError" ,
20+ "api" ,
21+ "__version__" ,
22+ )
Original file line number Diff line number Diff line change 1- black
2- pytest
3- pytest-docker
4- PyYAML
51mkdocs-material == 9.6.14
62mkdocstrings [python ]== 0.29.1
73pymdown-extensions >= 10.0
4+ pytest
5+ pytest-docker
6+ PyYAML
7+ ruff
You can’t perform that action at this time.
0 commit comments