rym-lpath 0.3.1__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.
@@ -2,6 +2,8 @@
2
2
  *.env*
3
3
  .DS_Store
4
4
  sandbox/
5
+ Untitled*ipynb
6
+ _version.py
5
7
 
6
8
  # Byte-compiled / optimized / DLL files
7
9
  __pycache__/
@@ -132,3 +134,6 @@ dmypy.json
132
134
 
133
135
  # Pyre type checker
134
136
  .pyre/
137
+
138
+ # ruff
139
+ .ruff_cache
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rym-lpath
3
- Version: 0.3.1
3
+ Version: 0.3.2
4
4
  Summary: A python library for accessing mappings and objects.
5
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
@@ -11,13 +11,6 @@ Classifier: License :: OSI Approved :: MIT License
11
11
  Classifier: Operating System :: OS Independent
12
12
  Classifier: Programming Language :: Python :: 3
13
13
  Requires-Python: >=3.8
14
- Provides-Extra: lint
15
- Requires-Dist: black>=20.8b1; extra == 'lint'
16
- Requires-Dist: flake8>=3.8; extra == 'lint'
17
- Provides-Extra: test
18
- Requires-Dist: coverage[toml]>=7.1.0; extra == 'test'
19
- Requires-Dist: pytest-cov>=4.0.0; extra == 'test'
20
- Requires-Dist: pytest>=6.2; extra == 'test'
21
14
  Description-Content-Type: text/markdown
22
15
 
23
16
  # rym-lpath
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "rym-lpath"
3
- version = "0.3.1"
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"},
@@ -28,13 +28,16 @@ build-backend = "hatchling.build"
28
28
  exclude = ["tests", "notebooks"]
29
29
  include = ["rym"]
30
30
 
31
+ [tool.hatch.version]
32
+ path = "rym/lpath/__about__.py"
33
+
31
34
 
32
35
  [tool.pdm]
33
36
  [tool.pdm.scripts]
34
37
  init-hooks = "pre-commit install"
35
38
  rm-hooks = "pre-commit uninstall"
36
- lint = "flake8 rym"
37
- 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"
38
41
  test = "pytest"
39
42
 
40
43
  [tool.pdm.dev-dependencies]
@@ -44,6 +47,7 @@ ipy = [
44
47
  ]
45
48
  dev = [
46
49
  "pre-commit>=3.0.4",
50
+ "ruff>=0.0.287",
47
51
  ]
48
52
  test = [
49
53
  "pytest>=7.2.1",
@@ -52,27 +56,26 @@ test = [
52
56
  "tox>=4.4.6",
53
57
  ]
54
58
 
55
- [project.optional-dependencies]
56
- test = [
57
- "pytest>=6.2",
58
- "coverage[toml]>=7.1.0",
59
- "pytest-cov>=4.0.0",
60
- ]
61
- lint = [
62
- "flake8>=3.8",
63
- "black>=20.8b1",
64
- ]
65
-
66
59
  [tool.pytest.ini_options]
67
60
  minversion = "7.0"
68
61
  addopts = [
69
- "-ra -vvv --cov=rym",
62
+ "-ra -vvv",
63
+ "--cov=rym",
70
64
  "--import-mode=importlib",
71
65
  ]
72
- testpaths = [
73
- "tests",
66
+ pythonpath = ["."]
67
+ testpaths = ["tests"]
68
+
69
+ [tool.coverage.run]
70
+ omit = [
71
+ "**/__init__.py",
72
+ "**/_version.py",
73
+ "**/__about__.py",
74
74
  ]
75
75
 
76
+ [tool.coverage.report]
77
+ show_missing = true
78
+
76
79
  [tool.black]
77
80
  line-length = 83
78
81
  target-version = ["py38", "py39", "py310"]
@@ -97,3 +100,9 @@ atomic = true
97
100
  line_length = 83
98
101
  float_to_top = true
99
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