Skip to content

Commit bae61fb

Browse files
committed
Changed into package
1 parent a3c41a8 commit bae61fb

6 files changed

Lines changed: 155 additions & 6 deletions

File tree

.bumpversion.cfg

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[bumpversion]
2+
current_version = 0.0.0
3+
commit = True
4+
tag = True
5+
6+
[bumpversion:file:git_helper.yml]
7+
8+
[bumpversion:file:__pkginfo__.py]
9+
10+
[bumpversion:file:README.rst]
11+
12+
[bumpversion:file:doc-source/index.rst]
13+
14+
[bumpversion:file:flake8_strftime/__init__.py]
15+

.gitignore

Lines changed: 79 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,80 @@
1+
# This file is managed by `git_helper`. Don't edit it directly
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
*.so.Python
6+
build/
7+
develop-eggs/
8+
dist/
9+
downloads/
10+
eggs/
11+
.eggs/
12+
lib/
13+
lib64/
14+
parts/
15+
sdist/
16+
var/
17+
wheels/
18+
*.egg-info/
19+
.installed.cfg
20+
*.egg
21+
*.egg*
22+
*.manifest
23+
*.spec
24+
pip-log.txt
25+
pip-delete-this-directory.txt
26+
htmlcov/
27+
.tox/
28+
.coverage
29+
.coverage.*
30+
.cache
31+
nosetests.xml
32+
coverage.xml
33+
*.cover
34+
.hypothesis/
35+
.pytest_cache/
36+
cover/
37+
.coverage*
38+
*.mo
39+
*.pot
40+
*.log
41+
local_settings.py
42+
db.sqlite3
43+
instance/
44+
.webassets-cache
45+
.scrapy
46+
docs/_build/
47+
doc/build
48+
target/
49+
.ipynb_checkpoints
50+
.python-version
51+
celerybeat-schedule
52+
*.sage.py
53+
.env
54+
.venv
55+
env/
56+
venv/
57+
ENV/
58+
env.bak/
59+
venv.bak/
60+
.spyderproject
61+
.spyproject
62+
.ropeproject
63+
/site
64+
.mypy_cache/
65+
*.iml
66+
*.ipr
67+
cmake-build-*/
68+
.idea/**/mongoSettings.xml
69+
*.iws
70+
out/
71+
atlassian-ide-plugin.xml
72+
com_crashlytics_export_strings.xml
73+
crashlytics.properties
74+
crashlytics-build.properties
75+
fabric.properties
76+
.idea
77+
build
178
*.egg-info
2-
*.pyc
3-
/.mypy_cache
4-
/.pytest_cache
5-
/.coverage
6-
/.tox
7-
/venv*
79+
**/__pycache__
80+
**/conda

LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
Copyright (c) 2020 Dominic Davis-Foster
12
Copyright (c) 2019 Anthony Sottile
23

34
Permission is hereby granted, free of charge, to any person obtaining a copy

MANIFEST.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
include __pkginfo__.py
2+
include LICENSE
3+
include requirements.txt
4+
recursive-exclude **/__pycache__ *
5+
recursive-include flake8_strftime/ *.pyi
6+
recursive-include flake8_strftime/ py.typed

doc-source/docs.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
===========================
2+
API Reference
3+
===========================
4+
5+
.. contents:: Table of Contents
6+
7+
.. automodule:: flake8_strftime
8+
:members:
9+
:private-members:
10+
:special-members:
11+
:inherited-members:
12+
:undoc-members:
13+
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,44 @@
1+
#!/usr/bin/env python3
2+
# -*- coding: utf-8 -*-
3+
#
4+
# __init__.py
5+
"""
6+
A flake8 plugin which checks for use of platform specific strftime codes using .
7+
"""
8+
#
9+
# Copyright (c) 2020 Dominic Davis-Foster <dominic@davis-foster.co.uk>
10+
#
11+
# Based on flake8_2020
12+
# Copyright (c) 2019 Anthony Sottile
13+
#
14+
# Permission is hereby granted, free of charge, to any person obtaining a copy
15+
# of this software and associated documentation files (the "Software"), to deal
16+
# in the Software without restriction, including without limitation the rights
17+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18+
# copies of the Software, and to permit persons to whom the Software is
19+
# furnished to do so, subject to the following conditions:
20+
#
21+
# The above copyright notice and this permission notice shall be included in
22+
# all copies or substantial portions of the Software.
23+
#
24+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
30+
# THE SOFTWARE.
31+
#
32+
33+
__author__ = "Dominic Davis-Foster"
34+
__copyright__ = "2020 Dominic Davis-Foster"
35+
36+
__license__ = "MIT"
37+
__version__ = "0.0.0"
38+
__email__ = "dominic@davis-foster.co.uk"
39+
40+
41+
142
import ast
243
import re
344
import sys

0 commit comments

Comments
 (0)