Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update project structure #85

Merged
merged 39 commits into from
Nov 22, 2024
Merged
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
a2cff02
updated to habapp dev
nobbi1991 Sep 24, 2024
890a0f8
added python 3.12 to tests
nobbi1991 Sep 24, 2024
323ccd0
fixed nox
nobbi1991 Sep 24, 2024
2d741ac
switch docker to py3.12
nobbi1991 Sep 26, 2024
b77ad65
fixed unittests
nobbi1991 Sep 26, 2024
1d0ed9d
updated to latest dev HABApp + py3.13
nobbi1991 Nov 16, 2024
26088ac
Merge remote-tracking branch 'refs/remotes/origin/main' into test_hab…
nobbi1991 Nov 16, 2024
e369fab
updated to latest dev HABApp + py3.13
nobbi1991 Nov 16, 2024
da8477e
changelog
nobbi1991 Nov 16, 2024
6e8c8c8
bumped nose_helper to 1.7.0
nobbi1991 Nov 16, 2024
18b5687
started with hatch and pre-commit
nobbi1991 Nov 16, 2024
f23a26b
ups
nobbi1991 Nov 16, 2024
02eb112
fixed ruff
nobbi1991 Nov 16, 2024
dec2018
removed coveragerc
nobbi1991 Nov 17, 2024
c267cb4
ruff format
nobbi1991 Nov 18, 2024
464f30e
fixed ruff + unittests
nobbi1991 Nov 20, 2024
66f64e7
ruff format
nobbi1991 Nov 20, 2024
2b850b0
refactored state charts
nobbi1991 Nov 20, 2024
b43e2fa
ruff format
nobbi1991 Nov 20, 2024
2e1af0c
added github action for tests
nobbi1991 Nov 21, 2024
80a3537
added fail-fast: false
nobbi1991 Nov 21, 2024
9f2f501
ruff format
nobbi1991 Nov 21, 2024
5ee2e3d
fixed py3.10
nobbi1991 Nov 21, 2024
0037970
some fixes
nobbi1991 Nov 21, 2024
1c33b71
fixes for py3.10
nobbi1991 Nov 21, 2024
14d82b9
updated actions to latest version
nobbi1991 Nov 21, 2024
074c4d5
added unit-tests to workflow
nobbi1991 Nov 21, 2024
9d11a27
added coverage artifact
nobbi1991 Nov 21, 2024
1895582
always upload coverage report
nobbi1991 Nov 21, 2024
000ad51
py3.10 support
nobbi1991 Nov 21, 2024
d646139
removed untested function
nobbi1991 Nov 21, 2024
1806e0e
updated versions of docker build
nobbi1991 Nov 21, 2024
6d3217e
updated versions of docker build 2
nobbi1991 Nov 21, 2024
eaa610c
added environment for publish actions
nobbi1991 Nov 21, 2024
a755db7
docstrings
nobbi1991 Nov 21, 2024
43454bf
more ruff
nobbi1991 Nov 21, 2024
ac59ef1
prepare release
nobbi1991 Nov 22, 2024
c301bfb
format
nobbi1991 Nov 22, 2024
ab65dfe
added version_check
nobbi1991 Nov 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ups
nobbi1991 committed Nov 16, 2024

Verified

This commit was signed with the committer’s verified signature.
pdabelf5 Paul Abel
commit f23a26be1b246d1d9aed4c571830537e8ac00ce0
140 changes: 140 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
[build-system]
requires = ["hatchling", "hatch-requirements-txt"]
build-backend = "hatchling.build"

[project]
name = "habapp_rules"
description = "Basic rules for HABApp"
long_description = "Basic rules for HABApp"
authors = [{ name = "Seuling N." }]
license = "Apache-2.0"
dynamic = ["dependencies", "optional-dependencies", "version"]
requires-python = ">=3.10"

[tool.coverage.report]
fail_under = 100
skip_covered = true
omit = []

[tool.coverage.run]
branch = true
omit = []
source = ["habapp_rules"]

[tool.coverage.run.plugins]
unittest = ["coverage.plugins.Unittest"]

[tool.hatch.build.targets.wheel]
include = ["habapp_rules"]

[tool.hatch.envs.lint]
detached = true
dependencies = ["pre-commit"]
[tool.hatch.envs.lint.scripts]
check = "pre-commit run --all-files"

[tool.hatch.envs.publish]
detached = true

#[tool.hatch.envs.test]
#features = ["all", "dev"]
#
#[tool.hatch.envs.test.scripts]
#ci = "pytest --cov --junitxml=test.junit --cov-config=pyproject.toml --cov-report term --cov-report xml:coverage.xml"
#local = "pytest --cov --cov-config=pyproject.toml --cov-report term --cov-report html"

[tool.hatch.envs.tests]
dependencies = ["coverage"]
#path = ["habapp_rules", "tests"]

[tool.hatch.envs.tests.scripts]
run = "python -m coverage run --rcfile=tests\\.coveragerc tests\\run_unittest.py"

[tool.hatch.metadata.hooks.requirements_txt]
files = ["requirements.txt"]

[tool.hatch.metadata] # remove when HABApp dev is released
allow-direct-references = true

[tool.hatch.version]
path = "habapp_rules/__init__.py"

#[tool.mypy]
#python_version = 3.12
#files = "habapp_rules"
#plugins = "pydantic.mypy"
#exclude = "tests"
#check_untyped_defs = true
#disallow_any_generics = true
#disallow_incomplete_defs = true
#disallow_untyped_calls = true
#extra_checks = true
#follow_imports = "silent"
#local_partial_types = true
#no_implicit_reexport = true
#show_error_codes = true
#strict_equality = true
#warn_redundant_casts = true
#warn_return_any = true
#warn_unused_configs = true
#warn_unused_ignores = true

[[tool.mypy.overrides]]
module = ["pydantic.*"]
ignore_missing_imports = true
no_implicit_reexport = false

[tool.ruff]
indent-width = 4
line-length = 250
preview = true
target-version = "py313"

[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = "dynamic"
indent-style = "space"
line-ending = "auto"
quote-style = "double"
skip-magic-trailing-comma = false

[tool.ruff.lint]
select = ["ALL"]
ignore = [
"COM812", # Missing trailing commas
"CPY", # Missing copyright notice
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
"D203", # 1 blank line required before class docstring
"D213", # Multi-line docstring summary should start at the second line
"DOC502", # Raised exception is not explicitly raised
"E501", # Line too long
"FBT001", # Boolean-typed positional argument in function definition
"FBT002", # Boolean default positional argument in function definition
"G004", # Logging statement uses f-string
"ISC001", # Implicitly concatenated string literals on one line
"PD", # Pandas
"PLR0911", # Too many return statements
"PLR0913", # Too many arguments in function definition
"PLR0917", # Too many positional arguments
"S320", # Using `lxml` to parse untrusted data is known to be vulnerable to XML attacks
"S404", # subprocess module is possibly insecure
"S603", # subprocess call: check for execution of untrusted input
"S607", # Starting a process with a partial executable path
]

[tool.ruff.lint.isort]
split-on-trailing-comma = true

[tool.ruff.lint.per-file-ignores]
# Ignore certain rules in the 'tests/' directory
"tests/*" = [
"FBT003", # Boolean-typed keyword argument in function call
"PLC2701", # Private name import
"PLR2004", # Magic value used in comparison
"S101", # Use of assert detected
"SLF001", # Private member accessed
]

[tool.ruff.lint.pydocstyle]
convention = "google"