Skip to content

Commit

Permalink
Cleanup obsolete files and builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankorobkov committed Oct 18, 2023
1 parent 3072dc7 commit 895bc22
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 73 deletions.
7 changes: 1 addition & 6 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SHELL := bash
MAKEFLAGS += --no-builtin-rules \
--warn-undefined-variables

.PHONY: dist pytest test test37 typeshed
.PHONY: dist pytest test

dist:
if ! python3 -m pip freeze | grep -q build; then python3 -m pip install --upgrade build; fi
Expand Down Expand Up @@ -35,8 +35,3 @@ pytest:
test:
if ! command -v nosetests &>/dev/null; then python3 -m pip install --upgrade nose; fi
nosetests test

test37:
if ! command -v nosetests &>/dev/null; then python3 -m pip install --upgrade nose; fi
nosetests test
nosetests test37
54 changes: 18 additions & 36 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,22 @@ build-backend = 'hatchling.build'
name = 'inject'
dynamic = ['version']
description = 'Python dependency injection framework.'
license='Apache-2.0'
license = 'Apache-2.0'
readme = 'README.md'
authors = [
{ name = 'Ivan Korobkov', email = 'ivan.korobkov@gmail.com' },
]
maintainers = [
{ name = 'Ivan Korobkov', email = 'ivan.korobkov@gmail.com' },
]
authors = [{ name = 'Ivan Korobkov', email = 'ivan.korobkov@gmail.com' }]
maintainers = [{ name = 'Ivan Korobkov', email = 'ivan.korobkov@gmail.com' }]
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Topic :: Software Development :: Libraries :: Python Modules',
]
dependencies = [
]
dependencies = []

[project.scripts]

Expand Down Expand Up @@ -63,12 +55,7 @@ exclude = '''
version-file = 'src/inject/_version.py'

[tool.hatch.build.targets.wheel]
packages = [
'src/inject',
]

[tool.hatch.build.targets.wheel.force-include]
'typeshed/pyi/inject' = 'typeshed/pyi/inject'
packages = ['src/inject']

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

Expand All @@ -91,7 +78,6 @@ disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
ignore_missing_imports = true
mypy_path = ['typeshed/pyi']
no_implicit_optional = true
python_version = '3.11'
warn_redundant_casts = true
Expand All @@ -104,25 +90,17 @@ defineConstant = { DEBUG = true }
exclude = []
executionEnvironments = []
ignore = []
include = [
'src/inject',
'test',
]
include = ['src/inject', 'test']
pythonPlatform = 'Linux'
pythonVersion = '3.11'
reportMissingImports = true
reportMissingTypeStubs = false
stubPath = 'typeshed/import'

[tool.pytest.ini_options]
addopts = '-rfEX --strict-markers --tb=long'
minversion = '7.2'
python_files = [
'test_*.py',
]
testpaths = [
'./test',
]
python_files = ['test_*.py']
testpaths = ['./test']

[tool.ruff]
ignore = [
Expand All @@ -131,12 +109,18 @@ ignore = [
# Allow boolean positional values in function calls, like `dict.get(... True)`
'FBT003',
# Ignore checks for possible passwords
'S105', 'S106', 'S107',
'S105',
'S106',
'S107',
# Ignore complexity
'C901', 'PLR0911', 'PLR0912', 'PLR0913', 'PLR0915',
'C901',
'PLR0911',
'PLR0912',
'PLR0913',
'PLR0915',
'PLC1901', # empty string comparisons
'PLW2901', # `for` loop variable overwritten
'SIM114', # Combine `if` branches using logical `or` operator
'SIM114', # Combine `if` branches using logical `or` operator
]
line-length = 120
select = [
Expand Down Expand Up @@ -179,9 +163,7 @@ inline-quotes = 'single'
ban-relative-imports = 'all'

[tool.ruff.isort]
known-first-party = [
'inject',
]
known-first-party = ['inject']

[tool.ruff.per-file-ignores]
# Tests can use magic values, assertions, and relative imports
Expand Down
File renamed without changes.
File renamed without changes.
31 changes: 0 additions & 31 deletions test37/test_future.py

This file was deleted.

0 comments on commit 895bc22

Please sign in to comment.