diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ab45b5e7..1a16fe8a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/MANIFEST.in b/MANIFEST.in index 852830df..9d51513d 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,4 @@ -include LICENSE *.rst *.toml *.yml *.yaml +include LICENSE *.rst *.toml *.yml *.yaml *.ini graft .github # Stubs diff --git a/pyproject.toml b/pyproject.toml index 5657791d..c17e4247 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 00000000..cda68440 --- /dev/null +++ b/pytest.ini @@ -0,0 +1,7 @@ +[tool:pytest] +strict = true +addopts = -ra +testpaths = tests +filterwarnings = + once::Warning + ignore:::pympler[.*] diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 3fc9f695..00000000 --- a/setup.cfg +++ /dev/null @@ -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