-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(nx-python): add ruff check executor and project generator (#185)
* feat(nx-python): add ruff linter * chore(nx-python-e2e): eslint auto fixes * feat(nx-python): add ruff check executor and project generator re #170 * docs(nx-python): add ruff linter to readme * fix(nx-python): sonarcloud code smells
- Loading branch information
1 parent
9d1ddf9
commit 9e631a2
Showing
15 changed files
with
1,071 additions
and
21 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
83 changes: 83 additions & 0 deletions
83
e2e/nx-python-e2e/tests/__snapshots__/nx-python.spec.ts.snap
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,83 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`nx-python e2e shared virtual environment should create nx-python project with 3 levels with shared virtual environment 1`] = ` | ||
"[tool.nx] | ||
autoActivate = true | ||
[tool.poetry] | ||
name = "@proj/source" | ||
version = "1.0.0" | ||
description = "" | ||
authors = [ ] | ||
license = "Proprietary" | ||
readme = "README.md" | ||
[tool.poetry.dependencies] | ||
python = ">=3.9,<3.11" | ||
[tool.poetry.dependencies.app1] | ||
path = "apps/app1" | ||
develop = true | ||
[tool.poetry.dependencies.lib1] | ||
path = "libs/lib1" | ||
develop = true | ||
[tool.poetry.dependencies.lib2] | ||
path = "libs/lib2" | ||
develop = true | ||
[tool.poetry.group.dev.dependencies] | ||
autopep8 = "2.0.2" | ||
flake8 = "6.0.0" | ||
pytest = "7.3.1" | ||
pytest-sugar = "0.9.7" | ||
pytest-cov = "4.1.0" | ||
pytest-html = "3.2.0" | ||
[build-system] | ||
requires = [ "poetry-core==1.1.0" ] | ||
build-backend = "poetry.core.masonry.api" | ||
" | ||
`; | ||
|
||
exports[`nx-python e2e shared virtual environment should create one nx-python project, migrate to shared venv and add 3 levels 1`] = ` | ||
"[tool.nx] | ||
autoActivate = true | ||
[tool.poetry] | ||
name = "@proj/source" | ||
version = "1.0.0" | ||
description = "" | ||
authors = [ ] | ||
license = "Proprietary" | ||
readme = "README.md" | ||
[tool.poetry.dependencies] | ||
python = ">=3.9,<3.11" | ||
[tool.poetry.dependencies.app1] | ||
path = "apps/app1" | ||
develop = true | ||
[tool.poetry.dependencies.lib1] | ||
path = "libs/lib1" | ||
develop = true | ||
[tool.poetry.dependencies.lib2] | ||
path = "libs/lib2" | ||
develop = true | ||
[tool.poetry.group.dev.dependencies] | ||
autopep8 = "2.0.2" | ||
flake8 = "6.0.0" | ||
pytest = "7.3.1" | ||
pytest-sugar = "0.9.7" | ||
pytest-cov = "4.1.0" | ||
pytest-html = "3.2.0" | ||
[build-system] | ||
requires = [ "poetry-core==1.1.0" ] | ||
build-backend = "poetry.core.masonry.api" | ||
" | ||
`; |
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
Oops, something went wrong.