Skip to content

Commit 87d96dd

Browse files
committed
requrements, isort
1 parent 3242c05 commit 87d96dd

9 files changed

+18
-59
lines changed

noxfile_cov.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import nox
22

33

4-
@nox.session(python=["3.10"])
4+
@nox.session(python=["3.11"])
55
def cov_tests(session: nox.Session) -> None:
66
args = session.posargs or ["--cov"]
77
session.install(".", "pytest", "pytest-cov", "coverage[toml]")

requirements_test.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
pytest
2-
pytest-cov
3-
coverage[toml]
4-
flake8
5-
nox
2+
pytest-cov

requirements_test_extra.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
coverage[toml]
2+
black
3+
flake8
4+
nox
5+
isort

setup.cfg

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,18 @@ long_description_content_type = text/markdown
1010
url = https://github.com/ayasyrev/model_constructor
1111
license = apache2
1212
classifiers =
13-
Programming Language :: Python :: 3
13+
Programming Language :: Python :: 3.8
14+
Programming Language :: Python :: 3.9
15+
Programming Language :: Python :: 3.10
16+
Programming Language :: Python :: 3.11
1417
License :: OSI Approved :: Apache Software License
1518
Operating System :: OS Independent
1619

1720
[options]
1821
package_dir =
1922
= src
2023
packages = find:
21-
python_requires = >=3.7
24+
python_requires = >=3.8, <3.12
2225

2326
[options.packages.find]
2427
where = src

setup_.py

Lines changed: 0 additions & 50 deletions
This file was deleted.

tests/test_blocks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
import torch
55
from torch import nn
66

7-
from model_constructor.layers import SEModule, SimpleSelfAttention
87
from model_constructor.blocks import BasicBlock, BottleneckBlock
8+
from model_constructor.layers import SEModule, SimpleSelfAttention
99
from model_constructor.yaresnet import YaBasicBlock, YaBottleneckBlock
1010

1111
from .parameters import ids_fn

tests/test_helpers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ def test_cfg_repr_print(capsys: CaptureFixture[str]):
7070
cfg.print_set_fields()
7171
out = capsys.readouterr().out
7272
assert out == "Nothing changed\n"
73-
assert "name" in cfg.model_fields_set # pylint: disable=E1135:unsupported-membership-test
73+
assert (
74+
"name" in cfg.model_fields_set
75+
) # pylint: disable=E1135:unsupported-membership-test
7476
cfg = Cfg2(int_value=0)
7577
cfg.print_set_fields()
7678
out = capsys.readouterr().out

tests/test_models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from typing import Type
2+
23
import pytest
34
import torch
45
from torch import nn

tests/test_models_universal_blocks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from typing import Type
2+
23
import pytest
34
import torch
45
from torch import nn

0 commit comments

Comments
 (0)