-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Reinitialize versioning Signed-off-by: GitHub <[email protected]> * Reinitialize CI Signed-off-by: GitHub <[email protected]> * Reinitialize dependencies Signed-off-by: GitHub <[email protected]> * Don't copy in all files to Containerfile Signed-off-by: GitHub <[email protected]> * Fix copy paste typo Signed-off-by: GitHub <[email protected]> * Fix typo in docs config Signed-off-by: GitHub <[email protected]> * Capitalize proper noun Signed-off-by: GitHub <[email protected]> * Let Ruff autofix Signed-off-by: GitHub <[email protected]> * Remove unused constants Signed-off-by: GitHub <[email protected]> * Let Ruff autofix Signed-off-by: GitHub <[email protected]> * Add prefix back and wrap async HTTP session in 'with' Signed-off-by: GitHub <[email protected]> * Remove pylint ignores Signed-off-by: GitHub <[email protected]> * Wrap Dragonfly API access in a class Signed-off-by: GitHub <[email protected]> * Remove the pypi command It will be put back later when actually feasilbe to implement Signed-off-by: GitHub <[email protected]> * Remove outdated env sample Signed-off-by: GitHub <[email protected]> * Begin working through Ruff lints Signed-off-by: GitHub <[email protected]> * Appease the linter Signed-off-by: GitHub <[email protected]> --------- Signed-off-by: GitHub <[email protected]>
- Loading branch information
1 parent
d612898
commit 5d3a0a6
Showing
49 changed files
with
805 additions
and
770 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# CI | ||
.github @letsbuilda/devops | ||
# Require DevOps signoff on CI changes | ||
.github @vipyrsec/devops |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: "Dependency Review" | ||
|
||
on: | ||
pull_request: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
dependency-review: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: "Checkout Repository" | ||
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 | ||
|
||
- name: "Dependency Review" | ||
uses: actions/dependency-review-action@6c5ccdad469c9f8a2996bfecaec55a631a347034 # v3.1.0 | ||
with: | ||
config-file: darbiadev/.github/.github/dependency-review-config.yaml@f185cc076161b47921c6fb6da4c1fd5e40b50bff # v3.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
FROM python:3.11-slim@sha256:edaf703dce209d774af3ff768fc92b1e3b60261e7602126276f9ceb0e3a96874 | ||
|
||
RUN adduser --disabled-password bot | ||
USER bot | ||
|
||
# Define Git SHA build argument for sentry | ||
# Define Git SHA build argument for Sentry | ||
ARG git_sha="development" | ||
ENV GIT_SHA=$git_sha | ||
|
||
WORKDIR /home/bot | ||
|
||
COPY requirements.txt . | ||
COPY requirements/requirements.txt . | ||
RUN python -m pip install --requirement requirements.txt | ||
|
||
COPY --chown=bot:bot . . | ||
COPY pyproject.toml pyproject.toml | ||
COPY src/ src/ | ||
RUN python -m pip install . | ||
|
||
CMD ["python", "-m", "bot"] | ||
RUN adduser --disabled-password bot | ||
USER bot | ||
|
||
CMD [ "python", "-m", "bot" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,45 @@ | ||
[project] | ||
name = "bot" | ||
version = "3.0.0" | ||
dynamic = ["dependencies"] | ||
version = "4.0.0" | ||
dynamic = ["dependencies", "optional-dependencies"] | ||
|
||
[project.urls] | ||
repository = "https://github.com/vipyrsec/bot/" | ||
documentation = "https://docs.vipyrsec.com/bot/" | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"pip-tools", | ||
"pre-commit", | ||
"black", | ||
"ruff", | ||
] | ||
tests = [ | ||
"pytest", | ||
] | ||
docs = [ | ||
"sphinx", | ||
"furo", | ||
"sphinx-autoapi", | ||
"toml", | ||
"releases", | ||
] | ||
|
||
[build-system] | ||
requires = ["setuptools", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools.dynamic.dependencies] | ||
file = ["requirements.txt"] | ||
file = ["requirements/requirements.txt"] | ||
|
||
[tool.setuptools.dynamic.optional-dependencies] | ||
dev = { file = ["requirements/requirements-dev.txt"] } | ||
tests = { file = ["requirements/requirements-tests.txt"] } | ||
docs = { file = ["requirements/requirements-docs.txt"] } | ||
|
||
[tool.black] | ||
target-version = ["py311"] | ||
line-length = 120 | ||
|
||
[tool.ruff] | ||
target-version = "py311" | ||
line-length = 120 | ||
select = ["ALL"] | ||
ignore = [ | ||
"G004", # (Logging statement uses f-string) - Developer UX | ||
"S101", # (Use of `assert` detected) - This should probably be changed | ||
] | ||
|
||
[tool.ruff.extend-per-file-ignores] | ||
"docs/*" = [ | ||
"INP001", # (File `tests/*.py` is part of an implicit namespace package. Add an `__init__.py`.) - Docs are not modules | ||
] | ||
"tests/*" = [ | ||
"INP001", # (File `tests/*.py` is part of an implicit namespace package. Add an `__init__.py`.) - Tests are not modules | ||
"S101", # (Use of `assert` detected) - Yes, that's the point | ||
] | ||
|
||
[tool.pytest.ini_options] | ||
addopts = "tests -r a -v --doctest-modules src" | ||
[tool.ruff.pydocstyle] | ||
convention = "numpy" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Constrain versions installed to be compatible with core dependencies | ||
--constraint requirements.txt | ||
|
||
pip-tools | ||
pre-commit | ||
black | ||
ruff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# | ||
# This file is autogenerated by pip-compile with Python 3.11 | ||
# by the following command: | ||
# | ||
# pip-compile --output-file=requirements/requirements-dev.txt requirements/requirements-dev.in | ||
# | ||
black==23.9.1 | ||
# via -r requirements/requirements-dev.in | ||
build==1.0.3 | ||
# via pip-tools | ||
cfgv==3.4.0 | ||
# via pre-commit | ||
click==8.1.7 | ||
# via | ||
# black | ||
# pip-tools | ||
distlib==0.3.7 | ||
# via virtualenv | ||
filelock==3.12.4 | ||
# via | ||
# -c requirements/requirements.txt | ||
# virtualenv | ||
identify==2.5.30 | ||
# via pre-commit | ||
mypy-extensions==1.0.0 | ||
# via black | ||
nodeenv==1.8.0 | ||
# via pre-commit | ||
packaging==23.2 | ||
# via | ||
# black | ||
# build | ||
pathspec==0.11.2 | ||
# via black | ||
pip-tools==7.3.0 | ||
# via -r requirements/requirements-dev.in | ||
platformdirs==3.11.0 | ||
# via | ||
# black | ||
# virtualenv | ||
pre-commit==3.4.0 | ||
# via -r requirements/requirements-dev.in | ||
pyproject-hooks==1.0.0 | ||
# via build | ||
pyyaml==6.0.1 | ||
# via pre-commit | ||
ruff==0.0.292 | ||
# via -r requirements/requirements-dev.in | ||
virtualenv==20.24.5 | ||
# via pre-commit | ||
wheel==0.41.2 | ||
# via pip-tools | ||
|
||
# The following packages are considered to be unsafe in a requirements file: | ||
# pip | ||
# setuptools |
Oops, something went wrong.