Skip to content

Commit

Permalink
Add vim swap files to gitignore (#312)
Browse files Browse the repository at this point in the history
* tests: Run pytype as a part of tox qa testenv

* Add vim swap files to gitignore

Causing issues locally when editing files and trying to run QA

* Use path relative to the test file

* Add vim swap to MANIFEST ignore as well

Co-authored-by: Abhilash Raj <raj.abhilash1@gmail.com>
  • Loading branch information
waynew and maxking committed Nov 25, 2022
1 parent 827f232 commit c50f88e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ diffcov-*.html
prof/
.pytype/
~temp*
*.sw[a-p]
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
graft aiosmtpd
include LICENSE NOTICE *.cfg *.ini *.py *.rst *.yml *.toml
global-exclude *.py[oc]
global-exclude *.py[oc] *.sw[a-p]
2 changes: 1 addition & 1 deletion aiosmtpd/qa/test_0packaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def test_ge_master(


class TestNews:
news_rst = list(Path("..").rglob("*/NEWS.rst"))[0]
news_rst = list(Path(__file__).parent.parent.rglob("*/NEWS.rst"))[0]

def test_NEWS_version(self, aiosmtpd_version: version.Version):
with self.news_rst.open("rt") as fin:
Expand Down

0 comments on commit c50f88e

Please sign in to comment.