Skip to content

Commit

Permalink
v11.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
GitRon committed Jul 15, 2024
1 parent d49f49a commit f1f92c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 41 deletions.
32 changes: 3 additions & 29 deletions .ambient-package-update/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
tagline="Python toolbox of Ambient Digital containing an abundance of useful tools and gadgets.",
),
dependencies=[
"Django>=4.2",
f"Django>={SUPPORTED_DJANGO_VERSIONS[0]}",
"python-dateutil>=2.5.3",
# We keep this until we drop Python 3.8
"pytz",
Expand Down Expand Up @@ -67,37 +67,11 @@
RuffIgnoredInspection(key="B905", comment="Can be enabled when Python <=3.9 support is dropped"),
RuffIgnoredInspection(key="DTZ001", comment='TODO will affect "tz_today()" method'),
RuffIgnoredInspection(key="DTZ005", comment='TODO will affect "tz_today()" method'),
RuffIgnoredInspection(key="TD002", comment="Missing author in TODO"),
RuffIgnoredInspection(key="TD003", comment="Missing issue link on the line following this TODO"),
RuffIgnoredInspection(key="D1", comment="Missing docstring"),
RuffIgnoredInspection(
key="RUF012", comment="Mutable class attributes should be annotated with `typing.ClassVar`"
),
RuffIgnoredInspection(
key="D200",
comment="Fits-on-one-line",
),
RuffIgnoredInspection(
key="D203", comment="one-blank-line-before-class - incompatible to D211 no-blank-line-before-class"
),
RuffIgnoredInspection(
key="D205", comment="Checks docstring summary lines not separated from the docstring description"
),
RuffIgnoredInspection(
key="D212",
comment="Multi-line-summary-first-line",
),
RuffIgnoredInspection(
key="D400",
comment="Checks docstrings in which the first line does not end in a period -> ! ? should also be allowed",
),
RuffIgnoredInspection(
key="D401", comment="Checks function docstrings that include the function's signature in the summary line"
),
RuffIgnoredInspection(
key="D415",
comment='Checks first line docstrings doesn\'t end in a punctuation mark, ".", "?", "!" -> weird behavior',
),
RuffIgnoredInspection(key="TD002", comment="Missing author in TODO"),
RuffIgnoredInspection(key="TD003", comment="Missing issue link on the line following this TODO"),
RuffIgnoredInspection(key="TRY002", comment="Checks for code that raises Exception directly."),
RuffIgnoredInspection(
key="TRY003",
Expand Down
14 changes: 2 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ dev = [
'mistune<2.0.0',
'flit~=3.9',
'keyring~=25.2',
'ambient-package-update~=24.7.2',
'ambient-package-update~=24.7.3',
'gevent~=23.9',
'httpx~=0.27',
]
Expand Down Expand Up @@ -101,7 +101,6 @@ lint.select = [
"PERF", # PerfLint
"PGH", # No all-purpose "# noqa" and eval validation
"PL", # PyLint
"D", # Pydocstyle
"LOG", # flake8-logging
"TID", # flake8-tidy-imports
"PLR2004", # Magic numbers
Expand All @@ -117,17 +116,9 @@ lint.ignore = [
'B905', # Can be enabled when Python <=3.9 support is dropped
'DTZ001', # TODO will affect "tz_today()" method
'DTZ005', # TODO will affect "tz_today()" method
'RUF012', # Mutable class attributes should be annotated with `typing.ClassVar`
'TD002', # Missing author in TODO
'TD003', # Missing issue link on the line following this TODO
'D1', # Missing docstring
'RUF012', # Mutable class attributes should be annotated with `typing.ClassVar`
'D200', # Fits-on-one-line
'D203', # one-blank-line-before-class - incompatible to D211 no-blank-line-before-class
'D205', # Checks docstring summary lines not separated from the docstring description
'D212', # Multi-line-summary-first-line
'D400', # Checks docstrings in which the first line does not end in a period -> ! ? should also be allowed
'D401', # Checks function docstrings that include the function's signature in the summary line
'D415', # Checks first line docstrings doesn't end in a punctuation mark, ".", "?", "!" -> weird behavior
'TRY002', # Checks for code that raises Exception directly.
'TRY003', # Checks for long exception messages that are not defined in the exception class itself.
]
Expand All @@ -152,7 +143,6 @@ lint.fixable = [
"PERF", # PerfLint
"PGH", # No all-purpose "# noqa" and eval validation
"PL", # PyLint
"D", # Pydocstyle
"LOG", # flake8-logging
"TID", # flake8-tidy-imports
"PLR2004", # Magic numbers
Expand Down

0 comments on commit f1f92c2

Please sign in to comment.