-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into alternative-absolute-url-handling
- Loading branch information
Showing
12 changed files
with
715 additions
and
565 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[flake8] | ||
ignore = | ||
# Refers to the max-line length. Let's suppress the error and simply | ||
# let black take care on how it wants to format the lines. | ||
E501, | ||
|
||
# Refers to "line break before binary operator". | ||
# Similar to above, let black take care of the formatting. | ||
W503, | ||
|
||
# Refers to "Unnecessary dict call - rewrite as a literal". | ||
C408 | ||
per-file-ignores = | ||
# Ignore: "Found for loop that reassigns the iterable it is iterating with each iterable value" | ||
src/protego.py:430:21:B020 |
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,3 @@ | ||
# Contains commits to be ignored due to linting | ||
|
||
9097889fe2820cd582f0ae873b1be48eae47f818 |
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,20 @@ | ||
repos: | ||
- hooks: | ||
- id: black | ||
repo: https://github.com/psf/black | ||
rev: 23.3.0 | ||
- hooks: | ||
- id: isort | ||
language_version: python3 | ||
repo: https://github.com/timothycrosley/isort | ||
rev: 5.12.0 | ||
- hooks: | ||
- id: flake8 | ||
language_version: python3 | ||
additional_dependencies: | ||
- flake8-bugbear | ||
- flake8-comprehensions | ||
- flake8-debugger | ||
- flake8-string-format | ||
repo: https://github.com/pycqa/flake8 | ||
rev: 6.0.0 |
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,3 @@ | ||
[tool.isort] | ||
profile = "black" | ||
multi_line_output = 3 |
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,34 +1,35 @@ | ||
#!/usr/bin/env python | ||
from setuptools import setup, find_packages | ||
from setuptools import find_packages, setup | ||
|
||
setup(name='Protego', | ||
version='0.2.1', | ||
description='Pure-Python robots.txt parser with support for modern conventions', | ||
long_description=open("README.rst").read(), | ||
long_description_content_type='text/x-rst', | ||
url='https://github.com/scrapy/protego', | ||
author='Anubhav Patel', | ||
author_email='anubhavp28@gmail.com', | ||
license='BSD', | ||
package_dir={'': 'src'}, | ||
packages=find_packages('src'), | ||
py_modules=['protego'], | ||
python_requires='>=3.8', | ||
tests_require=['pytest'], | ||
include_package_data=True, | ||
keywords=['robots.txt', 'parser', 'robots', 'rep'], | ||
classifiers=[ | ||
'Development Status :: 4 - Beta', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: BSD License', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
'Programming Language :: Python :: 3.11', | ||
'Programming Language :: Python :: Implementation :: CPython', | ||
'Programming Language :: Python :: Implementation :: PyPy', | ||
], | ||
) | ||
setup( | ||
name="Protego", | ||
version="0.2.1", | ||
description="Pure-Python robots.txt parser with support for modern conventions", | ||
long_description=open("README.rst").read(), | ||
long_description_content_type="text/x-rst", | ||
url="https://github.com/scrapy/protego", | ||
author="Anubhav Patel", | ||
author_email="anubhavp28@gmail.com", | ||
license="BSD", | ||
package_dir={"": "src"}, | ||
packages=find_packages("src"), | ||
py_modules=["protego"], | ||
python_requires=">=3.7", | ||
tests_require=["pytest"], | ||
include_package_data=True, | ||
keywords=["robots.txt", "parser", "robots", "rep"], | ||
classifiers=[ | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: BSD License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
], | ||
) |
Oops, something went wrong.