Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use alpine 3.21 (CMake 3.21), bump tests #56

Merged
merged 1 commit into from
Dec 12, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
test:
name: Runtime
runs-on: ubuntu-latest
container: python:3.13-alpine3.20
container: python:3.13-alpine3.21

steps:
- name: Install Alpine Dependencies
Expand Down
9 changes: 0 additions & 9 deletions editorconfig/ini.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@

__all__ = ["ParsingError", "EditorConfigParser"]

MAX_SECTION_LENGTH = 4096
MAX_PROPERTY_LENGTH= 50
MAX_VALUE_LENGTH = 255


class EditorConfigParser(object):

Expand Down Expand Up @@ -138,8 +134,6 @@ def _read(self, fp, fpname):
mo = self.SECTCRE.match(line)
if mo:
sectname = mo.group('header')
if len(sectname) > MAX_SECTION_LENGTH:
continue
in_section = True
matching_section = self.matches_filename(fpname, sectname)
# So sections can't start with a continuation line
Expand All @@ -160,9 +154,6 @@ def _read(self, fp, fpname):
if optval == '""':
optval = ''
optname = self.optionxform(optname.rstrip())
if (len(optname) > MAX_PROPERTY_LENGTH or
len(optval) > MAX_VALUE_LENGTH):
continue
if not in_section and optname == 'root':
self.root_file = (optval.lower() == 'true')
if matching_section:
Expand Down
Loading