-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from nzlosh/master
Update plugin for flake8 >v3
- Loading branch information
Showing
19 changed files
with
180 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Makefile CI | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10", "3.11"] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install dependencies | ||
run: make setup_virtualenv | ||
|
||
- name: Test | ||
run: make tests | ||
|
||
- name: Package | ||
run: make build_package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,27 @@ | ||
Changelog | ||
========= | ||
======================================================================== | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) | ||
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). | ||
|
||
[0.2.1] Unreleased | ||
------------------------------------------------------------------------ | ||
|
||
Added | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
- add support for flake8 v7.0.0 | ||
|
||
Deleted | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
- drop support for python 2.x | ||
- drop compatibility with flake8 <3.x | ||
- drop useless/unknown pylint options: I0012, W0704, W0142, W0232, R0201 | ||
|
||
Changed | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
- updated extension code from ``L`` to ``LIC001``. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
flake8==3.7.7 | ||
nose | ||
nosexcover | ||
pep8>=1.6.0,<1.7 | ||
pylint>=1.4.3,<1.5 | ||
# 202404: Align all requirements with st2 test-requirements | ||
coverage==7.2.7 | ||
flake8==7.0.0 | ||
pep8==1.7.1 | ||
pylint==3.1.0 | ||
pytest==6.2.5 | ||
tox==4.5.2 | ||
wheel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
flake8-copyright==0.2.2 | ||
flake8-polyfill==1.0.2 | ||
flake8-copyright==0.2.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#!/usr/bin/env python2.7 | ||
#!/usr/bin/env python3 | ||
|
||
# Copyright 2020-2024 StackStorm contributors. | ||
# Copyright 2019 Extreme Networks, Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
|
@@ -21,14 +22,15 @@ | |
|
||
|
||
PKG_ROOT_DIR = os.path.dirname(os.path.realpath(__file__)) | ||
PKG_REQ_FILE = '%s/requirements.txt' % PKG_ROOT_DIR | ||
PKG_REQ_FILE = "%s/requirements.txt" % PKG_ROOT_DIR | ||
os.chdir(PKG_ROOT_DIR) | ||
|
||
|
||
def get_version_string(): | ||
version = None | ||
sys.path.insert(0, PKG_ROOT_DIR) | ||
from st2flake8 import __version__ | ||
|
||
version = __version__ | ||
sys.path.pop(0) | ||
return version | ||
|
@@ -39,34 +41,34 @@ def get_requirements(): | |
required = f.read().splitlines() | ||
|
||
# Ignore comments in the requirements file | ||
required = [line for line in required if not line.startswith('#')] | ||
required = [line for line in required if not line.startswith("#")] | ||
return required | ||
|
||
|
||
setup( | ||
name='st2flake8', | ||
name="st2-flake8", | ||
version=get_version_string(), | ||
author='StackStorm', | ||
author_email='[email protected]', | ||
url='https://www.stackstorm.com', | ||
author="StackStorm", | ||
author_email="[email protected]", | ||
url="https://www.stackstorm.com", | ||
packages=find_packages(exclude=[]), | ||
install_requires=get_requirements(), | ||
license='Apache License (2.0)', | ||
license="Apache License (2.0)", | ||
classifiers=[ | ||
'Development Status :: 4 - Beta', | ||
'Intended Audience :: Information Technology', | ||
'Intended Audience :: System Administrators', | ||
'License :: OSI Approved :: Apache Software License', | ||
'Operating System :: POSIX :: Linux', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 2', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.6' | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Information Technology", | ||
"Intended Audience :: System Administrators", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Operating System :: POSIX :: Linux", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
], | ||
entry_points={ | ||
'flake8.extension': [ | ||
'L = st2flake8.license_rules:LicenseChecker', | ||
"flake8.extension": [ | ||
"LIC001 = st2flake8.license_rules:LicenseChecker", | ||
] | ||
} | ||
}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.