-
Notifications
You must be signed in to change notification settings - Fork 8
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
86 changed files
with
768 additions
and
1,187 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
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ name = "spacepackets" | |
description = "Various CCSDS and ECSS packet implementations" | ||
readme = "README.md" | ||
version = "0.25.0" | ||
requires-python = ">=3.8" | ||
requires-python = ">=3.9" | ||
license = {text = "Apache-2.0"} | ||
authors = [ | ||
{name = "Robin Mueller", email = "[email protected]"} | ||
|
@@ -38,7 +38,73 @@ dependencies = [ | |
[tool.setuptools.packages] | ||
find = {} | ||
|
||
[tool.ruff] | ||
exclude = [ | ||
".git", | ||
"venv", | ||
"docs" | ||
] | ||
line-length = 100 | ||
|
||
[tool.ruff.lint] | ||
ignore = ["E501"] | ||
select = [ | ||
# See https://docs.astral.sh/ruff/rules/ | ||
"F", # pyflakes | ||
"E", # pycodestyle | ||
"W", # pycodestyle | ||
"I", # isort | ||
"N", # pep8-naming | ||
# "D", # pydocstyle (documentation!) | ||
"ANN", # flake8-annotations | ||
"UP", # pyupgrade | ||
"ASYNC", # flake8-async | ||
"S", # flake8-bandit | ||
"B", # flake8-bugbear | ||
"A", # flake8-builtins | ||
"C4", # flake8-comprehensions | ||
"DTZ", # flake8-datetimez | ||
"ICN", # flake8-import-conventions | ||
"INP", # flake8-no-pep420 | ||
"PIE", # flake8-pie | ||
"PYI", # flake8-pyi | ||
"RSE", # flake8-raise | ||
"RET", # flake8-return | ||
"SIM", # flake8-simplify | ||
"TID", # flake8-tidy | ||
"TCH", # flake8-type-checking | ||
"PERF", # Performance | ||
"FURB", # Refurb rules | ||
"PL", # Pylint | ||
"RUF" # ruff specific | ||
] | ||
ignore = [ | ||
"N818", # Exception names should end in "Error", requires API change | ||
"S101", # Use of assert, should be changed in the future | ||
"ANN204", # Do not use return typing on __init__, __new__ and __call__ methods | ||
"E111", # Recommended to be disabled when using the ruff formatter | ||
"E114" # Recommended to be disabled when using the ruff formatter | ||
] | ||
|
||
[tool.ruff.lint.extend-per-file-ignores] | ||
"__init__.py" = ["F401"] | ||
"tests/*" = [ | ||
"INP001", # Tests are implicit namespace packets | ||
"S101", # Tests use assert | ||
"S105", # Tests use hardcoded test credentials | ||
"S108", # Tests use temporary files names | ||
"S311", # Tests use random without cryptographic security requirements | ||
"ANN", # Type hints in test are not required | ||
"PLR0912", # Too many branches | ||
"PLR0915", # Too many statements | ||
"PLR2004", # Magic values in comparison are common in tests | ||
"D" # No documentation rules in tests | ||
] | ||
"examples/*" = [ | ||
"INP001", # Examples are implicit namespace packets | ||
"S101", # Examples use assert | ||
"S104", # Possible binding to all interfaces | ||
"S108", # Temp files | ||
"PLR0915" # Too many statements | ||
] | ||
|
||
[tool.ruff.lint.pylint] | ||
max-args = 10 |
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,15 +1,15 @@ | ||
"""This package contains all CCSDS related components""" | ||
|
||
from .spacepacket import ( | ||
SpHeader, | ||
SpacePacketHeader, | ||
SpacePacket, | ||
PacketType, | ||
SequenceFlags, | ||
SPACE_PACKET_HEADER_SIZE, | ||
AbstractSpacePacket, | ||
PacketId, | ||
PacketSeqCtrl, | ||
AbstractSpacePacket, | ||
SPACE_PACKET_HEADER_SIZE, | ||
PacketType, | ||
SequenceFlags, | ||
SpacePacket, | ||
SpacePacketHeader, | ||
SpHeader, | ||
get_total_space_packet_len_from_len_field, | ||
) | ||
from .time import * # noqa: F403 # re-export |
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,4 +1,4 @@ | ||
"""This module contains the CCSDS specific time code implementations.""" | ||
|
||
from .common import CcsdsTimeProvider, CcsdsTimeCodeId, SECONDS_PER_DAY, MS_PER_DAY | ||
from .cds import CdsShortTimestamp | ||
from .common import MS_PER_DAY, SECONDS_PER_DAY, CcsdsTimeCodeId, CcsdsTimeProvider |
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
Oops, something went wrong.