-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
117 additions
and
90 deletions.
There are no files selected for viewing
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,21 @@ | ||
# These checks must pass before you may commit changes | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 | ||
hooks: | ||
- id: check-case-conflict | ||
- id: check-docstring-first | ||
- id: check-executables-have-shebangs | ||
- id: check-json | ||
- id: check-toml | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: mixed-line-ending | ||
- id: pretty-format-json | ||
- id: requirements-txt-fixer | ||
- id: trailing-whitespace | ||
args: [--markdown-linebreak-ext=md] | ||
- repo: https://github.com/psf/black | ||
rev: 24.8.0 | ||
hooks: | ||
- id: black |
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,11 +1,20 @@ | ||
# When making changes to this file update requirements.txt also !! | ||
# Usage: | ||
# conda -v env update --file environment.yml; pre-commit run --all-files; pycheck | ||
|
||
name: mausy5043-common | ||
|
||
channels: | ||
- conda-forge | ||
- defaults | ||
|
||
dependencies: | ||
- python=3.10 | ||
- python=3.11 | ||
- numpy | ||
- pandas | ||
- pandas-stubs | ||
- pre-commit | ||
- pip | ||
# Not on conda channels: | ||
- pip: | ||
- pylint |
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,36 +1,89 @@ | ||
# Project: mausy5043-common | ||
|
||
# Hatchling https://packaging.python.org/en/latest/key_projects/#hatch | ||
|
||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "mausy5043-common" | ||
description = "Common python functions" | ||
version = "1.6.2" # latest production version | ||
version = "1.8.1" # latest production version | ||
# version = "1.5.4" # latest test version | ||
dependencies = [ | ||
"numpy", | ||
"pandas", | ||
] | ||
description = "Common python functions" | ||
readme = "README.md" | ||
requires-python = ">=3.9" | ||
license = "MIT" | ||
authors = [ | ||
{ name="Mausy5043" }, | ||
] | ||
license = "MIT" | ||
readme = "README.md" | ||
requires-python = ">=3.8" | ||
keywords = [ | ||
"private", | ||
"Raspberry Pi", | ||
"Debian Linux" | ||
] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Operating System :: OS Independent", | ||
] | ||
dependencies = [ | ||
"numpy", | ||
"pandas", | ||
] | ||
|
||
[tool.hatch.build.targets.wheel.force-include] | ||
"./pyproject.toml" = "mausy5043_common/pyproject.toml" | ||
|
||
[project.urls] | ||
"Homepage" = "https://github.com/Mausy5043/mausy5043-common" | ||
"Bug Tracker" = "https://github.com/Mausy5043/mausy5043-common/issues" | ||
|
||
[tool.setuptools.package-data] | ||
"mausy5043-common" = ["py.typed"] | ||
# [tool.setuptools.package-data] | ||
# "mausy5043-common" = ["py.typed"] | ||
|
||
[tool.autopep8] | ||
max_line_length = 98 | ||
in-place = true | ||
recursive = true | ||
aggressive = 1 | ||
|
||
[tool.bandit] | ||
skips = [] | ||
|
||
[tool.black] | ||
line-length = 98 | ||
target-version = ["py39", "py310", "py311", "py312"] | ||
|
||
[tool.flake8] | ||
max_line_length = 98 | ||
ignore = [ | ||
# function too complex: is what we do ;-) | ||
"C901", | ||
# line too long: is checked by pylint | ||
"E501", | ||
# line break before binary: is against policy. | ||
"W503", | ||
] | ||
|
||
[tool.mypy] | ||
warn_unused_configs = true | ||
warn_redundant_casts = true | ||
warn_unused_ignores = true | ||
strict_equality = true | ||
check_untyped_defs = true | ||
disallow_subclassing_any = true | ||
disallow_untyped_decorators = true | ||
disallow_untyped_calls = true | ||
no_implicit_reexport = true | ||
|
||
[tool.pydocstyle] | ||
inherit = false | ||
convention = 'google' | ||
match = '.*\\.py' | ||
add-ignore = 'D' | ||
extra_checks = true |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.