+
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
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ repos:
- types-python-dateutil
- types-requests

- repo: https://github.com/tox-dev/pyproject-fmt
rev: v2.6.0
hooks:
- id: pyproject-fmt

- repo: https://github.com/tox-dev/tox-ini-fmt
rev: '1.6.0'
hooks:
Expand Down
132 changes: 63 additions & 69 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,92 +1,86 @@
[project]
name = "holidays"
description = "Open World Holidays Framework"
license = "MIT"
license-files = ["CONTRIBUTORS", "LICENSE"]
readme = "README.md"
requires-python = ">=3.9"
dynamic = ["version"]

authors = [{ name = "Vacanza Team" }]
dependencies = ["python-dateutil"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Financial and Insurance Industry",
"Intended Audience :: Information Technology",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: File Formats :: JSON",
"Topic :: Office/Business :: Financial :: Accounting",
"Topic :: Office/Business :: Financial :: Investment",
"Topic :: Office/Business :: Scheduling",
"Topic :: Software Development :: Libraries :: Python Modules",
]
keywords = ["holidays", "calendar", "l10n", "worldwide", "vacation"]
keywords = [ "calendar", "holidays", "l10n", "vacation", "worldwide" ]
license = "MIT"
license-files = [ "CONTRIBUTORS", "LICENSE" ]
maintainers = [
{ name = "Arkadii Yakovets" },
{ name = "Panpakorn Siripanich" },
{ name = "Serhii Murza" },
{ name = "Arkadii Yakovets" },
{ name = "Panpakorn Siripanich" },
{ name = "Serhii Murza" },
]

[project.urls]
Documentation = "https://holidays.readthedocs.io/en/latest/"
Repository = "https://github.com/vacanza/holidays/"
Changelog = "https://github.com/vacanza/holidays/releases/"

[tool.coverage.run]
branch = true
omit = ["scripts/*", "setup.py", "tests/*"]
authors = [ { name = "Vacanza Team" } ]
requires-python = ">=3.9"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Financial and Insurance Industry",
"Intended Audience :: Information Technology",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: File Formats :: JSON",
"Topic :: Office/Business :: Financial :: Accounting",
"Topic :: Office/Business :: Financial :: Investment",
"Topic :: Office/Business :: Scheduling",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dynamic = [ "version" ]

[tool.isort]
known_first_party = ["holidays", "tests"]
line_length = 99
multi_line_output = 3
no_inline_sort = true
profile = "black"
skip = ["docs"]
dependencies = [ "python-dateutil" ]
urls.Changelog = "https://github.com/vacanza/holidays/releases/"
urls.Documentation = "https://holidays.readthedocs.io/en/latest/"
urls.Repository = "https://github.com/vacanza/holidays/"

[[tool.mypy.overrides]]
module = "holidays.countries.*"
disable_error_code = ["override"]
[tool.setuptools.dynamic]
version = { attr = "holidays.version.__version__" }

[[tool.mypy.overrides]]
module = "holidays.groups.*"
disable_error_code = ["attr-defined"]
[tool.setuptools.packages.find]
include = [ "holidays*" ]

[tool.ruff]
line-length = 99
target-version = "py39"

[tool.ruff.lint]
select = ["E4", "E5", "E7", "E9", "F", "N", "PLE", "S", "T", "TC", "UP", "W"]

[tool.ruff.lint.per-file-ignores]
"scripts/generate_release_notes.py" = ["T201"]
"tests/test_holiday_base.py" = ["S301"]
line-length = 99
lint.select = [ "E4", "E5", "E7", "E9", "F", "N", "PLE", "S", "T", "TC", "UP", "W" ]
lint.per-file-ignores."scripts/generate_release_notes.py" = [ "T201" ]
lint.per-file-ignores."tests/test_holiday_base.py" = [ "S301" ]
lint.flake8-errmsg.max-string-length = 99

[tool.ruff.lint.flake8-errmsg]
max-string-length = 99
[tool.isort]
known_first_party = [ "holidays", "tests" ]
line_length = 99
multi_line_output = 3
no_inline_sort = true
profile = "black"
skip = [ "docs" ]

[tool.pytest.ini_options]
addopts = [
"--cov-fail-under=100",
"--cov-fail-under=100",
]
filterwarnings = [
"ignore::DeprecationWarning:holidays.deprecations.v1_incompatibility",
"ignore::DeprecationWarning:holidays.deprecations.v1_incompatibility",
]
testpaths = ["tests"]
testpaths = [ "tests" ]

[tool.setuptools.dynamic]
version = { attr = "holidays.version.__version__" }
[tool.coverage.run]
branch = true
omit = [ "scripts/*", "setup.py", "tests/*" ]

[tool.setuptools.packages.find]
include = ["holidays*"]
[[tool.mypy.overrides]]
module = "holidays.countries.*"
disable_error_code = [ "override" ]

[[tool.mypy.overrides]]
module = "holidays.groups.*"
disable_error_code = [ "attr-defined" ]
Loading
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载