GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix support for Python 3.12 · cpplint/cpplint@0e85508

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • ci.yml
  • CONTRIBUTING.rst
  • cpplint_unittest.py
  • setup.py
  • test-requirements
  • tox.ini
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/ci.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/ci.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
runs-on: ubuntu-latest
66
strategy:
77
matrix:
8-
python-version: ['3.9', 'pypy3.10', '3.11']
8+
python-version: ['3.9', 'pypy3.10', '3.11', '3.12']
99
fail-fast: false
1010

1111
steps:
Collapse file

‎CONTRIBUTING.rst‎

Copy file name to clipboardExpand all lines: CONTRIBUTING.rst
+5-5Lines changed: 5 additions & 5 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ You can setup your local environment for developing patches for cpplint like thi
6262
# run a single CLI integration test
6363
pytest --no-cov cpplint_clitest.py -k testSillySample
6464
# run all tests
65-
./setup.py test
66-
./setup.py lint
67-
./setup.py ci # all the above
68-
./flake8
69-
tox # all of the above in all python environments
65+
pytest
66+
pylint cpplint.py
67+
flake8
68+
# all of the above in all python environments
69+
tox
7070
7171
Releasing
7272
---------
Collapse file

‎cpplint_unittest.py‎

Copy file name to clipboardExpand all lines: cpplint_unittest.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ def testIncludeWhatYouUseNoImplementationFiles(self):
935935
code = 'std::vector<int> foo;'
936936
for extension in ['h', 'hpp', 'hxx', 'h++', 'cuh',
937937
'c', 'cc', 'cpp', 'cxx', 'c++', 'cu']:
938-
self.assertEquals('Add #include <vector> for vector<>'
938+
self.assertEqual('Add #include <vector> for vector<>'
939939
' [build/include_what_you_use] [4]',
940940
self.PerformIncludeWhatYouUse(code, 'foo.' + extension))
941941

Collapse file

‎setup.py‎

Copy file name to clipboard
+1-37Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,7 @@
11
#! /usr/bin/env python
2-
3-
from setuptools import setup, Command
4-
from subprocess import check_call
5-
from distutils.spawn import find_executable
2+
from setuptools import setup
63
import cpplint as cpplint
74

8-
class Cmd(Command):
9-
'''
10-
Superclass for other commands to run via setup.py, declared in setup.cfg.
11-
These commands will auto-install setup_requires in a temporary folder.
12-
'''
13-
user_options = [
14-
('executable', 'e', 'The executable to use for the command')
15-
]
16-
17-
def initialize_options(self):
18-
self.executable = find_executable(self.executable)
19-
20-
def finalize_options(self):
21-
pass
22-
23-
def execute(self, *k):
24-
check_call((self.executable,) + k)
25-
26-
27-
class Lint(Cmd):
28-
'''run with python setup.py lint'''
29-
description = 'Run linting of the code'
30-
user_options = Cmd.user_options + [
31-
('jobs', 'j', 'Use multiple processes to speed up the linting')
32-
]
33-
executable = 'pylint'
34-
35-
def run(self):
36-
self.execute('cpplint.py')
37-
385
# some pip versions bark on comments (e.g. on travis)
396
def read_without_comments(filename):
407
with open(filename) as f:
@@ -78,7 +45,4 @@ def read_without_comments(filename):
7845
extras_require={
7946
'test': test_required,
8047
'dev': read_without_comments('dev-requirements') + test_required
81-
},
82-
cmdclass={
83-
'lint': Lint
8448
})
Collapse file

‎test-requirements‎

Copy file name to clipboardExpand all lines: test-requirements
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22
# 5.x requires python 3.5
33
pytest
44
pytest-cov
5-
# freeze versions breaking python 2.7 on travis
65
testfixtures
Collapse file

‎tox.ini‎

Copy file name to clipboardExpand all lines: tox.ini
+5-4Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# also see gitlab ci.yml
21
[tox]
32
envlist = py39, py310, py312, pypy3
43

@@ -16,9 +15,11 @@ deps =
1615
pylint>=2.11.0
1716
flake8-polyfill
1817
pytest
18+
pytest-cov
19+
testfixtures
1920
setuptools==58.2.0
2021

2122
commands =
22-
{envpython} setup.py test
23-
{envpython} setup.py lint
24-
{envpython} -m flake8
23+
{envpython} -m pytest
24+
{envpython} -m pylint cpplint.py
25+
{envpython} -m flake8

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.