Skip to content

Commit

Permalink
Linting changes
Browse files Browse the repository at this point in the history
- using LF as eol
  • Loading branch information
rsb-23 committed Mar 30, 2024
1 parent 2deaa94 commit 988932a
Show file tree
Hide file tree
Showing 16 changed files with 1,114 additions and 1,101 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text eol=lf
12 changes: 10 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,26 @@ repos:
- id: isort

- repo: https://github.com/psf/black
rev: 24.2.0
rev: 24.3.0
hooks:
- id: black
args: [-l, "120", -C]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: no-commit-to-branch
args: [-b, main, -b, master]

- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:
- id: flake8
additional_dependencies: [flake8-pyproject]

- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: forbid-crlf
- id: remove-crlf
18 changes: 9 additions & 9 deletions ACKNOWLEDGEMENTS.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Enormous thanks to:
Jeffrey Harris, for his incredible work on the original package
Tim Baxter, for all his work maintaining vobject over the past few years
Adieu, for keeping things alive on github
Kristian Glass, for his enormous help with testing and Python3 matters
Gustavo Niemeyer, for all his work on dateutil
Dave Cridland, for helping talk about vobject and working on vcard
TJ Gabbour, for putting his heart into parsing
Sameen Karim and Will Percival, for maintaining the package at Eventable.
Enormous thanks to:
Jeffrey Harris, for his incredible work on the original package
Tim Baxter, for all his work maintaining vobject over the past few years
Adieu, for keeping things alive on github
Kristian Glass, for his enormous help with testing and Python3 matters
Gustavo Niemeyer, for all his work on dateutil
Dave Cridland, for helping talk about vobject and working on vcard
TJ Gabbour, for putting his heart into parsing
Sameen Karim and Will Percival, for maintaining the package at Eventable.
1 change: 0 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,3 @@ releases.

With the possible exception of major releases, all contributions must
maintain the existing API's syntax and semantics.

14 changes: 14 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[tool.black]
target-version = ["py37", "py38", "py39", "py310", "py311"]
line-length = 120
skip-magic-trailing-comma = true

[tool.flake8]
max-line-length = 120
ignore = ["E203", "E266", "E501", "W503"]
exclude = [".git", "__pycache__", "venv"]
per-file-ignores = ["*/__init__.py: F401"]

[tool.isort]
profile = "black"
multi_line_output = 3
9 changes: 0 additions & 9 deletions setup.cfg

This file was deleted.

124 changes: 62 additions & 62 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,62 +1,62 @@
"""
VObject: module for reading vCard and vCalendar files
Description
-----------
Parses iCalendar and vCard files into Python data structures, decoding the
relevant encodings. Also serializes vobject data structures to iCalendar, vCard,
or (experimentally) hCalendar unicode strings.
Requirements
------------
Requires python 2.7 or later, dateutil 2.4.0 or later and six.
Recent changes
--------------
- Revert too-strict serialization of timestamp values - broke too many other
implementations
For older changes, see
- http://py-vobject.github.io/vobject/#release-history or
- http://vobject.skyhouseconsulting.com/history.html
"""

from setuptools import find_packages, setup

doclines = (__doc__ or "").splitlines()

setup(
name="vobject",
version="0.9.7",
author="Jeffrey Harris",
author_email="jeffrey@osafoundation.org",
maintainer="David Arnold",
maintainer_email="davida@pobox.com",
license="Apache",
zip_safe=True,
url="http://py-vobject.github.io/vobject/",
download_url="https://github.com/py-vobject/vobject/tarball/0.9.7",
bugtrack_url="https://github.com/py-vobject/vobject/issues",
entry_points={"console_scripts": ["ics_diff = vobject.ics_diff:main", "change_tz = vobject.change_tz:main"]},
include_package_data=True,
install_requires=["python-dateutil >= 2.4.0", "six"],
platforms=["any"],
packages=find_packages(),
description="A full-featured Python package for parsing and creating " "iCalendar and vCard files",
long_description="\n".join(doclines[2:]),
keywords=["vobject", "icalendar", "vcard", "ics", "vcs", "hcalendar"],
test_suite="tests",
classifiers="""
Development Status :: 5 - Production/Stable
Environment :: Console
Intended Audience :: Developers
License :: OSI Approved :: Apache Software License
Natural Language :: English
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Topic :: Text Processing""".strip().splitlines(),
)
"""
VObject: module for reading vCard and vCalendar files
Description
-----------
Parses iCalendar and vCard files into Python data structures, decoding the
relevant encodings. Also serializes vobject data structures to iCalendar, vCard,
or (experimentally) hCalendar unicode strings.
Requirements
------------
Requires python 2.7 or later, dateutil 2.4.0 or later and six.
Recent changes
--------------
- Revert too-strict serialization of timestamp values - broke too many other
implementations
For older changes, see
- http://py-vobject.github.io/vobject/#release-history or
- http://vobject.skyhouseconsulting.com/history.html
"""

from setuptools import find_packages, setup

doclines = (__doc__ or "").splitlines()

setup(
name="vobject",
version="0.9.7",
author="Jeffrey Harris",
author_email="jeffrey@osafoundation.org",
maintainer="David Arnold",
maintainer_email="davida@pobox.com",
license="Apache",
zip_safe=True,
url="http://py-vobject.github.io/vobject/",
download_url="https://github.com/py-vobject/vobject/tarball/0.9.7",
bugtrack_url="https://github.com/py-vobject/vobject/issues",
entry_points={"console_scripts": ["ics_diff = vobject.ics_diff:main", "change_tz = vobject.change_tz:main"]},
include_package_data=True,
install_requires=["python-dateutil >= 2.4.0", "six"],
platforms=["any"],
packages=find_packages(),
description="A full-featured Python package for parsing and creating " "iCalendar and vCard files",
long_description="\n".join(doclines[2:]),
keywords=["vobject", "icalendar", "vcard", "ics", "vcs", "hcalendar"],
test_suite="tests",
classifiers="""
Development Status :: 5 - Production/Stable
Environment :: Console
Intended Audience :: Developers
License :: OSI Approved :: Apache Software License
Natural Language :: English
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Topic :: Text Processing""".strip().splitlines(),
)
28 changes: 14 additions & 14 deletions test_files/availablity.ics
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
BEGIN:VAVAILABILITY
UID:test
DTSTART:20060216T000000Z
DTEND:20060217T000000Z
BEGIN:AVAILABLE
UID:test1
DTSTART:20060216T090000Z
DTEND:20060216T120000Z
DTSTAMP:20060215T000000Z
SUMMARY:Available in the morning
END:AVAILABLE
BUSYTYPE:BUSY
DTSTAMP:20060215T000000Z
END:VAVAILABILITY
BEGIN:VAVAILABILITY
UID:test
DTSTART:20060216T000000Z
DTEND:20060217T000000Z
BEGIN:AVAILABLE
UID:test1
DTSTART:20060216T090000Z
DTEND:20060216T120000Z
DTSTAMP:20060215T000000Z
SUMMARY:Available in the morning
END:AVAILABLE
BUSYTYPE:BUSY
DTSTAMP:20060215T000000Z
END:VAVAILABILITY
16 changes: 8 additions & 8 deletions test_files/freebusy.ics
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
BEGIN:VFREEBUSY
UID:test
DTSTART:20060216T010000Z
DTEND:20060216T030000Z
DTSTAMP:20060215T000000Z
FREEBUSY:20060216T010000Z/PT1H
FREEBUSY:20060216T010000Z/20060216T030000Z
END:VFREEBUSY
BEGIN:VFREEBUSY
UID:test
DTSTART:20060216T010000Z
DTEND:20060216T030000Z
DTSTAMP:20060215T000000Z
FREEBUSY:20060216T010000Z/PT1H
FREEBUSY:20060216T010000Z/20060216T030000Z
END:VFREEBUSY
2 changes: 1 addition & 1 deletion test_files/ms_tzid.ics
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ BEGIN:VEVENT
UID:CommaTest
DTSTART;TZID="Canberra, Melbourne, Sydney":20080530T150000
END:VEVENT
END:VCALENDAR
END:VCALENDAR
60 changes: 30 additions & 30 deletions test_files/recurrence.ics
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
BEGIN:VCALENDAR
VERSION
:2.0
PRODID
:-//Mozilla.org/NONSGML Mozilla Calendar V1.0//EN
BEGIN:VEVENT
CREATED
:20060327T214227Z
LAST-MODIFIED
:20060313T080829Z
DTSTAMP
:20060116T231602Z
UID
:70922B3051D34A9E852570EC00022388
SUMMARY
:Monthly - All Hands Meeting with Joe Smith
STATUS
:CONFIRMED
CLASS
:PUBLIC
RRULE
:FREQ=MONTHLY;UNTIL=20061228;INTERVAL=1;BYDAY=4TH
DTSTART
:20060126T230000Z
DTEND
:20060127T000000Z
DESCRIPTION
:Repeat Meeting: - Occurs every 4th Thursday of each month
END:VEVENT
END:VCALENDAR
BEGIN:VCALENDAR
VERSION
:2.0
PRODID
:-//Mozilla.org/NONSGML Mozilla Calendar V1.0//EN
BEGIN:VEVENT
CREATED
:20060327T214227Z
LAST-MODIFIED
:20060313T080829Z
DTSTAMP
:20060116T231602Z
UID
:70922B3051D34A9E852570EC00022388
SUMMARY
:Monthly - All Hands Meeting with Joe Smith
STATUS
:CONFIRMED
CLASS
:PUBLIC
RRULE
:FREQ=MONTHLY;UNTIL=20061228;INTERVAL=1;BYDAY=4TH
DTSTART
:20060126T230000Z
DTEND
:20060127T000000Z
DESCRIPTION
:Repeat Meeting: - Occurs every 4th Thursday of each month
END:VEVENT
END:VCALENDAR
2 changes: 1 addition & 1 deletion test_files/ruby_rrule.ics
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ SUMMARY:Something
DTSTART:20030101T070000
DTSTAMP:20080529T152100
END:VEVENT
END:VCALENDAR
END:VCALENDAR
24 changes: 12 additions & 12 deletions test_files/simple_2_0_test.ics
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//PYVOBJECT//NONSGML Version 1//EN
BEGIN:VEVENT
UID:Not very random UID
DTSTART:20060509T000000
ATTENDEE;CN=Fröhlich:mailto:froelich@example.com
CREATED:20060101T180000Z
DESCRIPTION:Test event
DTSTAMP:20170626T000000Z
END:VEVENT
END:VCALENDAR
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//PYVOBJECT//NONSGML Version 1//EN
BEGIN:VEVENT
UID:Not very random UID
DTSTART:20060509T000000
ATTENDEE;CN=Fröhlich:mailto:froelich@example.com
CREATED:20060101T180000Z
DESCRIPTION:Test event
DTSTAMP:20170626T000000Z
END:VEVENT
END:VCALENDAR
Loading

0 comments on commit 988932a

Please sign in to comment.