Skip to content

Commit f8db075

Browse files
committed
Deleted unused paths.pyproject, used paths.root in pkg.dir init
1 parent fe58fce commit f8db075

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

remove-json-keys/noxfile.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@
55
import nox
66

77
paths = sn(root=Path(__file__).parent)
8-
paths.pyproject = paths.root / 'pyproject.toml'
98
sys.path.insert(0, str(paths.root / 'utils'))
109

1110
from lib import toml # type: ignore
1211

1312
def session(func) : return nox.session(venv_backend='none')(func)
1413

15-
pkg = sn(dir=Path(__file__).parent.name)
14+
pkg = sn(dir=paths.root.name)
1615
pkg.name = pkg.dir.replace('-', '_')
1716

1817
# SESSIONS

translate-messages/noxfile.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@
55
import nox
66

77
paths = sn(root=Path(__file__).parent)
8-
paths.pyproject = paths.root / 'pyproject.toml'
98
sys.path.insert(0, str(paths.root / 'utils'))
109

1110
from lib import toml # type: ignore
1211

1312
def session(func) : return nox.session(venv_backend='none')(func)
1413

15-
pkg = sn(dir=Path(__file__).parent.name)
14+
pkg = sn(dir=paths.root.name)
1615
pkg.name = pkg.dir.replace('-', '_')
1716

1817
# SESSIONS

0 commit comments

Comments
 (0)