Get rid of setup.cfg

I don't mind having a pytest.ini and I know I could fold it into tox.ini.
I just don't want to have two general purpose config files.
This commit is contained in:
Hynek Schlawack 2019-10-17 10:31:11 +02:00
parent b7814c6b1f
commit a9a32a21a1
5 changed files with 23 additions and 23 deletions

View File

@ -23,6 +23,7 @@ repos:
rev: v4.3.21
hooks:
- id: isort
additional_dependencies: [toml]
language_version: python3.7
- repo: https://github.com/pre-commit/pre-commit-hooks

View File

@ -1,4 +1,4 @@
include LICENSE *.rst *.toml *.yml *.yaml
include LICENSE *.rst *.toml *.yml *.yaml *.ini
graft .github
# Stubs

View File

@ -7,6 +7,20 @@ build-backend = "setuptools.build_meta"
line-length = 79
[tool.isort]
atomic=true
force_grid_wrap=0
include_trailing_comma=true
lines_after_imports=2
lines_between_types=1
multi_line_output=3
not_skip="__init__.py"
use_parentheses=true
known_first_party="attr"
known_third_party=["attr", "hypothesis", "pytest", "setuptools", "six", "zope"]
[tool.towncrier]
package = "attr"
package_dir = "src"

7
pytest.ini Normal file
View File

@ -0,0 +1,7 @@
[tool:pytest]
strict = true
addopts = -ra
testpaths = tests
filterwarnings =
once::Warning
ignore:::pympler[.*]

View File

@ -1,22 +0,0 @@
[tool:pytest]
minversion = 3.0
strict = true
addopts = -ra
testpaths = tests
filterwarnings =
once::Warning
ignore:::pympler[.*]
[isort]
atomic=true
force_grid_wrap=0
include_trailing_comma=true
lines_after_imports=2
lines_between_types=1
multi_line_output=3
not_skip=__init__.py
use_parentheses=true
known_first_party=attr
known_third_party=hypothesis,pytest,setuptools,six,zope