Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
repos:
- repo: https://github.com/psf/black
rev: stable
hooks:
- id: black
language_version: python3.8

- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.21
hooks:
- id: isort
additional_dependencies: [toml]
language_version: python3.8

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: debug-statements

- repo: https://github.com/asottile/setup-cfg-fmt
rev: v1.9.0
hooks:
- id: setup-cfg-fmt
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
[build-system]
requires = ["setuptools>=40.8.0", "wheel"]
build-backend = "setuptools.build_meta"

[tool.isort]
atomic=true
force_grid_wrap=0
include_trailing_comma=true
multi_line_output=3
not_skip="__init__.py"
use_parentheses=true
19 changes: 9 additions & 10 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,30 @@ version = attr:tzdata.__version__
description = Provider of IANA time zone data
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/python/tzdata
author = Python Software Foundation
author_email = datetime-sig@python.org
license = Apache-2.0
license_file = LICENSE
license_files =
LICENSE
licenses/LICENSE_APACHE
url = https://github.com/python/tzdata
author = Python Software Foundation
author_email = paul@ganssle.io
classifiers =
Development Status :: 3 - Alpha
Development Status :: 4 - Beta
Intended Audience :: Developers
License :: OSI Approved :: Apache Software License
Programming Language :: Python :: 2
Programming Language :: Python :: 3

python_requires = *.* # This is a data-only package

project_urls =
Bug Reports = https://github.com/python/tzdata/issues
Source = https://github.com/python/tzdata

[options]
packages = tzdata
include_package_data=True
package_dir=
python_requires = >=2
include_package_data = True
package_dir =
=src

[bdist_wheel]
universal=1
universal = 1
1 change: 0 additions & 1 deletion src/tzdata/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@

# This exposes the original IANA version number.
IANA_VERSION = "2020a"

1 change: 0 additions & 1 deletion templates/__init__.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ __version__ = %%PACKAGE_VERSION%%

# This exposes the original IANA version number.
IANA_VERSION = %%IANA_VERSION%%