nmk-python 0.13.0__tar.gz → 0.13.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.
Files changed (39) hide show
  1. {nmk-python-0.13.0/src/nmk_python.egg-info → nmk-python-0.13.2}/PKG-INFO +1 -1
  2. {nmk-python-0.13.0 → nmk-python-0.13.2}/setup.cfg +1 -1
  3. nmk-python-0.13.2/src/nmk_python/flake.py +29 -0
  4. {nmk-python-0.13.0 → nmk-python-0.13.2}/src/nmk_python/templates/python-settings.json.jinja +1 -1
  5. {nmk-python-0.13.0 → nmk-python-0.13.2/src/nmk_python.egg-info}/PKG-INFO +1 -1
  6. nmk-python-0.13.0/src/nmk_python/flake.py +0 -14
  7. {nmk-python-0.13.0 → nmk-python-0.13.2}/LICENSE +0 -0
  8. {nmk-python-0.13.0 → nmk-python-0.13.2}/README.md +0 -0
  9. {nmk-python-0.13.0 → nmk-python-0.13.2}/setup.py +0 -0
  10. {nmk-python-0.13.0 → nmk-python-0.13.2}/src/nmk_python/__init__.py +0 -0
  11. {nmk-python-0.13.0 → nmk-python-0.13.2}/src/nmk_python/badges.yml +0 -0
  12. {nmk-python-0.13.0 → nmk-python-0.13.2}/src/nmk_python/build.py +0 -0
  13. {nmk-python-0.13.0 → nmk-python-0.13.2}/src/nmk_python/build.yml +0 -0
  14. {nmk-python-0.13.0 → nmk-python-0.13.2}/src/nmk_python/doc.yml +0 -0
  15. {nmk-python-0.13.0 → nmk-python-0.13.2}/src/nmk_python/files.py +0 -0
  16. {nmk-python-0.13.0 → nmk-python-0.13.2}/src/nmk_python/files.yml +0 -0
  17. {nmk-python-0.13.0 → nmk-python-0.13.2}/src/nmk_python/flake.yml +0 -0
  18. {nmk-python-0.13.0 → nmk-python-0.13.2}/src/nmk_python/format.py +0 -0
  19. {nmk-python-0.13.0 → nmk-python-0.13.2}/src/nmk_python/format.yml +0 -0
  20. {nmk-python-0.13.0 → nmk-python-0.13.2}/src/nmk_python/plugin-defs.yml +0 -0
  21. {nmk-python-0.13.0 → nmk-python-0.13.2}/src/nmk_python/plugin.yml +0 -0
  22. {nmk-python-0.13.0 → nmk-python-0.13.2}/src/nmk_python/python.yml +0 -0
  23. {nmk-python-0.13.0 → nmk-python-0.13.2}/src/nmk_python/setup.py +0 -0
  24. {nmk-python-0.13.0 → nmk-python-0.13.2}/src/nmk_python/setup.yml +0 -0
  25. {nmk-python-0.13.0 → nmk-python-0.13.2}/src/nmk_python/templates/__init__.py +0 -0
  26. {nmk-python-0.13.0 → nmk-python-0.13.2}/src/nmk_python/templates/build.cfg +0 -0
  27. {nmk-python-0.13.0 → nmk-python-0.13.2}/src/nmk_python/templates/flake.cfg +0 -0
  28. {nmk-python-0.13.0 → nmk-python-0.13.2}/src/nmk_python/templates/isort.cfg +0 -0
  29. {nmk-python-0.13.0 → nmk-python-0.13.2}/src/nmk_python/templates/pytest.cfg +0 -0
  30. {nmk-python-0.13.0 → nmk-python-0.13.2}/src/nmk_python/templates/python-test-debug-launch.json.jinja +0 -0
  31. {nmk-python-0.13.0 → nmk-python-0.13.2}/src/nmk_python/templates/setup.py +0 -0
  32. {nmk-python-0.13.0 → nmk-python-0.13.2}/src/nmk_python/tests.py +0 -0
  33. {nmk-python-0.13.0 → nmk-python-0.13.2}/src/nmk_python/tests.yml +0 -0
  34. {nmk-python-0.13.0 → nmk-python-0.13.2}/src/nmk_python/version.py +0 -0
  35. {nmk-python-0.13.0 → nmk-python-0.13.2}/src/nmk_python/version.yml +0 -0
  36. {nmk-python-0.13.0 → nmk-python-0.13.2}/src/nmk_python.egg-info/SOURCES.txt +0 -0
  37. {nmk-python-0.13.0 → nmk-python-0.13.2}/src/nmk_python.egg-info/dependency_links.txt +0 -0
  38. {nmk-python-0.13.0 → nmk-python-0.13.2}/src/nmk_python.egg-info/requires.txt +0 -0
  39. {nmk-python-0.13.0 → nmk-python-0.13.2}/src/nmk_python.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nmk-python
3
- Version: 0.13.0
3
+ Version: 0.13.2
4
4
  Summary: Python plugin for nmk build system
5
5
  Home-page: https://github.com/dynod/nmk-python
6
6
  Author: The dynod project
@@ -15,7 +15,7 @@ exclude =
15
15
  name = nmk-python
16
16
  author = The dynod project
17
17
  maintainer = The dynod project
18
- version = 0.13.0
18
+ version = 0.13.2
19
19
  long_description = file: README.md
20
20
  long_description_content_type = text/markdown
21
21
  license = Mozilla Public License Version 2.0
@@ -0,0 +1,29 @@
1
+ import sys
2
+ from pathlib import Path
3
+ from typing import List
4
+
5
+ from nmk.model.builder import NmkTaskBuilder
6
+ from nmk.model.keys import NmkRootConfig
7
+ from nmk.utils import run_with_logs
8
+
9
+
10
+ class FlakeBuilder(NmkTaskBuilder):
11
+ def build(self, src_folders: List[str]):
12
+ # Project folder
13
+ project_folder = Path(self.model.config[NmkRootConfig.PROJECT_DIR].value)
14
+
15
+ # Work with relative folders if needed
16
+ relative_src_folders = []
17
+ for f in src_folders:
18
+ p = Path(f)
19
+ try:
20
+ p = p.relative_to(project_folder)
21
+ except ValueError: # pragma: no cover
22
+ pass
23
+ relative_src_folders.append(p)
24
+
25
+ # Delegate to flake8
26
+ run_with_logs([sys.executable, "-m", "flake8"] + relative_src_folders, self.logger, cwd=project_folder)
27
+
28
+ # Touch output file
29
+ self.main_output.touch()
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "[python]": {
3
3
  "editor.codeActionsOnSave": {
4
- "source.organizeImports": true
4
+ "source.organizeImports": "always"
5
5
  },
6
6
  "editor.defaultFormatter": "ms-python.black-formatter",
7
7
  "editor.formatOnSave": true
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nmk-python
3
- Version: 0.13.0
3
+ Version: 0.13.2
4
4
  Summary: Python plugin for nmk build system
5
5
  Home-page: https://github.com/dynod/nmk-python
6
6
  Author: The dynod project
@@ -1,14 +0,0 @@
1
- import sys
2
- from typing import List
3
-
4
- from nmk.model.builder import NmkTaskBuilder
5
- from nmk.utils import run_with_logs
6
-
7
-
8
- class FlakeBuilder(NmkTaskBuilder):
9
- def build(self, src_folders: List[str]):
10
- # Delegate to flake8
11
- run_with_logs([sys.executable, "-m", "flake8"] + src_folders, self.logger)
12
-
13
- # Touch output file
14
- self.main_output.touch()
File without changes
File without changes
File without changes