From 3e01ac7b3c04b5c833676a080ce59c717d2e05e2 Mon Sep 17 00:00:00 2001 From: Md Azam Date: Wed, 15 Jul 2020 14:05:17 -0300 Subject: [PATCH] fix tox+isort configurations to prepare for pypi publishing --- .isort.cfg | 1 - MANIFEST.in | 3 +++ tox.ini | 9 ++++----- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.isort.cfg b/.isort.cfg index 73ca350..316025c 100644 --- a/.isort.cfg +++ b/.isort.cfg @@ -3,5 +3,4 @@ check=1 diff=1 known_third_party=antlr4,enum,dateutil,six,stix2patterns,typing known_first_party=stix2matcher -not_skip=__init__.py force_sort_within_sections=1 diff --git a/MANIFEST.in b/MANIFEST.in index cc2dfdc..00bf378 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,5 +1,8 @@ +include .isort.cfg +include .pre-commit-config.yaml include *.md include *.txt include LICENSE +include CHANGELOG.rst include tox.ini recursive-include stix2matcher/test/testcases *.json diff --git a/tox.ini b/tox.ini index 4c857fe..e1e2028 100644 --- a/tox.ini +++ b/tox.ini @@ -17,17 +17,16 @@ passenv = CI TRAVIS TRAVIS_* deps = flake8 commands = - flake8 + flake8 ./stix2matcher -[testenv:isort-check] +[isort] deps = isort commands = - isort -rc stix2matcher -df - isort -rc stix2matcher -c + isort stix2matcher --df + isort stix2matcher -c [pycodestyle] max-line-length=160 -exclude=grammars [flake8] max-line-length=160