Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 11, 2021
1 parent 1eda28f commit 524a79a
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ exclude_lines =
if __name__ == .__main__.:
ignore_errors = True
omit =
tests/*
tests/*
4 changes: 2 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ jobs:
pip install build
- name: Build package
run: python -m build


- name: Upload packages to Jazzband
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: jazzband
password: ${{ secrets.JAZZBAND_RELEASE_KEY }}
repository_url: https://jazzband.co/projects/django-formtools/upload
repository_url: https://jazzband.co/projects/django-formtools/upload
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ icalevents.egg-info/*
/build

docs/_build/**
coverage.xml
coverage.xml
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
html_static_path = ['_static']
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ iCloud:
-------

.. code:: python
from icalevents.icalevents import events
es = events(<iCloud URL>, fix_apple=True)
Expand Down
2 changes: 1 addition & 1 deletion test/test_data/categories_test.ics
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ DTSTART:20201118T021500Z
DTEND:20201118T041500Z
CATEGORIES:In19-S04-IT2406,In19-S04-IT2405
END:VEVENT
END:VCALENDAR
END:VCALENDAR
4 changes: 2 additions & 2 deletions test/test_data/icloud.ics
Original file line number Diff line number Diff line change
Expand Up @@ -246,12 +246,12 @@ DTEND;TZID=Europe/Berlin:20161103T183000
DTSTAMP:20161026T154649Z
DTSTART;TZID=Europe/Berlin:20161103T180000
LAST-MODIFIED:20161026T154648Z
LOCATION:Naturpark Altmühltal\nKanalstraße 5\n91757
LOCATION:Naturpark Altmühltal\nKanalstraße 5\n91757
Treuchtlingen\nDeutschland
SEQUENCE:0
SUMMARY:Friseur
UID:003AFB7E-BA60-481A-A087-23024D956074
X-APPLE-STRUCTURED-LOCATION;VALUE=URI;X-ADDRESS=Kanalstraße 5\\n91757
X-APPLE-STRUCTURED-LOCATION;VALUE=URI;X-ADDRESS=Kanalstraße 5\\n91757
Treuchtlingen\\nDeutschland;X-APPLE-RADIUS=100;X-APPLE-REFERENCEFRAME=1;
X-TITLE=Naturpark Altmühltal:geo:48.954682,10.909644
END:VEVENT
Expand Down
4 changes: 2 additions & 2 deletions test/test_data/icloud_content.txt
Original file line number Diff line number Diff line change
Expand Up @@ -246,12 +246,12 @@ DTEND;TZID=Europe/Berlin:20161103T183000
DTSTAMP:20161026T154649Z
DTSTART;TZID=Europe/Berlin:20161103T180000
LAST-MODIFIED:20161026T154648Z
LOCATION:Naturpark Altmühltal\nKanalstraße 5\n91757
LOCATION:Naturpark Altmühltal\nKanalstraße 5\n91757
Treuchtlingen\nDeutschland
SEQUENCE:0
SUMMARY:Friseur
UID:003AFB7E-BA60-481A-A087-23024D956074
X-APPLE-STRUCTURED-LOCATION;VALUE=URI;X-ADDRESS=Kanalstraße 5\\n91757
X-APPLE-STRUCTURED-LOCATION;VALUE=URI;X-ADDRESS=Kanalstraße 5\\n91757
Treuchtlingen\\nDeutschland;X-APPLE-RADIUS=100;X-APPLE-REFERENCEFRAME=1;
X-TITLE=Naturpark Altmühltal:geo:48.954682,10.909644
END:VEVENT
Expand Down
1 change: 0 additions & 1 deletion test/test_icaldownload.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,3 @@ def test_read_only_directory(self):
# Delete tmp dir
os.chdir("..")
shutil.rmtree("tmp")

2 changes: 1 addition & 1 deletion test/test_icalparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def test_attendee(self):
def test_organizer(self):
self.assertIsInstance(self.eventA.organizer, str)
self.assertIsInstance(self.eventB.organizer, str)

def test_str(self):
self.eventA.start = datetime(year=2017, month=2, day=3, hour=12, minute=5)
self.eventA.end = datetime(year=2017, month=2, day=3, hour=15, minute=5)
Expand Down

0 comments on commit 524a79a

Please sign in to comment.