Skip to content

Commit

Permalink
update lock file
Browse files Browse the repository at this point in the history
  • Loading branch information
ioangatop committed Jan 17, 2024
2 parents c30aa1a + eecd659 commit 2ce19bf
Show file tree
Hide file tree
Showing 4 changed files with 126 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ jobs:
name: Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Setting up PDM
uses: pdm-project/setup-pdm@v2
uses: pdm-project/setup-pdm@v3
with:
python-version: ${{ matrix.python-version }}
- name: Setting up NOX
uses: wntrblm/nox@2022.11.21
uses: wntrblm/nox@2023.04.22
with:
python-versions: ${{ matrix.python-version }}
- name: "Linting tests"
Expand Down
3 changes: 2 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,14 @@ def fmt(session: nox.Session) -> None:

@nox.session(python=PYTHON_VERSIONS[-1], tags=["lint"])
def lint(session: nox.Session) -> None:
"""Checks the source code for programmatic and stylistic errors."""
"""Checks the source code for programmatic, stylistic and security violations."""
args = session.posargs or LOCATIONS
session.run("pdm", "install", "--group", "lint", external=True)
session.run("isort", "--check-only", *args)
session.run("black", "--check", *args)
session.run("ruff", *args)
session.run("yamllint", *args)
session.run("bandit", "-q", "-c", "pyproject.toml", "-r", *args, external=True)


@nox.session(python=PYTHON_VERSIONS[-1], tags=["check"])
Expand Down
121 changes: 117 additions & 4 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ lint = [
"pyright>=1.1.295",
"yamllint>=1.29.0",
"nox>=2022.11.21",
"bandit>=1.7.6",
]
test = [
"pygments>=2.14.0",
Expand Down Expand Up @@ -63,6 +64,9 @@ convention = "google"
[tool.ruff.flake8-quotes]
docstring-quotes = "double"

[tool.bandit]
exclude_dirs = [".venv", "tests/**"]

[tool.pyright]
pythonVersion = "3.10"
reportInvalidStringEscapeSequence = false
Expand Down

0 comments on commit 2ce19bf

Please sign in to comment.