kopia lustrzana https://github.com/jazzband/icalevents
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.cipull/83/head
rodzic
1eda28ff87
commit
524a79a11d
|
@ -10,4 +10,4 @@ exclude_lines =
|
|||
if __name__ == .__main__.:
|
||||
ignore_errors = True
|
||||
omit =
|
||||
tests/*
|
||||
tests/*
|
||||
|
|
|
@ -29,7 +29,7 @@ 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')
|
||||
|
@ -37,4 +37,4 @@ jobs:
|
|||
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
|
||||
|
|
|
@ -10,4 +10,4 @@ icalevents.egg-info/*
|
|||
/build
|
||||
|
||||
docs/_build/**
|
||||
coverage.xml
|
||||
coverage.xml
|
||||
|
|
|
@ -58,4 +58,4 @@ html_theme_options = {
|
|||
# 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']
|
||||
|
|
|
@ -16,7 +16,7 @@ iCloud:
|
|||
-------
|
||||
|
||||
.. code:: python
|
||||
|
||||
|
||||
from icalevents.icalevents import events
|
||||
|
||||
es = events(<iCloud URL>, fix_apple=True)
|
||||
|
|
|
@ -24,4 +24,4 @@ DTSTART:20201118T021500Z
|
|||
DTEND:20201118T041500Z
|
||||
CATEGORIES:In19-S04-IT2406,In19-S04-IT2405
|
||||
END:VEVENT
|
||||
END:VCALENDAR
|
||||
END:VCALENDAR
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -92,4 +92,3 @@ DTSTART:19180331T020000
|
|||
# Delete tmp dir
|
||||
os.chdir("..")
|
||||
shutil.rmtree("tmp")
|
||||
|
||||
|
|
|
@ -100,7 +100,7 @@ class ICalParserTests(unittest.TestCase):
|
|||
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)
|
||||
|
|
Ładowanie…
Reference in New Issue