Skip to content

Commit

Permalink
REF: Use ruff for all linting
Browse files Browse the repository at this point in the history
  • Loading branch information
sanand0 committed Jul 14, 2024
1 parent f4be0e9 commit bca37d5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
10 changes: 0 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -146,16 +146,6 @@ servicenow = [
win32 = [
"pywin32",
]
lint = [
"bandit",
"black",
"flake8",
"flake8-2020",
"flake8-blind-except",
"flake8-debugger",
"flake8-print",
"pep8-naming",
]
doc = [
"mkdocs",
"mkdocstrings",
Expand Down
8 changes: 1 addition & 7 deletions task
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,7 @@ reformat () {
}

lint () {
# Python lint with flake8
command -v flake8 2>/dev/null 2>&1 || pip install flake8 pep8-naming flake8-blind-except flake8-print flake8-debugger
flake8 gramex testlib tests pytest

# Python security check with bandit
command -v bandit 2>/dev/null 2>&1 || pip install bandit
bandit . --recursive --quiet
ruff check
}

test () {
Expand Down

0 comments on commit bca37d5

Please sign in to comment.