mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-02 05:46:25 -06:00
Move ignores to ruff.toml
This commit is contained in:
parent
3758391ecd
commit
296e8f4fa7
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -85,7 +85,7 @@ jobs:
|
|||||||
run: python netbox/manage.py makemigrations --check
|
run: python netbox/manage.py makemigrations --check
|
||||||
|
|
||||||
- name: Check PEP8 compliance
|
- name: Check PEP8 compliance
|
||||||
run: ruff check netbox/ --ignore E501,F403,F405
|
run: ruff check netbox/
|
||||||
|
|
||||||
- name: Check UI ESLint, TypeScript, and Prettier Compliance
|
- name: Check UI ESLint, TypeScript, and Prettier Compliance
|
||||||
run: yarn --cwd netbox/project-static validate
|
run: yarn --cwd netbox/project-static validate
|
||||||
|
@ -25,7 +25,7 @@ NetBox generally follows the [Django style guide](https://docs.djangoproject.com
|
|||||||
The [ruff](https://docs.astral.sh/ruff/) linter is used to enforce code style. A [pre-commit hook](./getting-started.md#3-enable-pre-commit-hooks) which runs this automatically is included with NetBox. To invoke `ruff` manually, run:
|
The [ruff](https://docs.astral.sh/ruff/) linter is used to enforce code style. A [pre-commit hook](./getting-started.md#3-enable-pre-commit-hooks) which runs this automatically is included with NetBox. To invoke `ruff` manually, run:
|
||||||
|
|
||||||
```
|
```
|
||||||
ruff check netbox/ --ignore E501,F403,F405
|
ruff check netbox/
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Linter Exceptions
|
#### Linter Exceptions
|
||||||
|
@ -29,7 +29,7 @@ if [ ${NOVALIDATE} ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Linting with ruff..."
|
echo "Linting with ruff..."
|
||||||
ruff check netbox/ --ignore E501,F403,F405
|
ruff check netbox/
|
||||||
if [ $? != 0 ]; then
|
if [ $? != 0 ]; then
|
||||||
EXIT=1
|
EXIT=1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user