rym-lpath 0.3.0__tar.gz → 0.3.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,9 @@
1
1
  # local
2
2
  *.env*
3
3
  .DS_Store
4
+ sandbox/
5
+ Untitled*ipynb
6
+ _version.py
4
7
 
5
8
  # Byte-compiled / optimized / DLL files
6
9
  __pycache__/
@@ -131,3 +134,6 @@ dmypy.json
131
134
 
132
135
  # Pyre type checker
133
136
  .pyre/
137
+
138
+ # ruff
139
+ .ruff_cache
@@ -1,22 +1,16 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rym-lpath
3
- Version: 0.3.0
3
+ Version: 0.3.2
4
4
  Summary: A python library for accessing mappings and objects.
5
- Project-URL: Homepage, https://github.com/muppetjones/rym-py/rym-lpath
5
+ Project-URL: Homepage, https://github.com/muppetjones/rym-py/tree/main/rym-lpath
6
6
  Project-URL: Bug Tracker, https://github.com/muppetjones/rym-py/issues
7
+ Project-URL: Documentation, https://muppetjones.github.io/rym-py/rym-lpath
7
8
  Author-email: Stephen Bush <muppetjones@gmail.com>
8
9
  License: MIT
9
10
  Classifier: License :: OSI Approved :: MIT License
10
11
  Classifier: Operating System :: OS Independent
11
12
  Classifier: Programming Language :: Python :: 3
12
13
  Requires-Python: >=3.8
13
- Provides-Extra: lint
14
- Requires-Dist: black>=20.8b1; extra == 'lint'
15
- Requires-Dist: flake8>=3.8; extra == 'lint'
16
- Provides-Extra: test
17
- Requires-Dist: coverage[toml]>=7.1.0; extra == 'test'
18
- Requires-Dist: pytest-cov>=4.0.0; extra == 'test'
19
- Requires-Dist: pytest>=6.2; extra == 'test'
20
14
  Description-Content-Type: text/markdown
21
15
 
22
16
  # rym-lpath
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "rym-lpath"
3
- version = "0.3.0"
3
+ dynamic = ["version"]
4
4
  description = "A python library for accessing mappings and objects."
5
5
  authors = [
6
6
  {name = "Stephen Bush", email = "muppetjones@gmail.com"},
@@ -16,8 +16,9 @@ classifiers = [
16
16
  ]
17
17
 
18
18
  [project.urls]
19
- "Homepage" = "https://github.com/muppetjones/rym-py/rym-lpath"
19
+ "Homepage" = "https://github.com/muppetjones/rym-py/tree/main/rym-lpath"
20
20
  "Bug Tracker" = "https://github.com/muppetjones/rym-py/issues"
21
+ "Documentation" = "https://muppetjones.github.io/rym-py/rym-lpath"
21
22
 
22
23
  [build-system]
23
24
  requires = ["hatchling"]
@@ -27,13 +28,16 @@ build-backend = "hatchling.build"
27
28
  exclude = ["tests", "notebooks"]
28
29
  include = ["rym"]
29
30
 
31
+ [tool.hatch.version]
32
+ path = "rym/lpath/__about__.py"
33
+
30
34
 
31
35
  [tool.pdm]
32
36
  [tool.pdm.scripts]
33
37
  init-hooks = "pre-commit install"
34
38
  rm-hooks = "pre-commit uninstall"
35
- lint = "flake8 rym"
36
- clean = "find . -type f -name '*.py[co]' -delete -o -type d -name __pycache__ -delete"
39
+ lint = "ruff check ."
40
+ clean = "find . -type f -name '*.py[co]' -delete -o -type d -name __pycache__ -delete -o -type d -name .pytest_cache -delete"
37
41
  test = "pytest"
38
42
 
39
43
  [tool.pdm.dev-dependencies]
@@ -43,6 +47,7 @@ ipy = [
43
47
  ]
44
48
  dev = [
45
49
  "pre-commit>=3.0.4",
50
+ "ruff>=0.0.287",
46
51
  ]
47
52
  test = [
48
53
  "pytest>=7.2.1",
@@ -51,27 +56,26 @@ test = [
51
56
  "tox>=4.4.6",
52
57
  ]
53
58
 
54
- [project.optional-dependencies]
55
- test = [
56
- "pytest>=6.2",
57
- "coverage[toml]>=7.1.0",
58
- "pytest-cov>=4.0.0",
59
- ]
60
- lint = [
61
- "flake8>=3.8",
62
- "black>=20.8b1",
63
- ]
64
-
65
59
  [tool.pytest.ini_options]
66
60
  minversion = "7.0"
67
61
  addopts = [
68
- "-ra -vvv --cov=rym",
62
+ "-ra -vvv",
63
+ "--cov=rym",
69
64
  "--import-mode=importlib",
70
65
  ]
71
- testpaths = [
72
- "tests",
66
+ pythonpath = ["."]
67
+ testpaths = ["tests"]
68
+
69
+ [tool.coverage.run]
70
+ omit = [
71
+ "**/__init__.py",
72
+ "**/_version.py",
73
+ "**/__about__.py",
73
74
  ]
74
75
 
76
+ [tool.coverage.report]
77
+ show_missing = true
78
+
75
79
  [tool.black]
76
80
  line-length = 83
77
81
  target-version = ["py38", "py39", "py310"]
@@ -96,3 +100,9 @@ atomic = true
96
100
  line_length = 83
97
101
  float_to_top = true
98
102
  skip_glob = "**/__init__.py"
103
+
104
+ [tool.ruff]
105
+ ignore = []
106
+ line-length = 88
107
+ select = ["E","F","W"]
108
+ exclude = ['__init__.py']
@@ -0,0 +1 @@
1
+ __version__ = "0.3.2"
@@ -1,6 +1,6 @@
1
1
  # isort: skip_file
2
2
 
3
- try:
3
+ try: # noqa
4
4
  from ._delim import (
5
5
  get_delimiter,
6
6
  get_default_delimiter,
File without changes
File without changes
@@ -44,8 +44,8 @@ class InvalidKey(ValueError):
44
44
  def get(
45
45
  value: Any,
46
46
  key: Union[str, Iterable[str]],
47
- *,
48
47
  default: Optional[Any] = __DEFAULT,
48
+ *,
49
49
  delim: Optional[str] = None,
50
50
  ) -> Any:
51
51
  """Return the value of the property found at the given key.
File without changes