Skip to content

Commit 895bc22

Browse files
committed
Cleanup obsolete files and builds
1 parent 3072dc7 commit 895bc22

File tree

5 files changed

+19
-73
lines changed

5 files changed

+19
-73
lines changed

makefile

+1-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ SHELL := bash
44
MAKEFLAGS += --no-builtin-rules \
55
--warn-undefined-variables
66

7-
.PHONY: dist pytest test test37 typeshed
7+
.PHONY: dist pytest test
88

99
dist:
1010
if ! python3 -m pip freeze | grep -q build; then python3 -m pip install --upgrade build; fi
@@ -35,8 +35,3 @@ pytest:
3535
test:
3636
if ! command -v nosetests &>/dev/null; then python3 -m pip install --upgrade nose; fi
3737
nosetests test
38-
39-
test37:
40-
if ! command -v nosetests &>/dev/null; then python3 -m pip install --upgrade nose; fi
41-
nosetests test
42-
nosetests test37

pyproject.toml

+18-36
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,22 @@ build-backend = 'hatchling.build'
66
name = 'inject'
77
dynamic = ['version']
88
description = 'Python dependency injection framework.'
9-
license='Apache-2.0'
9+
license = 'Apache-2.0'
1010
readme = 'README.md'
11-
authors = [
12-
{ name = 'Ivan Korobkov', email = '[email protected]' },
13-
]
14-
maintainers = [
15-
{ name = 'Ivan Korobkov', email = '[email protected]' },
16-
]
11+
authors = [{ name = 'Ivan Korobkov', email = '[email protected]' }]
12+
maintainers = [{ name = 'Ivan Korobkov', email = '[email protected]' }]
1713
classifiers = [
1814
'Development Status :: 5 - Production/Stable',
1915
'Intended Audience :: Developers',
2016
'License :: OSI Approved :: Apache Software License',
2117
'Operating System :: OS Independent',
2218
'Programming Language :: Python',
23-
'Programming Language :: Python :: 3.6',
24-
'Programming Language :: Python :: 3.7',
25-
'Programming Language :: Python :: 3.8',
2619
'Programming Language :: Python :: 3.9',
2720
'Programming Language :: Python :: 3.10',
2821
'Programming Language :: Python :: 3.11',
2922
'Topic :: Software Development :: Libraries :: Python Modules',
3023
]
31-
dependencies = [
32-
]
24+
dependencies = []
3325

3426
[project.scripts]
3527

@@ -63,12 +55,7 @@ exclude = '''
6355
version-file = 'src/inject/_version.py'
6456

6557
[tool.hatch.build.targets.wheel]
66-
packages = [
67-
'src/inject',
68-
]
69-
70-
[tool.hatch.build.targets.wheel.force-include]
71-
'typeshed/pyi/inject' = 'typeshed/pyi/inject'
58+
packages = ['src/inject']
7259

7360
[tool.hatch.build.targets.wheel.shared-data]
7461

@@ -91,7 +78,6 @@ disallow_untyped_calls = true
9178
disallow_untyped_decorators = true
9279
disallow_untyped_defs = true
9380
ignore_missing_imports = true
94-
mypy_path = ['typeshed/pyi']
9581
no_implicit_optional = true
9682
python_version = '3.11'
9783
warn_redundant_casts = true
@@ -104,25 +90,17 @@ defineConstant = { DEBUG = true }
10490
exclude = []
10591
executionEnvironments = []
10692
ignore = []
107-
include = [
108-
'src/inject',
109-
'test',
110-
]
93+
include = ['src/inject', 'test']
11194
pythonPlatform = 'Linux'
11295
pythonVersion = '3.11'
11396
reportMissingImports = true
11497
reportMissingTypeStubs = false
115-
stubPath = 'typeshed/import'
11698

11799
[tool.pytest.ini_options]
118100
addopts = '-rfEX --strict-markers --tb=long'
119101
minversion = '7.2'
120-
python_files = [
121-
'test_*.py',
122-
]
123-
testpaths = [
124-
'./test',
125-
]
102+
python_files = ['test_*.py']
103+
testpaths = ['./test']
126104

127105
[tool.ruff]
128106
ignore = [
@@ -131,12 +109,18 @@ ignore = [
131109
# Allow boolean positional values in function calls, like `dict.get(... True)`
132110
'FBT003',
133111
# Ignore checks for possible passwords
134-
'S105', 'S106', 'S107',
112+
'S105',
113+
'S106',
114+
'S107',
135115
# Ignore complexity
136-
'C901', 'PLR0911', 'PLR0912', 'PLR0913', 'PLR0915',
116+
'C901',
117+
'PLR0911',
118+
'PLR0912',
119+
'PLR0913',
120+
'PLR0915',
137121
'PLC1901', # empty string comparisons
138122
'PLW2901', # `for` loop variable overwritten
139-
'SIM114', # Combine `if` branches using logical `or` operator
123+
'SIM114', # Combine `if` branches using logical `or` operator
140124
]
141125
line-length = 120
142126
select = [
@@ -179,9 +163,7 @@ inline-quotes = 'single'
179163
ban-relative-imports = 'all'
180164

181165
[tool.ruff.isort]
182-
known-first-party = [
183-
'inject',
184-
]
166+
known-first-party = ['inject']
185167

186168
[tool.ruff.per-file-ignores]
187169
# Tests can use magic values, assertions, and relative imports
File renamed without changes.
File renamed without changes.

test37/test_future.py

-31
This file was deleted.

0 commit comments

Comments
 (0)