Skip to content

Commit

Permalink
Include poetry and build related files as requested by WP2 (#17)
Browse files Browse the repository at this point in the history
* Change local port from 6060 to 5050

* Include poetry and build environment related files as requested by WP2.

---------

Co-authored-by: Otto Waltari <[email protected]>
  • Loading branch information
owaltari and Otto Waltari authored Aug 7, 2023
1 parent 25470e4 commit c7bc19d
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
repos:

- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.63
hooks:
- id: lint
7 changes: 7 additions & 0 deletions .reuse/dep5
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: wp4-aud_manager
Source: https://github.com/sifis-home/wp4-aud_manager

Files: *
Copyright: 2022 sifis-home
License: MIT
File renamed without changes.
53 changes: 53 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
[tool.poetry]
name = "wp4-aud_manager"
version = "0.1"
description = "Anomaly detection analytic for WP4 analytics toolbox."
authors = [""]
repository = "https://github.com/sifis-home/wp4-aud_manager"
license = "MIT"
classifiers = [
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT",
"Natural Language :: English",
"Programming Language :: Python :: 3 :: Only",
]
include = ["README.md", "LICENSES/MIT.txt"]

[tool.poetry.dependencies]
python = ">=3.9,<3.11"
docker = "^6.1.3"
websocket-client = "1.4.2"
pytest = "7.4.0"
flask = "2.2.2"

[tool.poetry.dev-dependencies]
pytest = "^7.2.1"
pre-commit = "^3.0.4"
black = "^23.1.0"
isort = "^5.12.0"
ruff = "^0.0.63"
coverage = {extras = ["toml"], version = "^7.1.0"}

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.black]
line-length = 79

[tool.isort]
profile = "black"
line_length = 79

[tool.ruff]
line-length = 79
select = [
"F401",
"F403",
]

[tool.coverage.run]
omit = [".*", "*/site-packages/*"]

[tool.coverage.report]
fail_under = 60

0 comments on commit c7bc19d

Please sign in to comment.